Bun runtime and toolkit — server, bundler, package manager, test runner, SQLite, and Node.js compatibility.
47 stars
0 votes
2 copies
41 views
Added September 12, 2026
developmentjavascripttypescriptjavasqlnodeapi
Works with
api
Security analysis
A100/100
Scanned September 12, 2026
$npx -y skills add skeletorflet/opencode-supreme-setup --skill bun --agent claude-code
Installs into .claude/skills of the current project.
Are you the author of Bun?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/skeletorflet-bun)
---
name: bun
description: Bun runtime and toolkit — server, bundler, package manager, test runner, SQLite, and Node.js compatibility.
trigger: bun, bun.sh, bun runtime, bun.serve, bun file, bun install, bun build, bun test, bunx, node.js compatibility
---
# Bun
## Overview
Bun is an all-in-one JavaScript runtime and toolkit designed for speed. It replaces Node.js, npm, npx, Jest, Webpack, and ts-node with a single binary.
## Core APIs
### bun.serve
HTTP server with built-in request/response handling. Supports TLS, streaming, and WebSockets natively.
### bun.file
Lazy file reader with BLOB support. Works with `Response`, `ArrayBuffer`, and streaming interfaces.
### bun:sqlite
Built-in SQLite3 binding. Synchronous API, no C dependencies. Supports prepared statements, transactions, and WAL mode.
## Package Management
- `bun install` — fast lockfile-free installs with global cache
- `bun add` / `bun remove` — dependency management
- `bunx` — npx-compatible package runner
## Build System
Bun.build bundles JavaScript/TypeScript for browser and server. Supports entry points, external modules, minification, source maps, and targeting.
## Plugin System
Bun plugins intercept module resolution and transformation. Useful for loaders (CSS, YAML, .env) and custom transpilation.
## Test Runner
`bun test` provides Jest-compatible API (`describe`, `it`, `expect`) with TypeScript and JSX support, snapshots, and lifecycle hooks.
## Node.js Compatibility
Bun aims for full Node.js API compatibility. Most npm packages work without modification. Built-in support for `node:*` modules, CommonJS, and ESM.