mcpField
B
bun-expert

bun-expert

github.com/abpaiDevelopment153 installsUpdated today
Repository

About bun-expert

bun-expert is a development guide skill for developers building with Bun. It organizes built-in APIs, package management, testing, bundling, and Node.js migration guidance, with references to official documentation.

Key features

  1. 01Reference map for Bun built-in APIs
  2. 02Package installation and linker guidance
  3. 03Testing and bundling references
  4. 04Node.js migration guidance
  5. 05Pointers to official Bun documentation

Use cases

  1. 01Choose a Bun built-in for a development task
  2. 02Configure package installation and lockfiles
  3. 03Write tests or bundle a Bun project
  4. 04Plan a Node.js-to-Bun migration

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/abpai/skills --skill bun-expert

After installing, type/bun-expertin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
references/
builtin-apis.md
node-migration.md
package-management.md
testing-and-bundling.md

Details

From the project README

Bun Runtime Development Guide

This skill is intentionally grounded in official Bun documentation. Bun moves quickly, so prefer current docs over hard-coded release timelines or benchmark claims.


Recent Capability Radar

Bun ships new built-ins constantly. This list covers what landed roughly between Bun 1.3 (Oct 2025) and Bun 1.3.14 (May 2026) — the kind of thing a model's training data likely predates. For anything newer, check https://bun.com/blog before assuming a capability doesn't exist.

Reach for these instead of the dependency you'd otherwise install:

  • Bun.SQL: one client for Postgres, MySQL/MariaDB, and SQLite — skip pg, mysql2, or postgres.
  • Bun.redis: native Redis/Valkey client — skip ioredis/node-redis.
  • Bun.secrets: OS-keychain-backed credential storage — skip keytar.
  • Bun.YAML.parse/.stringify: built-in YAML — skip js-yaml/yaml.
  • CompressionStream/DecompressionStream now support "brotli" and "zstd" formats, not just gzip/deflate.
  • Bun.stripANSI, URLPattern, and DisposableStack/AsyncDisposableStack are built in — skip strip-ansi and userland URL-pattern/cleanup helpers.
  • Bun.markdown (.html/.render/.react): built-in CommonMark+GFM parser; bun ./file.md renders Markdown in the terminal — skip markdown-it/marked for common cases.
  • Fake timers landed in bun:test (useFakeTimers, advanceTimersByTime, setSystemTime, useRealTimers) — skip sinon/@sinonjs/fake-timers.
  • HTML-entrypoint dev server gained hot module replacement via import.meta.hot — skip a separate Vite/webpack dev server for simple frontends.
  • bun install --linker=isolated with globalStore = true (or BUN_INSTALL_GLOBAL_STORE=1): still-experimental global virtual store for much faster warm installs.
  • Still experimental, don't default to these in production: Bun.WebView (browser automation without Puppeteer/Playwright) and HTTP/3 over QUIC in both Bun.serve({ http3: true }) and fetch({ protocol: "h3" }).

Built-in API Map

NeedBun API
HTTP server + WebSocketsBun.serve()
SQL databasessql, SQL, Bun.sql, Bun.SQL
S3-compatible storages3, S3Client
Redisredis, RedisClient
Scheduled tasks (cron)Bun.cron, Bun.cron.parse
Image processingBun.Image, Blob#image(), Bun.file().image()
Browser automationBun.WebView
Markdown renderingBun.markdown.html, Bun.markdown.render, Bun.markdown.react
Shell scriptingBun.$ / $
Local filesBun.file, Bun.write
SQLite (embedded)bun:sqlite
Password hashingBun.password
PTY-backed subprocessesBun.Terminal, Bun.spawn({ terminal })

Deep-Dive References

ReferenceContents
references/builtin-apis.mdBun.serve, HTTP/3, WebSockets, SQL, S3, Redis, Bun.Image, Bun.WebView, Markdown, cron, shell, PTY, filesystem, and crypto APIs
references/package-management.mdInstalls, lockfiles, isolated linker, global virtual store, catalogs, and lifecycle-script security
references/testing-and-bundling.mdbun test usage, suite-splitting flags, mocking patterns, bun build CLI and API
references/node-migration.mdPractical Node-to-Bun migration steps and compatibility guidance

Authoritative Docs

Comments

Markdown supported