Skip to main content
Node backends often need three things at once during migration: shared types, call Forst from Node, and call legacy .ts/.js from compiled Forst. You can use one, two, or all three. The three paths and how they connect:

Pick your path

forst generate emits TypeScript stubs, but the invoke wire protocol is JSON over HTTP. Any Node runtime works — Express, Remix, plain node. Examples use .ts because that is what the generator outputs.

Caveats

Node interop paths are at different maturity levels. Read the caveats on the page that matches your path.

Mix with Go packages

Forst compiles to Go — import stdlib and third-party packages.

Dev server

forst dev HTTP contract for local iteration.