bun-runtime

Guides adoption of Bun as JavaScript runtime, package manager, bundler, and test runner.

Updated May 7, 2026
One-click install
npx skills add https://github.com/mirzadham/trainingroombookingsystem2 --skill bun-runtime-mirzadham
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bun-runtime
Source: https://github.com/mirzadham/trainingroombookingsystem2/tree/main/.agent/.agents/skills/bun-runtime
Command: npx skills add https://github.com/mirzadham/trainingroombookingsystem2 --skill bun-runtime-mirzadham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing and configuring a JavaScript runtime and toolchain is confusing when deciding between Bun and Node, migrating existing projects, or deploying to platforms like Vercel. This Skill provides clear guidance on when to use Bun, how to migrate from Node, and how to run, install, test, and deploy with Bun. ## Core Features & Use Cases - Runtime Selection Guidance: Explains when to prefer Bun (new projects, fast installs, single toolchain) versus Node (maximum ecosystem compatibility, legacy tooling). - Migration Support: Maps Node commands to Bun equivalents, such as replacing npm install with bun install and npx with bun x. - Testing and Deployment: Covers the built-in bun test runner with a Jest-like API and Vercel deployment configuration with frozen lockfile installs. - Use Case: You are starting a new TypeScript API and want one toolchain for installing, running, testing, and bundling. Use this Skill to set up Bun scripts, write tests with bun:test, and configure a reproducible Vercel deployment. ## Quick Start Ask the assistant to help you migrate a Node project to Bun or set up a new Bun project with install, run, and test commands.

Frequently Asked Questions about bun-runtime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a Node.js project to Bun?▼

Replace node script.js with bun run script.js or bun script.js, and run bun install instead of npm install. Most npm packages work unchanged, Node built-ins are supported, and you can use bun x in place of npx for one-off commands.

When should I use Bun vs Node for a project?▼

Prefer Bun for new JS/TS projects, speed-sensitive scripts, Vercel deployments, and when you want one toolchain for running, installing, testing, and building. Prefer Node for maximum ecosystem compatibility or dependencies with known Bun issues.

How do I run tests with Bun test runner?▼

Run bun test or bun test --watch from the command line. Write tests by importing expect and test from bun:test, which provides a Jest-like API without extra dependencies.

Does Bun work with Vercel deployments?▼

Yes, set the runtime to Bun in your Vercel project settings. Use bun run build or bun build for the build step and bun install --frozen-lockfile for reproducible installs.

What lockfile does Bun use and should I commit it?▼

Current Bun versions use the text-based bun.lock file, while older versions used the binary bun.lockb. You should commit the lockfile to version control for reproducible installs across environments.