Skip to content

Platform API overview

Beyond the extension APIs, @fkn/lib exposes the FKN platform’s networking primitives. They run against FKN’s cloud by default and will be runnable against the user’s own machine: the cloud is an option, not a requirement.

Full reference pages are in progress. The surface today:

APIWhat it gives you
serverProxyFetchHTTP fetch routed through the FKN proxy, reaching APIs a browser otherwise cannot
netNode.js-style TCP sockets (Server, Socket, connect) over WebTransport
dgramNode.js-style UDP sockets (createSocket) over WebTransport
httpHTTP client primitives built on the socket layer

The net and dgram shapes are also published standalone as @webvpn/net and @webvpn/dgram, which is how projects like libtorrent-wasm run a real BitTorrent client in the browser.

Free-tier usage is metered per IP (5 GB/day for WebVPN, throttled after). No accounts are required.