Skip to content
Console
llms.txtUser help

Overview

@fkn/lib extends a standard web app with system capabilities that browsers normally block: raw TCP and UDP sockets, cross-origin fetch() and WebSocket, end-to-end encrypted file and object storage, encrypted realtime rooms, live website framing, and sandboxed third-party packages. It runs on a web page, inside a dedicated Web Worker, and inside sandboxed packages.

Your app stays a regular browser bundle. When it imports @fkn/lib, the library connects to FKN through the broker frame or the extension backend, depending on what the user has installed and what each call requests.

  • Cloud backend: Works out of the box for every visitor with zero installs. Traffic travels through FKN relays (WebVPN) or the HTTP proxy, and files sync to the user’s encrypted cloud storage.
  • Extension backend: When the visitor has the FKN browser extension installed, fetch() and attachFrame() can run straight from their own browser using their existing cookies and sessions, after explicit per-site consent.
  • Worker and package runtimes: Dedicated Web Workers can open sockets and fetch via relayWorker(). Third-party packages run on isolated sandbox origins under sdbx.app and talk to your app over typed message channels.

See backends for exact routing rules and glossary for key terms used across these docs.

Every app built on FKN shares one user-owned account model:

  • Their files: Files and objects encrypt inside the user’s browser before upload. FKN servers hold ciphertext only and cannot open them.
  • Their sign-in: Users sign in on fkn.app with their password or passkey. Your app never sees their password, email address, or account key.
  • Their permissions: Users approve site interactions one origin at a time and can revoke any grant from the FKN bar or fkn.app.
  • Free to use: FKN is free for users and free to build on. Each user gets one daily allowance across every app they open and can choose Premium on fkn.app for higher limits.

For exact plan allowances and privacy guarantees written for end users, see plans and your allowance and your data.