Bun Config Builder
Bun Config Builder
Build bunfig.toml plus Bun-flavored package.json scripts, with a Node.js to Bun migration assistant.
Runtime
JSX
Install
Test Runner
Scripts Preset
# bunfig.toml — generated [jsx] runtime = "automatic" importSource = "react" [install] [test] [run]
{
"name": "my-bun-app",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "bun run --hot src/index.ts",
"start": "bun run src/index.ts",
"test": "bun test"
},
"dependencies": {},
"devDependencies": {
"@types/bun": "latest"
}
}What This Tool Does
Bun Config Builder is built for deterministic developer and agent workflows.
Build bunfig.toml plus Bun-flavored package.json scripts. Includes a Node.js to Bun migration assistant flagging the known incompatibility surface (sqlite, vm, cluster, etc.).
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/bun-config-builder/
For automation planning, fetch the canonical contract at /api/tool/bun-config-builder.json.
How to Use Bun Config Builder
- 1
Set runtime options
Choose smol mode for low-memory environments, set logLevel, and add preload scripts. Configure JSX runtime for React, Preact, or other JSX import sources.
- 2
Configure install behavior
Set the registry, lockfile mode (binary, text, or none), frozen lockfile for CI, peer dependency installation, and production-only flags for deployment images.
- 3
Tune the test runner
Enable coverage with a percent threshold and reporter (text or lcov), set the per-test timeout, and add preload files like ./happydom.ts for DOM testing under bun:test.
- 4
Pick a scripts preset
Choose minimal, node, next, vite, astro, or express. Each preset wires a Bun-flavored set of dev, start, build, and test scripts. Add custom scripts for project-specific workflows.
- 5
Run the migration scan
Switch to the Migration tab and paste your Node source. The scanner flags vm, cluster, sqlite3, V8 internals, and other APIs that diverge under Bun, with a fix recommendation per finding.