Skip to content

pappz/nb-embed-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetBird Embedding Tech Demo

Connectivity as API. NetBird Embed lets you build peer-to-peer networking directly into your Go applications. No VPN client installation, no network configuration files, no daemon processes. Just import the library, pass a setup key, and your application joins a secure WireGuard-based mesh network programmatically.

What can you do with it?

  • Connect: join a NetBird network with a few lines of Go (netbird.New + client.Start)
  • Listen: accept TCP connections from other peers on the mesh (client.ListenTCP)
  • Dial: open connections to any peer by address (client.DialContext)
  • Discover: query the peer list and connection status in real time (client.Status)
  • Expose: publish a local service to the public internet via NetBird's reverse proxy (client.Expose)

All of this works with a single static binary. No sidecar, no agent, no iptables rules.

Examples

Distributed HTTPS proxy. A client routes requests through a dynamic pool of peers, each with its own public IP. Peers join and leave the rotation automatically as they connect or disconnect.

Expose a web application to the public internet from code. No localhost binding, no port forwarding. The app listens directly on the NetBird network and gets a public HTTPS URL.

Peer-to-peer browser chat over WebAssembly. Each browser tab joins the NetBird mesh as a full peer and exchanges messages directly. No server needed for chat traffic.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors