bun-runtime

Document Bun runtime APIs for HTTP, database, storage, and build tooling.

Updated Nov 12, 2025
One-click install
npx skills add https://github.com/Ventorium/VentoStack --skill bun-runtime-ventorium
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-runtime
Source: https://github.com/Ventorium/VentoStack/tree/main/.claude/skills/bun
Command: npx skills add https://github.com/Ventorium/VentoStack --skill bun-runtime-ventorium

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Bun runtime reference consolidates all built-in APIs and toolkit usage into a single, up-to-date guide, helping developers quickly learn and apply Bun without juggling multiple sources.

Core Features & Use Cases

  • Built-in HTTP server capabilities via Bun.serve with routes and WebSocket support
  • Client and server I/O with Bun.file, Bun.write, and Bun.readable streams
  • Database access via Bun.sql and Bun:sqlite for PostgreSQL/MySQL/SQLite workflows
  • Storage and cloud interactions with Bun.s3 and JSON/YAML/TOML imports
  • Reliability tools including Bun.redis, Bun.password, Bun.test, and Bun.build for production-grade apps
  • Comprehensive performance and dev tooling guidance for Bun-native development

Quick Start

Try a minimal Bun-based HTTP route using Bun.serve to observe built‑in routing and zero-dependency execution.

Frequently Asked Questions about bun-runtime

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

FAQPage Schema
How do I create an HTTP server with Bun using built-in APIs?

Create an HTTP server with Bun using Bun.serve, which supports built-in routing and WebSocket connections without external dependencies. It provides zero-dependency execution for backend development directly within the runtime.

Can I use Bun for database access without external libraries?

Yes, you can use Bun for database access without external libraries via Bun.sql and Bun:sqlite. These built-in APIs handle PostgreSQL, MySQL, and SQLite workflows natively.

What is the best way to handle file I/O in a Bun runtime application?

The best way to handle file I/O in a Bun runtime application is using Bun.file, Bun.write, and Bun.readable streams. These built-in tools manage client and server I/O operations efficiently.

Does Bun include built-in tools for testing and building production apps?

Bun includes built-in reliability tools for testing and building production apps via Bun.test and Bun.build. It also provides Bun.password and Bun.redis to support production-grade application requirements.

Can I manage cloud storage and configurations natively in Bun?

You can manage cloud storage and configurations natively in Bun using Bun.s3 for storage interactions. The runtime also supports importing JSON, YAML, and TOML files natively for configuration.