Cross platform wireguard api client for nodejs built on wireguard-go with effect-ts.
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.
- [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.
- 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
- 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
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.
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