Skip to main content
Get from zero to a running Forst program with validated input.

1. Install the compiler

Install via your package manager:
The wrapper downloads the matching native binary on first use. See Installation for CI and offline setups.

2. Create your first file

Create hello.ft:

3. Run it

Compile, build, and run the file:
Forst transpiles to Go, builds, and runs the program. You should see Hello, World! on stdout.

4. Add validated input

Replace the body of hello.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.
Run again:
Try changing 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.