Minimal examples to get started with AFS. Each example is self-contained and runs with a single command.
Mount local files and JSON, then read, list, search, write, and stat — the core AFS operations in one script.
cd examples/basic
bun index.tsWhat you'll learn: Mounting providers, uniform path-based access, JSON-as-filesystem navigation.
Build your own AFS provider from scratch — the pattern for integrating any data source (APIs, databases, IoT, etc.).
cd examples/custom-provider
bun index.tsWhat you'll learn: AFSBaseProvider, route decorators (@List, @Read, @Actions.Exec), route parameters, action arguments.
Render a live web page from code using AUP (Agent UI Protocol) — no HTML templates, no client framework, just data over WebSocket.
cd examples/hello-aup
bun index.ts
# Open http://127.0.0.1:3210 in your browserWhat you'll learn: AUP node trees, session management, live patching, visual themes.
See the main README for full provider list, CLI usage, and MCP integration.