itechmeat/llm-code/bun
Claude Code and agent skill by itechmeat/llm-code
- community
Checking that the SKILL.md file is still in the repository.
Bun JavaScript/TypeScript runtime and all-in-one toolkit. Covers runtime, package manager, bundler, test runner, HTTP server, WebSockets, SQLite, S3, Redis, file I/O, shell scripting, FFI, Markdown parser. Use when running JS/TS with Bun, managing packages, bundling, testing, or using Bun-specific APIs. Keywords: bun, bunx, bun install, bun run, bun test, bun build, Bun.serve, Bun.file, bun:sqlite, Bun.markdown.
Install
npx vskill@latest install itechmeat/llm-code/bunSKILL.md
Bun
All-in-one JavaScript/TypeScript toolkit: runtime, package manager, test runner, bundler.
Quick Navigation
| Topic | Reference | |
|---|---|---|
| Package Manager | references/package-manager.md | |
| Project Setup | references/project-scaffolding.md | |
| Development | references/development.md | |
| Module System | references/module-system.md | |
| TypeScript & JSX | references/typescript-jsx.md | |
| Type Check & Format | references/type-checking-and-formatting.md | |
| Configuration | references/bunfig.md | |
| HTTP Server | references/http-server.md | |
| Browser Automation | references/webview.md | |
| WebSockets | references/websockets.md | |
| File I/O | references/file-io.md | |
| SQLite | references/sqlite.md | |
| S3 Storage | references/s3.md | |
| Redis | references/redis.md | |
| Low-Level Network | references/networking-low-level.md | |
| Fetch API | references/fetch.md | |
| Shell Scripts | references/shell.md | |
| Spawn Process | references/spawn.md | |
| Workers | references/workers.md | |
| Native FFI | references/native-interop.md | |
| C/C++ Compile | references/cc.md | |
| Transpiler | references/transpiler.md | |
| Plugins | references/plugins.md | |
| FS Router | references/file-system-router.md | |
| Environment Vars | references/env.md | |
| Utilities | references/utilities.md | |
| Node.js Compat | references/nodejs-compat.md |
When to Use Bun
- Running TypeScript/JSX without build step
- Fast HTTP server with native routing
- Headless browser automation with native input events
- SQLite database (embedded, no deps)
- WebSocket server/client
- S3-compatible storage (AWS, R2, MinIO)
- Redis caching/pub-sub
- Cross-platform shell scripts
- In-process cron scheduling
- Markdown parsing (v1.3.8+)
- Native library calls via FFI
Core Advantages
- 4x faster startup than Node.js
- Native TypeScript/JSX — no tsconfig needed
- ESM + CommonJS — both work seamlessly
- Web APIs built-in — fetch, WebSocket, etc.
- 30x faster installs than npm
Quick Start
Critical Rules
| Don't | Do | |
|---|---|---|
http.createServer() | Bun.serve() | |
fs.readFileSync() | Bun.file().text() | |
better-sqlite3 | bun:sqlite | |
child_process.exec() | Bun.$ or Bun.spawn() | |
dotenv | Built-in .env support |
Release Highlights (1.4.3 -> 1.4.4)
- Built-in TypeScript checker (`1.4.3`):
bun checktype-checks the project of the nearesttsconfig.jsonand passes 100% of the TypeScript 7.0.2 conformance suite. It reports the same errors astsc(file, line, column, error code) at 3x-6.4x the speed and 2.2x-4.9x less memory; any compiler option works as a flag (--strict,--target) and overridestsconfig.json. - `bun build --check` (`1.4.3`): type-checks and then bundles. A type error fails the build like any other build error and nothing is written. The JS API equivalent is
Bun.build({ check: true }). - Built-in formatter (`1.4.4`):
bun fmtis a Prettier-compatible formatter built into the runtime. On Prettier's own repository (2,616 files)bun fmt --checktakes 60 ms against 17 seconds for Prettier - about 286x faster at 48 MB peak memory instead of 459 MB. It formats JavaScript, TypeScript, JSX, Flow, CSS, SCSS, Less, HTML, Vue, Svelte, Angular, LWC, MJML, JSON/JSONC/JSON5, YAML, TOML, Markdown, MDX, GraphQL and Handlebars, including embedded code. - `bun fmt` flags:
--checklists files that need formatting and exits with code 1,--stagedformats and re-stages only what you are about to commit (replaces lint-staged),--changedformats what differs from the default branch (accepts a ref, e.g.--changed=origin/dev),--doctorshows how Bun reads your config and which packages you can uninstall,--initcreates the[fmt]section. - `bun fmt` configuration: reads
.prettierrc*,prettier.config.*,prettierinpackage.json,overrides,.editorconfig,.prettierignore, plus.oxfmtrc.json,.oxfmtrc.jsoncandoxfmt.config.ts. Prettier options work under the same names inbunfig.toml([fmt] printWidth,semi, plus[[fmt.overrides]]withfilesandoptions) and as flags (--print-width 100,--no-semi). - Built-in import sorting:
sortImportsgroups imports, sorts the names inside{ }and merges duplicate imports from the same module, so@trivago/prettier-plugin-sort-imports,@ianvs/prettier-plugin-sort-importsandprettier-plugin-organize-importsare no longer needed.sortTailwindcss,sortPackageJsonandjsdocare opt-in and need no Prettier config. - Built-in plugin equivalents:
bun fmtdoes the work ofprettier-plugin-tailwindcss,prettier-plugin-packagejsonandprettier-plugin-svelte, and their options are supported. Tailwind classes are sorted with the project'stailwindcss(v3 or v4). Languages that need a real Prettier plugin (e.g. Astro) fall back to the Prettier installed in the project. - Monorepo and skip rules: in a monorepo
bun fmtwalks up to the nearestbunfig.tomlwith a[fmt]section; without a Prettier config it also formats TOML. It skips*.min.js,*.min.cssand lockfiles unless you pass them explicitly.
Full details: references/type-checking-and-formatting.md
Release Highlights (1.4.x)
- Rust rewrite: first release of the Rust port. Lower peak memory (mimalloc allocator, 13-48% less under load), ~2x faster startup, 5x lower idle CPU, and 1,500+ more passing Node.js test-suite tests.
- HTTP/2 & HTTP/3:
Bun.serve()serves HTTP/1.1 and HTTP/2 on the same port via ALPN over TLS (v1.4.1); HTTP/3 is experimental viahttp3: true.fetch()can use HTTP/2/3 clients behind feature flags. - Serve static directories:
routes: { "/static/*": { dir: "./public" } }with sendfile, ETag, Range, conditional requests, and index.html. - CLI:
bun run --parallelfor concurrent scripts;bun audit fix,bun dedupe,bun prune,bun pm diff,bun pm licensesfor package maintenance. - `bun test`:
--parallel,--isolate,--shard=M/N,--timings,--changed(diff-based),--retry, andjest.useFakeTimers(). - `bun build`: built-in React Compiler (
--react-compiler), barrel-import optimization, tree-shaking throughexport * asand dynamicimport(),--min-chunk-size, and module preloading. - `bun install`:
--linker=isolatedglobal virtual store,--offline/--prefer-offline,bun add --catalog, nested overrides, andselfContainedworkspaces. - New runtime APIs:
Bun.Terminal(PTY),Bun.Archive(tar),Bun.JSON5/JSONL/JSONC/XML/TOMLparsers, streamingBun.write(path, response),WebSocket.pause()/resume(),crypto.argon2, and post-quantum ML-DSA/ML-KEM incrypto.subtle.
Release Highlights (1.3.14)
- `Bun.Image`: built-in image decoding, transforms, and encoding for common formats with no npm dependency or native addon build step.
- Test workflow: the
1.3.13line improves dependency-aware filtering for changed-file test runs, which matters when you rely on partial local verification. - Patch-line runtime work:
1.3.13-1.3.14continues compatibility and performance work on top of the1.3.12WebView/cron/Markdown release line.
Release Highlights (1.3.12)
- `Bun.WebView`: native headless browser automation with WebKit on macOS and Chrome/Chromium via CDP on all platforms.
- `Bun.cron()` callback mode: in-process scheduler with no-overlap execution, UTC semantics, hot-reload cleanup, and
Disposablejob handles. - Markdown in terminal:
bun ./file.mdandBun.markdown.ansi()make terminal-native rendering a first-class workflow. - Networking/runtime: UDP error/truncation handling, Node-compatible unix-socket lifecycle, proxy tunnel reuse, and
Bun.serve()accept/perf improvements.
Essential Recipes
HTTP Server
File Operations
SQLite
WebSocket Server
Shell Commands
S3 Storage
Redis
Testing
Configuration (bunfig.toml)
Environment Variables
Links
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bun/SKILL.md
Popularity
- Repository stars
- 11
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itechmeat/llm-code/bun)