Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bun

БесплатноБез исполняемых скриптовНе проверен

Bun JavaScript/TypeScript runtime and all-in-one toolkit. Covers runtime, package manager, bundler, test runner, HTTP server, WebSockets, SQLite, S3, Redis…

itechmeatот itechmeat★ 24 звезды на GitHub

Об этом скилле

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

# Run TypeScript directly
bun run index.ts

# Install packages
bun install

# Run package.json script
bun run dev

# Execute package binary
bunx cowsay "Hello"

# Run tests
bun test

# Build for production
bun build ./index.ts --outdir ./dist

# Bundle analysis for LLMs (v1.3.8+)
bun build ./index.ts --metafile-md --outdir ./dist

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 check type-checks the project of the nearest tsconfig.json and passes 100% of the TypeScript 7.0.2 conformance suite. It reports the same errors as tsc (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 overrides tsconfig.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 fmt is a Prettier-compatible formatter built into the runtime. On Prettier's own repository (2,616 files) bun fmt --check takes 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: --check lists files that need formatting and exits with code 1, --staged formats and re-stages only what you are about to commit (replaces lint-staged), --changed formats what differs from the default branch (accepts a ref, e.g. --changed=origin/dev), --doctor shows how Bun reads your config and which packages you can uninstall, --init creates the [fmt] section.
  • bun fmt configuration: reads .prettierrc*, prettier.config.*, prettier in package.json, overrides, .editorconfig, .prettierignore, plus .oxfmtrc.json, `.
Полный SKILL.md на GitHub

Установить bun в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/bunfig.mdreferences/cc.mdreferences/development.mdreferences/env.mdreferences/fetch.mdreferences/file-io.mdreferences/file-system-router.mdreferences/http-server.mdreferences/module-system.mdreferences/native-interop.mdreferences/networking-low-level.mdreferences/nodejs-compat.mdreferences/package-manager.mdreferences/plugins.mdreferences/project-scaffolding.mdreferences/redis.mdreferences/s3.mdreferences/shell.mdreferences/spawn.mdreferences/sqlite.mdreferences/transpiler.mdreferences/type-checking-and-formatting.mdreferences/typescript-jsx.mdreferences/utilities.mdreferences/websockets.mdreferences/webview.mdreferences/workers.md

FAQ

Что делает скилл bun?

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.

Как установить скилл bun?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bun запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bun с