bun-runtime
Skill by affaan-m
Explains how to use Bun, a JavaScript runtime and toolkit with a package manager, bundler and test runner. It is for developers choosing between Bun and Node, migrating projects, or deploying Bun on Vercel.
Install bun-runtime
Built from the published package, never by AI.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.claude/skills && cp -r /tmp/ECC/.agents/skills/bun-runtime ~/.claude/skills/bun-runtimeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ECC/.agents/skills/bun-runtime ~/.gemini/antigravity-cli/skills/bun-runtimeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
bun-runtime is an agent skill that gives guidance on Bun, a JavaScript runtime and all-in-one toolkit. It covers the runtime, package manager, bundler and test runner. It also explains when to prefer Bun or Node, how to migrate a Node project, how to set Bun 1.4 on Vercel, and which package commands such as bun add, bun outdated and bun audit to use. It lists built-in APIs like Bun.file, bun:sqlite and Bun.serve.
The skill targets Bun 1.4.x and advises checking the installed version with bun --version before relying on flag names. It notes that Bun is not fully Node-compatible, so some native addons and Node internals may fail. It recommends committing bun.lock for reproducible installs. It is aimed at developers starting new JavaScript or TypeScript projects, moving from Node, or writing Bun scripts and tests.
Written from the project's SKILL.md and checked against it.
What it can do
- RuntimeRuns JavaScript and TypeScript files as a drop-in, mostly Node-compatible runtime.
- Package managerInstalls, adds, removes and updates dependencies, and lists outdated packages.
- BundlerBuilds apps and libraries with the built-in bundler and transpiler.
- Test runnerRuns tests with bun test, which has a Jest-like API and CI options.
- Node migrationExplains replacing node and npm commands with their Bun equivalents.
- Vercel setupShows how to set bunVersion in vercel.json and the build and install commands.
- Dependency auditDescribes bun audit for registry advisories and bun audit fix for upgrades.
- Built-in APIsLists Bun.file, bun:sqlite, Bun.serve, Bun.sql, Bun.redis and Bun.S3Client.
What you need
- Bun installed, with 1.4.x targeted by this guidance
- Vercel account for deploying Bun functions on Vercel
Try asking
- Help me migrate this Node project to Bun and update the scripts.
- Set up Bun 1.4 on Vercel with a frozen lockfile install.
- Run Bun tests in parallel in CI with timing files.
Good to know
- Not 100% Node-compatible; some native addons and Node internals can fail.
- bun audit fix changes the lockfile and installed packages, so review it first.
- Test --isolate is not a process or security sandbox.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/bun-runtime/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
agents/openai.yaml257 B
Alternatives to bun-runtime
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
bun-runtime: common questions
Is Bun fully compatible with Node?
No. The source says Bun is not 100% Node-compatible, and some native addons, less common node: internal APIs and packages with Node-specific internals can still fail.
Which lockfile does Bun use?
Current Bun uses bun.lock, a text file. Older versions used bun.lockb, which Bun still reads for migration.
Can Bun run on Vercel?
Yes. Set bunVersion to 1.4.x in vercel.json to use the Bun 1.4 Rust runtime on Vercel.
How do I install bun-runtime?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is bun-runtime free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is bun-runtime safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to bun-runtime?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
