mikkelkrogsholm/dev-skills

bun

Bun — fast all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner.

First seen Mar 1, 2026

Installation

$ npx skills add mikkelkrogsholm/dev-skills --skill bun

Summary

  • Bun — fast all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner.
  • Use when building with Bun, running TypeScript, managing packages with bun install, writing tests with bun test, or asking about Bun APIs, configuration, or Node.js migration.
  • Fetch live documentation for up-to-date API details.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from mikkelkrogsholm/dev-skills · top by installs.

npx skills add mikkelkrogsholm/dev-skills

Browse all from mikkelkrogsholm/dev-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 6
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,381 B
  • docs SUMMARY.md 337 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 22 installs

SKILL.md

Bun

CRITICAL: Your training data for Bun is unreliable. APIs change between versions and memorized patterns may be wrong or deprecated. Before writing any code, you MUST use WebFetch to read the live docs:

WebFetch("https://bun.sh/llms.txt";)

Do not proceed without fetching this URL first. Never assume an API exists — verify against current docs.

Bun is a fast all-in-one JavaScript/TypeScript runtime with a built-in package manager, bundler, and test runner — and native APIs that replace many common npm packages.

Key Capabilities

Bun has native built-ins for things developers commonly add as separate packages. Always prefer these over npm equivalents:

  • SQL (SQLite & PostgreSQL): use Bun.sql() / new Bun.sqlite() — not better-sqlite3, pg, or mysql2
  • Redis: use Bun.redis() — not redis or ioredis
  • S3: use Bun.s3() — not @aws-sdk/client-s3
  • Password hashing: use Bun.password.hash() / Bun.password.verify() — not bcrypt
  • Shell scripting: use Bun.$\command\` — not shelljs or execa`
  • Testing: use bun test (Jest-compatible, built-in) — not Jest
  • File globbing: use new Bun.Glob() — not the glob package
  • UUID: use Bun.randomUUID() — not the uuid package
  • TypeScript execution: run .ts files directly — no ts-node or tsx needed

Best Practices

  • .env auto-loads — Bun reads .env automatically without dotenv. Be aware when migrating from Node.js or running in environments with existing .env files.
  • Lockfile is .lockb — not compatible with npm/yarn by default. Use --yarn flag if a yarn-compatible lockfile is required.
  • Test file naming is strict — files must match .test.ts, .spec.ts, etc. and live in tests/ or test/. Wrong naming means tests are silently skipped.
  • import.meta.main replaces entrypoint checks — use if (import.meta.main) instead of the Node.js if (require.main === module) pattern.