@pasarguard/wireguard-config-kit
v0.1.0
Published
Browser-safe TypeScript helpers for generating and validating WireGuard core configuration JSON.
Readme
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 testCore Shape
Generated configs target PasarGuard WireGuard cores:
{
"interface_name": "wg0",
"private_key": "<generated>",
"listen_port": 51820,
"address": ["10.0.0.1/8"]
}