bun
/bun
Pomaga pracować z Bunem jako środowiskiem JavaScript, menedżerem pakietów, bundlerem, runnerem testów i uruchamiaczem TypeScript.
- Autor
- LineLuLan ↗
- Repozytorium
- line-harness ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga pracować z Bunem jako środowiskiem JavaScript, menedżerem pakietów, bundlerem, runnerem testów i uruchamiaczem TypeScript.
Oryginalny opis (EN)
Use when working with Bun as a JavaScript runtime, package manager, bundler, test runner, TypeScript runner, or SQLite-enabled server runtime.
Jak działa
- When to Use
- Core Patterns
Podgląd SKILL.md
---
name: bun
description: "Use when working with Bun as a JavaScript runtime, package manager, bundler, test runner, TypeScript runner, or SQLite-enabled server runtime."
verified: 2026-08
---
# Bun
> All-in-one JavaScript runtime — bundler, transpiler, package manager, test runner.
## When to Use
- Fast package installs (replaces npm/yarn/pnpm)
- Running TypeScript directly without build step
- Bundling for production
- Fast test runner (replaces Jest/Vitest for simple cases)
- SQLite built-in, HTTP server, file I/O
## Core Patterns
### Package Management
```bash
bun install # Install deps (faster than npm)
bun add zod hono # Add packages
bun add -d vitest # Add dev dependency
bun remove lodash # Remove package
bun update # Update all deps
bunx create-next-app # npx equivalent
```
### Runtime
```typescript
// Run any .ts/.tsx/.js file directly
// $ bun run server.ts
// Built-in HTTP server (faster than Node http)
Bun.serve({
port: 3000,
fetch(req) {
const url = new URL(req.url);
if (url.pathname === "/api/health") {
return Response.json({ status: "ok" });
}
return new Response("Not found", { status: 404 });
},
});
// Built-in SQLite
import { Database } from "bun:sqlite";
const db = new Database("app.db");
db.run("CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)");
const users = db.query("SELECT * FROM users").all();
// File I/O (faster than fs)
const file = Bun.file("data.json");
const data = await file.json();
await Bun.write("output.txt", "hello");
// Shell (bun sh)
import { $ } from "bun";
const result = await $`ls -la`.text();
```
### Testing
```typescript
// Uses Jest-compatible API
import { test, expect, describe } from "bun:test";
describe("math", () => {
test("adds", () => {
expect(1 + 1).toBe(2);
});
});
// Run: bun test
```
### Key Conventions
- **bun.lock**: Text lockfile since Bun 1.2
- **Workspaces**: Same as npm workspaces in package.json
- **Environment**: `Bun.env.DATABASE_URL` (auto-loads .env)
- **Macros**: `import { thing } from "./data" with { type: "macro" }` — runs at bundle time
- **Node compat**: 99%+ Node.js API compatibility, drop-in replacement
Pliki w paczce (2)
- SKILL.md 2 KB
- agents/openai.yaml 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · LineLuLan/line-harness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| flora131/atomic | 100 | MIT |
| itechmeat/llm-code | 100 | MIT |
| G1Joshi/Agent-Skills | 100 | MIT |
| j4flmao/agent-skills | 95 | MIT |
| sutchan/Agent-Skills-Hub | 91 | MIT |
| heyAyushh/stacc | 90 | MIT |
| bendrucker/claude | 85 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki dd4589cf2458 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100bun-runtime
Obsługuje Bun jako szybkie środowisko JavaScript, bundler, test runner i menedżer pakietów, w tym zastępowanie Node.js, przyspieszanie testów oraz Bun.serve, Bun.file i bun:sqlite. - 100bun-bundler
Pakuje kod JavaScript i TypeScript szybkim bundlerem Bun: budowanie dla różnych celów, tree-shaking, podział kodu i strategie optymalizacji. - 100bun-runtime
Obsługuje API runtime Bun, w tym operacje na plikach, serwery HTTP i natywne API, przy nowoczesnym wykonywaniu JavaScript i TypeScript. - 95write-script-bun
Pisze skrypty TypeScript z Bunem jako domyślnym środowiskiem uruchomieniowym, chyba że skrypt wymaga Deno. - 100ts-runtime-bun
Pomaga uruchamiać TypeScript na Bun: bunfig.toml, bun test, Bun.build i --compile oraz workspaces. - 100bun-nextjs
Wspiera pracę z Next.js na Bun: uruchamianie aplikacji, rozwój, create-next-app i budowanie z użyciem Bun jako runtime.