.ft) backend code. It is a usage cheat sheet, not a language spec. Fetch deeper pages only when you need one topic.
Mintlify AI endpoints
This site is Mintlify-hosted. Fetch these directly (no HTML):
Also available at
/.well-known/llms.txt and /.well-known/llms-full.txt.
Mintlify sends Link and X-Llms-Txt headers on every page so agents can discover the index. See Mintlify llms.txt docs.
What Forst is
Go-interoperable backend language. Source:.ft files. Output: Go you build with go build. Structural types carry validation constraints. TypeScript types come from the same tree via forst generate.
Install and run
Minimal install and compile commands:FORST_BINARY to a preinstalled compiler path.
Typical layout
Common project tree for a Forst backend:.ft files merge when you pass -root. Go files and Forst files can live in one module.
Syntax you must use
Constraints reference (common)
Chain with dots. Same names work on type fields and in
ensure.
CLI quick reference
Flags:
-root merges same-package .ft files; -export-struct-fields emits exported struct fields with json tags for wire serialization; -log-level trace|debug|info|warn|error.
When writing code
- Put validation on types at the HTTP boundary. Avoid manual
if len(s) < 1when a constraint fits. - Keep business failures as nominal
errortypes orResult, not string errors. - Thread request payloads through parameters. Use
use/withfor loggers, clocks, repos (notcontext.Contextvalues). - Import real Go packages when needed (
fmt, your module). Generated Go must compile withgo build. - After edits, run
npx forst runornpx forst teston the touched package.