Skip to main content
skillsFirst-partyReview first Safety Privacy

Bun JavaScript Runtime Development Skill

Build JavaScript and TypeScript apps with Bun, an all-in-one toolchain that replaces Node.js, npm, a bundler, and a test runner with one fast binary that executes TypeScript directly.

HarnessClaude CodeCodexWindsurfGeminiCursorCLI
Level:advancedType:generalVerified:draft
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://bun.sh/docs, https://github.com/JSONbored/awesome-claude/blob/main/content/skills/bun-runtime-modern-javascript.mdx
Package URL
/downloads/skills/bun-runtime-modern-javascript.zip
Package SHA256
d9c1c744531414228b49e8915b9cf9d652c874f79cb3845e8b2bc2d9d4dac381
Safety notes
Installing Bun globally (`npm install -g bun`) adds a runtime to your system; install from the official npm package or bun.sh and keep it updated., Bun runs JavaScript/TypeScript with full system access like Node.js; review code before executing it, especially untrusted scripts.
Privacy notes
Bun apps you build can read local files, environment variables, and make network calls like any Node.js app; keep secrets in environment variables and review what your code sends externally.
Platform compatibility
claude-code (native-skill), codex (native-skill), windsurf (native-skill), gemini (native-skill), cursor (adapter), cli (manual-context)
Author
JSONbored
Claim status
unclaimed
Last verified
2025-10-23

Decision playbook

Ready to evaluate for your workflow

Signals are comparatively strong, but you should still validate source, privacy posture, and package provenance for your environment.

Compare context
Selected

0

Current score

96

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as first-party.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Complete

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    Package marked verified.

    Done
  • Checksum metadata

    SHA-256 hash is present.

    Done

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Package install

Copy-ready — paste the snippet to get started.

Install command

Provided

Config snippet

Not provided

Copy snippet

Provided

Prerequisites

4 to clear

Platforms

6 listed

Difficulty

100/100

Adoption plan

Balanced adoption plan

Current risk score 0/100. Use staged verification before broader rollout.

Risk 0

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    Package verification/checksum metadata is available.

    Done

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (6/6 signals complete).

Risk 0

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Present

Package integrity metadata is present.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

6/6 steps complete with no blocking gaps for this preset.

Risk 0

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is available.

Done

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

4 prerequisites to line up before setup.

0/4 ready
Install & runtime2General2

Safety & privacy surface

Safety & privacy surface

2 safety and 1 privacy notes across 2 risk areas. Review closely: credentials & tokens.

2 areas
  • SafetyExecution & processesInstalling Bun globally (`npm install -g bun`) adds a runtime to your system; install from the official npm package or bun.sh and keep it updated.
  • SafetyExecution & processesBun runs JavaScript/TypeScript with full system access like Node.js; review code before executing it, especially untrusted scripts.
  • PrivacyCredentials & tokensBun apps you build can read local files, environment variables, and make network calls like any Node.js app; keep secrets in environment variables and review what your code sends externally.

Safety notes

  • Installing Bun globally (`npm install -g bun`) adds a runtime to your system; install from the official npm package or bun.sh and keep it updated.
  • Bun runs JavaScript/TypeScript with full system access like Node.js; review code before executing it, especially untrusted scripts.

Privacy notes

  • Bun apps you build can read local files, environment variables, and make network calls like any Node.js app; keep secrets in environment variables and review what your code sends externally.

Prerequisites

  • Bun 1.0+ (install with `npm install -g bun`)
  • macOS, Linux, or WSL
  • Basic JavaScript/TypeScript knowledge
  • Node.js-compatible project structure with package.json for dependency management and module resolution

Schema details

Install type
package
Reading time
4 min
Difficulty score
100
Troubleshooting
Yes
Breaking changes
No
Package metadata
Package verified
Yes
SHA-256
d9c1c744531414228b49e8915b9cf9d652c874f79cb3845e8b2bc2d9d4dac381
Skill and platform metadata
Skill type
general
Skill level
advanced
Verification
draft
Verified at
2025-10-23
Retrieval sources
https://bun.sh/docs
Tested platforms
ClaudeCodexOpenClawCursorWindsurfGemini
PlatformSupportInstall path
claude-codeNative.claude/skills/<skill-name>/SKILL.md
codexNative.agents/skills/<skill-name>/SKILL.md
windsurfNative.windsurf/skills/<skill-name>/SKILL.md
geminiNative.gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md
cursorAdapter.cursor/rules/<skill-name>.mdc
cliManualAGENTS.md or tool-specific context file
Full copyable content
const server = Bun.serve({
  port: 3000,
  async fetch(req) {
    const url = new URL(req.url);
    
    // Route handling
    if (url.pathname === '/') {
      return new Response('Hello from Bun!');
    }
    
    if (url.pathname === '/api/users') {
      const users = await getUsers();
      return Response.json(users);
    }
    
    // Static file serving
    if (url.pathname.startsWith('/static/')) {
      const file = Bun.file(`.${url.pathname}`);
      return new Response(file);
    }
    
    return new Response('Not Found', { status: 404 });
  },
});

console.log(`Listening on port ${server.port}`);

About this resource

What This Skill Enables

Claude can build and deploy JavaScript/TypeScript applications using Bun, the all-in-one JavaScript runtime with fast package installs and startup. Bun includes a native bundler, test runner, package manager, and TypeScript transpiler in a single binary. From APIs to CLIs to build tools, Bun provides drop-in Node.js compatibility with modern performance.

Compatibility

Native

  • Claude Code / Claude: native skill usage via SKILL.md.
  • Codex/OpenAI workflows: compatible with Agent Skills-style SKILL.md content as reusable workflow instructions.

Manual Adaptation

  • Gemini CLI: native skill usage via .gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md where supported.
  • Cursor: use the generated .cursor/rules/*.mdc adapter for project rules.
  • OpenClaw and similar agents: use the same skill content as a reusable prompt/workflow file when native skill import is unavailable.

Prerequisites

Required:

  • Claude Pro subscription or Claude Code CLI
  • macOS, Linux, or WSL (Windows support in beta)
  • curl or wget for installation
  • Basic JavaScript/TypeScript knowledge

What Claude handles automatically:

  • Writing Bun-optimized server code
  • Configuring bun:test for testing
  • Setting up Bun.serve() for HTTP servers
  • Using Bun.build() for bundling
  • Implementing file operations with Bun.file()
  • Adding WebSocket support
  • Configuring environment variables
  • Optimizing for Bun's performance characteristics

How to Use This Skill

High-Performance HTTP Server

Prompt: "Create Bun HTTP server with: REST API routes, JSON parsing, CORS middleware, static file serving, WebSocket support, and error handling. Optimize for maximum req/sec."

Claude will:

  1. Use Bun.serve() with fetch handler
  2. Implement routing with URL patterns
  3. Add CORS headers
  4. Serve static files with Bun.file()
  5. Set up WebSocket upgrade
  6. Handle errors gracefully
  7. Benchmark with wrk/autocannon

CLI Tool Development

Prompt: "Build CLI tool with Bun for: file processing, progress bars, colored output, interactive prompts, and parallel operations. Package as standalone binary."

Claude will:

  1. Parse args with Bun.argv
  2. Use chalk for colors
  3. Add ora for spinners
  4. Implement inquirer prompts
  5. Process files with Bun.file()
  6. Use Bun.spawn() for parallel
  7. Build executable with bun build

Database Operations

Prompt: "Create Bun app with SQLite using bun:sqlite. Include: connection pooling, prepared statements, migrations, and query builder pattern."

Claude will:

  1. Use bun:sqlite module
  2. Set up connection pool
  3. Create prepared statements
  4. Implement migration system
  5. Build query builder
  6. Add transaction support
  7. Handle errors and cleanup

Testing with Bun

Prompt: "Set up Bun testing for API with: unit tests, integration tests, mocking, coverage reporting, and parallel execution."

Claude will:

  1. Write tests with bun:test
  2. Use expect assertions
  3. Mock with spyOn
  4. Configure coverage
  5. Run tests in parallel
  6. Add before/after hooks
  7. Test HTTP endpoints

Tips for Best Results

  1. Use Bun APIs: Prefer Bun.file() over fs, Bun.serve() over http module. Bun's APIs are optimized and simpler.

  2. Native TypeScript: No need for ts-node or build step. Bun runs TypeScript natively. Use .ts extensions directly.

  3. Built-in Bundler: Use bun build instead of webpack/esbuild. Single-command bundling with tree-shaking.

  4. Fast Package Manager: Run bun install instead of npm/pnpm. Uses global cache and parallel downloads.

  5. WebSocket Native: Bun.serve() includes WebSocket upgrade. No need for ws or socket.io for simple cases.

Common Workflows

REST API Backend

"Build production REST API with Bun:
1. HTTP server with Bun.serve() and routing
2. JWT authentication middleware
3. Database with bun:sqlite or Postgres
4. Request validation with Zod
5. Rate limiting with in-memory store
6. File uploads with Bun.file()
7. WebSocket for real-time updates
8. Docker deployment with bun:alpine"

Build Tool Development

"Create build tool with Bun:
1. File watching with Bun.watch()
2. Bundling with Bun.build()
3. TypeScript transpilation (automatic)
4. Minification and tree-shaking
5. Source maps generation
6. Plugin system for transforms
7. Parallel file processing
8. Cache invalidation"

Microservices Infrastructure

"Build microservices with Bun:
1. Service discovery with etcd
2. gRPC communication
3. Health checks endpoint
4. Metrics collection
5. Structured logging
6. Graceful shutdown
7. Docker containers
8. Kubernetes deployment"

Troubleshooting

Issue: "Node.js package not working in Bun" Solution: Check Bun compatibility at bun.sh/docs. Most npm packages work. For native modules, ensure Bun version supports Node-API. Use --bun flag or check package.json engines field.

Issue: "Performance not better than Node.js" Solution: Ensure using Bun APIs (Bun.serve not http). Check CPU-bound vs I/O-bound. Bun excels at I/O. Profile with bun:jsc. Verify using latest Bun version.

Issue: "TypeScript types not working" Solution: Install @types packages with bun add -d. Check bunfig.toml has correct compilerOptions. Use bun-types for Bun APIs. Restart editor/LSP.

Learn More

Features

  • Fast package installs with a global cache
  • Native TypeScript support without transpilation
  • Built-in bundler, test runner, and package manager
  • Drop-in Node.js compatibility for most packages
  • Built-in SQLite database support via bun:sqlite
  • WebSocket support integrated in Bun.serve()
  • Security scanner API for supply chain protection
  • Built-in package manager and bundler with npm-compatible package.json support, fast dependency resolution, and zero-config bundling for modern JavaScript applications

Use Cases

  • High-performance HTTP servers with Bun.serve()
  • CLI tools with fast startup times
  • Build tools with native bundling
  • Microservices with fast startup and low memory footprint
  • Real-time applications with WebSocket support
  • Database-driven applications with built-in SQLite

Source citations

Add this badge to your README

Show that Bun JavaScript Runtime Development Skill is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/skills/bun-runtime-modern-javascript.svg)](https://heyclau.de/entry/skills/bun-runtime-modern-javascript)

How it compares

Bun JavaScript Runtime Development Skill side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

3 trust signals differ across this comparison (Package trust, Source provenance, Submitter).

Next steps differ across entries — use the actions in the table below to copy install commands and source links per resource.

Field

Build JavaScript and TypeScript apps with Bun, an all-in-one toolchain that replaces Node.js, npm, a bundler, and a test runner with one fast binary that executes TypeScript directly.

Open dossier

Compile Rust, C++, or Go to WebAssembly and run it in the browser, Node.js, and serverless runtimes: wasm-bindgen JS interop, WASI for system access, the Component Model, and SIMD.

Open dossier

TypeScript-first validation skill using Zod — define schemas once, get runtime checks and inferred types for APIs, forms, and data pipelines.

Open dossier

Expert plugin marketplace authoring capability pack applying documented marketplace.json catalogs, /plugin marketplace add flows, private repo distribution, and supply-chain review from official plugin marketplace documentation.

Open dossier
Next stepsDiffers
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustDiffersPackage verified2025-10-23Package verified2025-10-16Package verified2025-10-16Package not verified
Source provenanceDiffersSource-backedNo submission linkNo submission linkSubmission linkedSource submission
SubmitterDifferskiannidev
Install riskReview firstLow riskLow riskReview first
Notes Safety Privacy Safety Privacy Safety Privacy Safety Privacy
Brand
Categoryskillsskillsskillsskills
Sourcefirst-partyfirst-partyfirst-partysource-backed
AuthorJSONboredJSONboredJSONboredkiannidev
Added2025-10-232025-10-162025-10-162026-06-16
Platforms
Claude CodeCodexWindsurfGeminiCursorCLI
Claude CodeCodexWindsurfGeminiCursorCLI
Claude CodeCodexWindsurfGeminiCursorCLI
Claude CodeCodexWindsurfGeminiCursorCLI
Source repo
Safety notesInstalling Bun globally (`npm install -g bun`) adds a runtime to your system; install from the official npm package or bun.sh and keep it updated. Bun runs JavaScript/TypeScript with full system access like Node.js; review code before executing it, especially untrusted scripts.The install step downloads and unzips a package, and building modules runs compiler toolchains (wasm-pack, Emscripten, or the WASI SDK); run them in a trusted project directory and review generated build files. WASI grants modules system access (files, env, sockets); grant only the capabilities a module needs and review WASI imports before running untrusted modules.Install Zod with `npm install zod` (or your package manager's equivalent) before use. The library has zero runtime dependencies and does not execute network requests on its own. Async refinements (`.refine(async fn)`) may call external services if your own callback does — review any async refinement for unintended network or database access.Autonomous runs can execute tools without mid-run user input—scope paths and connectors first. Do not enable destructive automation without explicit approval gates. Review outputs as draft until a human validates evidence.
Privacy notesBun apps you build can read local files, environment variables, and make network calls like any Node.js app; keep secrets in environment variables and review what your code sends externally.Compiling and running modules is local, but a module that fetches remote models or data (for example ONNX inference) sends and receives data over the network; review what it downloads and where results go.Zod validates data in-process only and does not transmit your schemas, inputs, or error output to any external service. Schemas that validate emails, passwords, or personal data remain entirely local; no input leaves your runtime environment through Zod itself.Run output may contain proprietary code and credentials. Summaries for external channels require redaction.
Prerequisites
  • Bun 1.0+ (install with `npm install -g bun`)
  • macOS, Linux, or WSL
  • Basic JavaScript/TypeScript knowledge
  • Node.js-compatible project structure with package.json for dependency management and module resolution
  • Rust 1.70+ and wasm-pack (recommended)
  • wasm-bindgen 0.2.87+
  • WASI SDK 20+ (for WASI modules)
  • Node.js 18+ for JavaScript integration
  • TypeScript 5.0+ (5.5+ recommended for best type inference)
  • zod ^3.22.0
  • Node.js 18+ or a modern browser with ES2020+ support
  • Basic TypeScript knowledge
  • Claude Code version and plan eligibility per official documentation.
  • Team policy for autonomous or shared automation workflows.
  • Staging environment for safe validation.
  • Human owner for production rollout approval.
Install
npm install -g bun
cargo install wasm-pack
npm install zod
Config
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.