bun-fieldguide

Guide Bun runtime development with code examples for APIs and SQLite.

6|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/outfitter-dev/outfitter --skill bun-fieldguide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-fieldguide
Source: https://github.com/outfitter-dev/outfitter/tree/main/plugins/fieldguides/skills/bun-fieldguide
Command: npx skills add https://github.com/outfitter-dev/outfitter --skill bun-fieldguide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and practical examples for developing applications using the Bun JavaScript runtime, covering its core features and APIs.

Core Features & Use Cases

  • Runtime Development: Learn essential Bun commands for package management, script execution, testing, and building.
  • API Usage: Understand how to use Bun's native APIs for file operations, SQLite databases, HTTP servers, WebSockets, password hashing, and shell commands.
  • Use Case: You need to build a fast, efficient API server using Bun. This Skill will guide you through setting up Bun.serve, handling requests, and interacting with a SQLite database using bun:sqlite.

Quick Start

Execute the command bun install to install project dependencies.

Frequently Asked Questions about bun-fieldguide

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

FAQPage Schema
How do I set up an HTTP server using Bun.serve and connect it to a SQLite database?

To set up an HTTP server with Bun.serve and SQLite, you use Bun's native APIs to handle incoming requests and the bun:sqlite module to manage database interactions, enabling fast and efficient API development without external dependencies.

Can I use Bun for package management, script execution, and testing in one workflow?

Yes, Bun provides built-in commands for package management, script execution, and testing. You can install dependencies, run JavaScript scripts, and execute test suites entirely within the Bun runtime environment.

What native APIs does the Bun runtime provide for file operations and password hashing?

Bun provides native APIs for fast file operations and secure password hashing. These built-in utilities allow you to read and write files directly and hash passwords efficiently without needing external npm packages.

Does Bun support executing shell commands and handling WebSocket connections natively?

Yes, Bun supports executing shell commands and handling WebSocket connections natively. The runtime provides built-in shell operations and WebSocket APIs to manage system processes and real-time communication seamlessly.

What is the best way to manage environment variables in a Bun JavaScript runtime application?

The best way to manage environment variables in Bun is using its built-in environment variable utilities. Bun natively processes environment variables, allowing your JavaScript runtime application to access configuration securely.

Why choose Bun over other JavaScript runtimes for API development and performance utilities?

Choose Bun for API development and performance utilities because it integrates package management, testing, and native APIs like Bun.serve and bun:sqlite directly into the runtime, delivering high-speed execution and eliminating external tool overhead.