bun

Guide Bun JavaScript runtime usage with native APIs and integrated toolchain.

19|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/xobotyi/cc-foundry --skill bun-xobotyi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bun
Source: https://github.com/xobotyi/cc-foundry/tree/main/plugins/javascript/skills/bun
Command: npx skills add https://github.com/xobotyi/cc-foundry --skill bun-xobotyi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you leverage the full power of the Bun JavaScript runtime, ensuring you use its native APIs and conventions for optimal performance and efficiency.

Core Features & Use Cases

  • API Guidance: Provides clear rules and examples for using Bun-native APIs (e.g., Bun.serve, Bun.$, bun:sqlite) over Node.js equivalents.
  • Toolchain Mastery: Explains how to use Bun's integrated bundler, test runner, and package manager.
  • Use Case: When writing a new web service, this Skill guides you to use Bun.serve for efficient HTTP handling and Bun.$ for shell commands, avoiding Node.js polyfills.

Quick Start

Use the bun skill to write an HTTP server using Bun.serve.

Frequently Asked Questions about bun

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

FAQPage Schema
How do I create an HTTP server using the Bun JavaScript runtime?▼

To create an HTTP server using the Bun JavaScript runtime, use the native Bun.serve API for efficient HTTP handling instead of Node.js polyfills. It provides built-in request and response objects optimized for performance.

What is the best way to run shell commands in Bun scripts?▼

The best way to run shell commands in Bun scripts is using the native Bun.$ API. It provides a performant, integrated shell scripting experience that avoids the overhead of Node.js equivalents.

Does the Bun runtime include a built-in test runner and bundler?▼

Yes, the Bun runtime includes an integrated test runner and bundler. It provides a complete toolchain for JavaScript performance testing and building, allowing you to manage packages and execute tests natively.

Why should I use Bun native APIs over Node.js polyfills?▼

You should use Bun native APIs over Node.js polyfills to achieve optimal performance and efficiency. Native solutions like bun:sqlite and Bun.serve leverage Bun's integrated runtime architecture directly, avoiding compatibility layer overhead.

Can I use Bun for file I/O operations and database queries?▼

Yes, you can use Bun for file I/O operations and database queries. It provides native APIs like bun:sqlite for handling SQLite databases and optimized file system access, recommending these over Node.js equivalents.