bun-api

Document Bun runtime APIs for scripting, automation, and database interactions.

4|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/dmythro/agent-skills --skill bun-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-api
Source: https://github.com/dmythro/agent-skills/tree/main/skills/bun-api
Command: npx skills add https://github.com/dmythro/agent-skills --skill bun-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a centralized reference and practical guidance for Bun's runtime APIs to accelerate scripting, automation, and tooling in Bun-based projects.

Core Features & Use Cases

  • Comprehensive API overview covering Bun.file, Bun.write, Bun.$, Bun.spawn, Bun.s3, Bun.redis, Bun.sql, Bun.Archive, and related utilities.
  • Use cases span file I/O, shelling commands, database access, blob storage, and data transformation within Bun scripts.
  • Practical patterns for building automation tasks, CLIs, and data pipelines with zero dependency overhead.

Quick Start

Create a TypeScript script that uses Bun.file and Bun.write to read and write files, then run it with bun to perform automation.

Frequently Asked Questions about bun-api

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

FAQPage Schema
How do I use Bun runtime APIs for fast file I/O and scripting?

Use Bun.file and Bun.write APIs to read and write files with zero dependency overhead, enabling fast automation and scripting tasks directly within the Bun runtime.

What's the best way to run shell commands in a Bun TypeScript script?

Use the Bun.$ and Bun.spawn APIs to execute shell commands directly within your TypeScript script, streamlining automation tasks and data pipeline construction with native runtime support.

Can I connect to databases using Bun without external dependencies?

Yes, you can interact with databases using Bun.sql for relational queries and Bun.redis for caching, enabling zero-dependency database access within your Bun-based automation scripts.

Does Bun support built-in APIs for S3 blob storage and data archiving?

Bun provides Bun.s3 for blob storage operations and Bun.Archive for data archiving, allowing you to handle file storage and transformation in automation tasks without external libraries.

What are the limitations of building automation tasks with Bun runtime APIs?

The Skill provides a frontmatter-driven discovery model and validates safety through toxicity checks, but relies entirely on the Bun runtime environment for executing its native APIs without external dependencies.

When do I need Bun runtime APIs for building CLIs and data pipelines?

You need Bun runtime APIs when building CLIs and data pipelines requiring high-density tooling, file I/O, shelling commands, and database access with zero dependency overhead in TypeScript.