Skip to main content
Forst can call functions from existing TypeScript and JavaScript modules while your app runs. We call this bridge internally. The Go program starts a JavaScript bridge process and talks to it over a local socket. The bridge process runs @forst/runtime to load your modules and run function calls. Use the js import suffix, enable bridge in ftconfig.json, and install @forst/runtime in your project.

Start here

Configuration summary

Enable the bridge in ftconfig.json.
Set bridge.host to node, bun, or deno. Use environment variables to override host settings at deploy time.

JavaScript interop hub

Typed client generation and calling Forst from Node.

Bridge interop examples

Runnable code examples for sync, async, generators, and host mode.