the-wireguard-effect
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

the-wireguard-effect

Cross platform wireguard api client for nodejs built on wireguard-go with effect-ts.

Motivation/ideation 💡

The motivation for this project came from wanting to create wireguard configurations and ultimately control a wireguard interface from JS for a different project of mine.

Goals ✅

  • [x] - fully typed wireguard configurations (thanks to @effect/schema)
  • [x] - doesn't require wireguard to be installed (ships with most prebuilds)
  • [x] - cross platform (supports linux amd64, linux arm64, mac amd64, mac arm64, and windows amd64)
  • [x] - userspace api implementation (the Wireguard cross platform docs have details about it.)
  • [x] - strong control over how the interface is managed across all platforms.

Todo/Future 🚧

  • Wireguard windows arm64 prebuilds
  • Switch from execa to @effect/platform Command and Executor
  • Obtain wintun drivers from public source and check hash during build, rather than just uploading them
  • More documentation

Non-Goals 🗑️

  • Utilities for installing or checking if wireguard is installed on the system.
  • Utilities to configure userspace network interfaces or generation of any iptables or nftables rules when bringing a config up using the userspace api

Security 🔐

the-wireguard-effect is not an official WireGuard project, and WireGuard is a registered trademark of Jason A. Donenfeld. The is a hobby project of mine, it has not received an independent security audit and never will.

Contributing and getting help 💬 🍻

Contributions, suggestions, and questions are welcome! If you are interested in developing, my recommendation is going to be to use the Devcontainer (even if you don't like them) as it has everything setup already to run the tests or to just let Github actions run the tests. I'll review prs and respond to issues/discussion here on GitHub but if you want more synchronous communication you can find me in the effect discord as @leonitous

Readme

Keywords

Package Sidebar

Install

npm i the-wireguard-effect

Weekly Downloads

391

Version

0.0.4

License

GPL-3.0-only

Unpacked Size

48.6 MB

Total Files

91

Last publish

Collaborators

  • leonitousconforti