npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

the-wireguard-effect

v0.0.28

Published

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

Downloads

439

Readme

the-wireguard-effect

the-wireguard-effect has turned into a couple of things. It started as a Cross platform wireguard api client for nodejs built on wireguard-go with effect-ts, but has since added a cross platform CLI to control some wireguard interfaces without needing to install anything, a wireguard demo server that implements the same protocol as demo.wireguard.com so it will work with all the existing examples, a lot of helpers and examples for config generation, and unit + e2e testing.

Motivation/ideation :bulb:

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. The motivation for adding the CLI, demo-server, config generation, and testing/experiments came from me wanting to experiment with and learn more about wireguard .

Goals :white_check_mark:

  • [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.

WIP/Todo :construction:

  • Implement wg cli clone
  • QR code generation
  • Add linux test for running with root (the linux tests currently use a "rootless" setup)
  • Fix the last e2e test (https://github.com/leonitousconforti/the-wireguard-effect/pull/245)
  • Obtain wintun drivers from public source and check hash during build, rather than just uploading them (https://github.com/leonitousconforti/the-wireguard-effect/issues/62)
  • FreeBSD and OpenBSD support (https://github.com/leonitousconforti/the-wireguard-effect/pull/104)

Blocked :ambulance:

  • Windows arm64 support, I simply do not have any device to test against and would prefer not to ship blindly. If someone would like to contribute a self-hosted windows arm64 github runner that could occasionally be used for running the CI tests, that would unblock this!

Non-Goals :wastebasket:

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

Notes :memo:

Here is some content I am stealing from the Unraid forums

  • Remote access to server: Use your phone or computer to remotely access just the wireguard server.
  • Remote access to LAN: Builds on "Remote access to server", allowing you to access your entire LAN as well.
  • Server to server access: Allows two servers to connect to each other.
  • LAN to LAN access: Builds on "Server to server access", allowing two entire networks to communicate.
  • Server hub & spoke access: Builds on "Remote access to server", except that all of the VPN clients can connect to each other as well. Note that all traffic passes through the server.
  • LAN hub & spoke access: Builds on "Server hub & spoke access", allowing you to access your entire LAN as well.
  • VPN tunneled access: Route specific traffic through a commercial WireGuard VPN provider
  • Remote tunneled access: Securely access the Internet from untrusted networks by routing all of your traffic through the VPN and out the server's internet connection

Image

You can find examples for how to generate configs for each type of configuration displayed above in the examples directory.

Library docs :card_file_box:

https://leonitousconforti.github.io/the-wireguard-effect/

Security and Legal :closed_lock_with_key: :rotating_light:

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. If that bothers you then don't use it.

Contributing and getting help :speech_balloon: :beers:

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

License :page_facing_up:

If the GNU General Public License v3.0 does not work for you, please reach out and let me know, I can be accommodating