1. Install the compiler
Install via your package manager:- npm
- bun
- pnpm
- Native binary
2. Create your first file
Createhello.ft:
3. Run it
Compile, build, and run the file:Hello, World! on stdout.
4. Add validated input
Replace the body ofhello.ft with a handler that only accepts well-formed orders. Constraints live on the type. Invalid calls fail at compile time and runtime checks are emitted automatically.
- Forst
- Generated Go
quantity to 0 or 100. The typechecker rejects out of range values before you ship.
5. Summary
Next steps
Shapes and constraints
Structural typing and runtime validation.
Generate client types
Emit
generated/types.d.ts for your frontend or BFF.CLI reference
run, build, generate, dev, and more.Go interop
Import Go packages and mix
.ft with .go.