npm (@forst/cli)
Best for teams already on Node.js, npm scripts, or monorepos with TypeScript clients.
Install the package:
@forst/cli downloads the native forst binary for your platform from GitHub Releases and caches it locally.
CI and offline environments
SetFORST_BINARY to a pre-installed executable path to skip the download step:
Full details:
@forst/cli README.
Native binary
Download the release artifact for your OS/arch from GitHub Releases, extract it, and add it to yourPATH.
Verify the install:
Debian / Ubuntu (.deb)
Best for system-wide installs on Debian or Ubuntu without npm. Installsforst to /usr/bin. Pick amd64 or arm64 from GitHub Releases when a compiler v* release ships.
Docker (GHCR)
Official multi-arch images are published on GitHub Container Registry when a compilerv* release ships.
Pin the image tag to the compiler release (for example
v0.1.0). latest tracks the latest stable compiler release.
Generate TypeScript types in CI:
forst-minimal only when you want a smaller image and will not call forst run or forst test. Generated Go for production deploys still requires go build in your own image if you only transpile to .go files.
Editor support
For diagnostics, hover, go-to-definition, and formatting in VS Code, install the Forst extension and run the language server. See Editor workflow.Verify your install
Confirm the compiler is on your PATH:github.com or set FORST_BINARY.
Next
Quickstart
Write and run your first validated handler.