Skip to content

PasarGuard/wireguard-config-kit

Repository files navigation

PasarGuard WireGuard Config Kit

Browser-safe TypeScript helpers for generating and validating WireGuard core configuration JSON.

Package

import {
  createDefaultWireGuardCoreDraft,
  generateWireGuardCoreConfigJson,
  generateWireGuardKeyPair,
  validateWireGuardCoreConfig
} from "@pasarguard/wireguard-config-kit";

Commands

bun install
bun run typecheck
bun run build
bun test

Core Shape

Generated configs target PasarGuard WireGuard cores:

{
  "interface_name": "wg0",
  "private_key": "<generated>",
  "listen_port": 51820,
  "address": ["10.0.0.1/8"]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors