bun-development

Guides JavaScript and TypeScript development with the Bun runtime including package management, testing, and bundling.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/involvex/dev --skill bun-development-involvex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bun-development
Source: https://github.com/involvex/dev/tree/main/.claude/skills/bun-development
Command: npx skills add https://github.com/involvex/dev --skill bun-development-involvex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers working with the Bun runtime need accurate guidance on its built-in tooling, native APIs, and differences from Node.js to avoid misusing commands or missing performance opportunities. ## Core Features & Use Cases - Package Management: Covers bun install, bun add, bunx, lockfile handling, and registry configuration. - Built-in APIs: Documents Bun.serve for HTTP and WebSocket servers, Bun.file for fast file I/O, bun:sqlite for embedded databases, and Bun.password for hashing. - Testing and Bundling: Explains bun test with matchers and mocking, plus Bun.build for production bundles and standalone executables. - Use Case: When migrating an Express API from Node.js to Bun, use this Skill to replace npm scripts, swap fs calls for Bun.file, and set up bun test as the test runner. ## Quick Start Use the bun-development skill to help me migrate my Node.js Express project to Bun with native APIs and bun test.

Frequently Asked Questions about bun-development

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

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

Install Bun, delete node_modules and package-lock.json, then run bun install. Update package.json scripts to use bun run and bun test, and add @types/bun as a dev dependency for TypeScript support.

How to run TypeScript files directly without a build step?▼

Bun executes TypeScript natively with bun run index.ts, requiring no transpiler. Use bun --watch run index.ts for auto-restart on file changes during development.

Bun vs Node.js for backend development?▼

Bun offers faster startup, native TypeScript and JSX support, and built-in tools like a test runner and bundler. Node.js APIs like fs, path, and Buffer mostly work in Bun, but Bun-native APIs like Bun.serve and Bun.file deliver better performance.

Does Bun support WebSocket servers?▼

Yes, Bun.serve supports WebSocket upgrades natively. Call server.upgrade(req) in the fetch handler and define open, message, and close callbacks in the websocket configuration object.

Why do some Node.js APIs not work in Bun?▼

Bun does not support require.resolve or __non_webpack_require__; use import.meta.resolve or Bun.resolveSync instead. process.hrtime should be replaced with Bun.nanoseconds for high-resolution timing.

How do I compile a Bun app into a standalone executable?▼

Run bun build ./src/cli.ts --compile --outfile myapp to produce a single executable. Cross-compile for other platforms using the --target flag, such as bun-linux-x64 or bun-darwin-arm64.