v1.0.2Latest / April 2026
Introduction
Gun builds server-side JavaScript and TypeScript projects into deployable applications.
Install
Install the CLI globally:
npm i -g gun-transpiler
Or keep it local to a project:
npm i -D gun-transpiler
With Bun:
bun add -d gun-transpiler
Build
Pass an entrypoint to gun transpile:
gun transpile src/index.ts -o build/gun
Run gun check first when you are testing a new project or dependency:
gun check src/index.ts
Run
Run the built app locally:
go run ./build/gun
Build a release binary:
go build -o dist/app ./build/gun
./dist/app
When to use Gun
Gun is a good fit for:
- HTTP APIs and webhooks.
- Background workers.
- Internal CLIs.
- Services with ordinary npm dependencies.
- Deployments that should not install Node.js or Bun on the target host.
Run compatibility checks before adopting Gun for code that depends on native addons, runtime-created modules, or engine-specific behavior.