bun-dev

Generate Bun runtime patterns for sqlite, HTTP, testing, and file operations.

28|1|Updated Aug 30, 2025
One-click install
npx skills add https://github.com/outfitter-dev/agents --skill bun-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bun-dev
Source: https://github.com/outfitter-dev/agents/tree/main/baselayer/skills/bun-dev
Command: npx skills add https://github.com/outfitter-dev/agents --skill bun-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides Bun-centric patterns for runtime development, including native APIs, bun:sqlite, Bun.serve, bun:test, file handling, and Bun-specific tooling. It helps teams leverage Bun to build fast, minimal, zero-dependency patterns.

Core Features & Use Cases

  • Bun runtime basics: Quick-start patterns for Bun projects.
  • SQLite with bun:sqlite: Efficient embedded data access patterns.
  • HTTP server with Bun.serve: Lightweight server patterns.
  • Testing with bun:test: Test-driven Bun patterns.
  • File operations: Bun.file, Bun.write, and streaming.

Quick Start

Start a Bun project, add bun:sqlite, spin up Bun.serve, and run bun.test for local tests.

Frequently Asked Questions about bun-dev

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

FAQPage Schema
How do I build a fast HTTP server with Bun?▼

Bun.serve creates lightweight HTTP servers with minimal overhead. Use it to spin up a server with route handlers, then deploy directly without external frameworks or dependencies.

Can I use SQLite with Bun for embedded data storage?▼

Yes, bun:sqlite provides efficient embedded database access. Write prepared statements, transactions, and queries natively within Bun projects without external drivers.

What's the best way to test Bun applications?▼

bun:test is Bun's native testing framework. Write test files, run them with `bun test`, and integrate test-driven workflows directly into your Bun development cycle.

How do I handle files and streaming in Bun?▼

Bun.file and Bun.write provide native file operations with streaming support. Read, write, and stream files efficiently without external I/O libraries or dependencies.

Does Bun work for zero-dependency projects?▼

Yes, Bun's built-in APIs—sqlite, serve, test, and file operations—enable complete projects without npm dependencies. Leverage native patterns for database, server, testing, and file handling.

How do I set up environment handling and password hashing in Bun?▼

Bun provides native environment variable access and password hashing utilities. Configure environment handling and secure password operations directly within Bun without external packages.