bun-expert

Guide JavaScript/TypeScript project setup, migration, and tooling for Bun.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/abpai/skills --skill bun-expert-abpai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-expert
Source: https://github.com/abpai/skills/tree/main/bun-expert
Command: npx skills add https://github.com/abpai/skills --skill bun-expert-abpai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to adopt Bun for JavaScript/TypeScript projects, needing a clear, official-aligned playbook to set up, migrate, and optimize Bun-based workflows.

Core Features & Use Cases

  • Project setup & scaffolding: kick off Bun projects with minimal configuration and sensible defaults.
  • Dependency & tooling management: install, update, and organize dependencies using Bun's tooling and migrations from Node.js.
  • Running & server capabilities: guide on building HTTP servers with Bun.serve, and using Bun APIs for storage, databases, and runtimes.
  • Testing & bundling: integrate bun test and bun build into local and CI workflows.
  • Migration from Node.js: step-by-step patterns to port existing projects to Bun, with compatibility checks and pitfalls to avoid.

Quick Start

Install Bun and scaffold a new Bun project to start coding.

Frequently Asked Questions about bun-expert

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

FAQPage Schema
How do I migrate an existing Node.js project to Bun?

Migrating a Node.js project to Bun requires checking API compatibility and applying step-by-step patterns to port existing JavaScript and TypeScript codebases while avoiding common pitfalls. This includes transitioning dependencies and tooling configurations.

What is the best way to set up a new Bun project with TypeScript?

Setting up a new Bun project involves scaffolding with minimal configuration and sensible defaults to kick off JavaScript and TypeScript development. You install Bun and use its built-in tooling to manage dependencies and configure the runtime environment.

Does Bun test work with existing JavaScript testing workflows?

Yes, Bun test integrates directly into local and CI workflows for JavaScript and TypeScript projects. It provides a built-in testing framework that aligns with official best practices, allowing you to run tests without external dependencies.

How do I build an HTTP server using Bun.serve?

Building an HTTP server with Bun.serve involves using the runtime's built-in APIs to handle requests directly. This approach provides server capabilities without needing external frameworks, following official best practices for JavaScript and TypeScript projects.

Can I use bun build for bundling TypeScript files in a CI pipeline?

Yes, you can use bun build to bundle TypeScript and JavaScript files within CI pipelines. It integrates into local and continuous integration workflows, providing bundling capabilities aligned with official documentation.

What are the common pitfalls when migrating from Node.js to the Bun runtime?

Common pitfalls when migrating from Node.js to the Bun runtime involve API compatibility issues and tooling configuration mismatches. You need to perform compatibility checks and follow step-by-step patterns to ensure existing JavaScript and TypeScript projects function correctly.