What does this skill do?

The Bun Runtime Skill provides a comprehensive guide to adopting Bun as a runtime environment, package manager, bundler, and test runner for JavaScript and TypeScript projects. It replaces multiple tools with a single, unified, high-performance pipeline, featuring native support for TypeScript and optimized APIs such as Bun.serve and Bun.file.

New JS/TS Projects
Launch projects where installation and execution speed are critical from the very first command.
Migration from Node.js
Gradually replace npm, Node.js, Jest, and Webpack with Bun in existing projects.
Integrated testing
Run tests using bun test, which is compatible with the Jest API, without any additional configuration.
Deployment on Vercel
Configure the Bun runtime on Vercel with reproducible installations using frozen-lockfile.

Usage examples

📦 Installation of auxiliary facilities
Install the project dependencies using Bun instead of npm.
🟢 Run native TypeScript
Run the src/index.ts file directly without transpiling it using Bun.
🧪 Run tests
Run the project's tests using bun test in observation mode.
☁️ Deploy to Vercel
Configure the project to deploy to Vercel using the Bun runtime with a frozen lockfile.

Features

All-in-One Runtime Bun serves as a runtime, package manager, bundler, and test runner all in one tool.
Native TypeScript Run .ts files directly without manual transpilation configuration.
Optimized APIs Take advantage of Bun.serve and Bun.file for high-performance HTTP servers and file reading.
Compatibility with Jest The built-in test runner is compatible with the Jest API, allowing you to migrate tests without rewriting them.
Deployment on Vercel Supports Bun runtime configuration on Vercel with reproducible installations via frozen-lockfile.

Frequently asked questions

Yes. The skill generates commands and configurations for Bun, so you must have it installed on your system. You can install it with `curl -fsSL https://bun.sh/install | bash`.
Yes. The skill guides the gradual migration: it replaces `npm install` with `bun install`, `node` with `bun run`, and `jest` with `bun test`, while maintaining compatibility with your existing code.
Yes. Bun runs TypeScript files natively without requiring tsc, ts-node, or any additional transpilation configuration.
Yes. You can run any script defined in package.json using `bun run`, and use `bun x` as an alternative to `npx` for one-off commands.
Bun Runtime — Ultra-fast JavaScript and TypeScript with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.