Documentation

js/documentation.md

This page is the map of Fino's documentation: every authored guide, organized by what you are trying to do, plus how to browse and search the generated API reference. If you are brand new, start with Getting Started.

Build an Agent

The AI section is the front door: model calls, validated tools, agents, sessions, and how the layers fit together.

Isolate Code

The Realms section covers the runtime's isolation primitive — run skills, plugins, and untrusted code with only the imports you grant.

Serve an Application

The Networking section spans Fetch-style HTTP down to sockets, TLS, DNS, and QUIC. The HTTP section dispatches to the right surface for what you are building:

Observe It

The OpenTelemetry section explains the provider/SDK architecture; the deep dives cover Manual Tracing, Metrics, Structured Logs, SDK Setup, Exporters and CLI Bootstrap, Context Propagation, and Runtime Instrumentations.

Platform

The CLI guide maps every command: run, repl, test, bench, task, init, install, doc, fmt, and lint.

API Reference

Every public fino:* module is documented from its source doc comments, and some modules — background jobs (fino:jobs), tasks (fino:task), workflows (fino:workflow), validation (fino:validate), files, formats, SQLite, processes, and the security helpers among them — are documented there rather than in an authored guide.

On the generated docs site, the API reference appears alongside these guides in the sidebar. To build and search it locally:

fino doc build --format html --types runtime-builtins.d.ts js
fino doc search websocket
fino doc show bench.Group.measure

Generated output is written under docs/. See the doc command for the full workflow, including runnable documentation examples.