bun-runtime

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

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Femad-6/my-skills --skill bun-runtime-femad-6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-runtime
Source: https://github.com/Femad-6/my-skills/tree/main/.github/skills/bun-runtime
Command: npx skills add https://github.com/Femad-6/my-skills --skill bun-runtime-femad-6

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing between Bun and Node and migrating an existing JavaScript or TypeScript project involves uncertainty about compatibility, lockfiles, scripts, and platform deployment. This Skill provides concrete guidance on when to use Bun, how to migrate from Node, and how to configure Bun for testing and Vercel deployments. ## Core Features & Use Cases - Runtime and Toolchain Guidance: Explains Bun as a drop-in Node-compatible runtime with built-in package manager, bundler, and Jest-like test runner. - Node Migration Notes: Maps npm workflows to Bun equivalents such as bun install, bun run, and bun x, including lockfile differences between bun.lock and bun.lockb. - Use Case: When starting a new TypeScript project or deploying to Vercel, use this Skill to configure bun install --frozen-lockfile for reproducible builds and bun test for the test suite. ## Quick Start Ask the AI to help migrate a Node.js project to Bun, including install commands, script execution, and test setup.

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, and bun x replaces npx for one-off command runs.

When should I choose Bun vs Node for a project?

Prefer Bun for new JS/TS projects, speed-sensitive scripts, and Vercel deployments where a single toolchain is useful. Prefer Node when you need maximum ecosystem compatibility or depend on tooling with known Bun issues.

Does Bun support running TypeScript files directly?

Yes, Bun runs .ts files natively without a separate transpilation step. You can execute TypeScript with bun run src/index.ts and write tests using the built-in bun:test module.

How do I deploy a Bun project on Vercel?

Set the runtime to Bun in your Vercel project settings, use bun run build or bun build for the build step, and run bun install --frozen-lockfile for reproducible installs during deployment.

What is the difference between bun.lock and bun.lockb?

bun.lock is the text-based lockfile used by current Bun versions, while bun.lockb is the binary format from older versions. Commit whichever lockfile your Bun version generates for reproducible installs.