AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Bun Docs

skill-pledgeandgrow-pledge-skills-bun · by pledgeandgrow

|

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-pledgeandgrow-pledge-skills-bun

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-pledgeandgrow-pledge-skills-bun)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Bun Docs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Bun — Skill Documentation

Metadata

  • Target Version: Bun 1.2.x
  • Source: bun.sh/docs
  • Files: 9
  • Lines: ~4,350

Quick Reference

| Topic | File | Description | |-------|------|-------------| | Getting Started (installation, quickstart, TypeScript, bun init) | getting-started.md | Install Bun, create projects, run TS/JSX | | Runtime (execution, watch mode, REPL, bunfig, modules, plugins) | runtime.md | bun run, file types, module resolution, auto-install | | Package Manager (bun install, add, remove, update, publish, outdated, why, audit, info, link, patch, workspaces, catalogs, filter, scopes, npmrc, security scanner, global cache, isolated installs) | package-manager.md | Full PM: install, update, publish, audit, patch, catalogs, isolated installs | | HTTP Server (Bun.serve, routing, HTML imports, WebSockets, TLS) | http-server.md | Built-in HTTP server, file-system routing, hot reload | | APIs (File I/O, SQLite, Streams, Fetch, Workers, Shell, Utils, Globals, Web APIs, Bun APIs reference) | apis.md | Bun.file, Bun.write, bun:sqlite, Bun.spawn, Workers, utils, compression, globals | | Advanced APIs (SQL, S3, Redis, TCP/UDP, Cron, FFI, Image, Archive, WebView, Cookies, CSRF, JSON5, Transpiler, Node.js compat) | advanced-apis.md | PostgreSQL/MySQL, S3 storage, Redis, TCP/UDP sockets, cron jobs, FFI, image processing, tar archives | | Testing (bun test, assertions, mocks, snapshots, watch mode) | testing.md | Jest-compatible test runner, TypeScript-first | | Bundler (bun build, targets, plugins, executables, HTML imports) | bundler.md | Native bundler for browser/bun/node, single-file executables |


What is Bun?

Bun is an all-in-one toolkit for developing modern JavaScript/TypeScript applications:

  • Runtime: Execute JS/TS files with near-zero overhead (JavaScriptCore engine)
  • Package Manager: Fast installs with bun install — replacement for npm/yarn/pnpm
  • Test Runner: Jest-compatible, TypeScript-first tests with bun test
  • Bundler: Native bundling for JS/TS/JSX with bun build
bun run index.tsx    # TS and JSX supported by default
bun run start        # run the `start` script
bun install     # install a package
bun build ./index.tsx # bundle a project for browsers
bun test             # run tests
bunx cowsay 'Hello'  # execute a package

Design Goals

  • Speed: Bun processes start 4x faster than Node.js
  • TypeScript & JSX: Directly execute .ts, .tsx, .jsx files
  • ESM & CommonJS: Recommends ES modules, supports CommonJS
  • Web-standard APIs: fetch, WebSocket, ReadableStream, Headers, URL
  • Node.js compatibility: Built-in globals (process, Buffer) and modules (path, fs, http)

Common Patterns

Create a new project

bun init my-app
cd my-app
bun run index.ts

Start an HTTP server

const server = Bun.serve({
  port: 3000,
  routes: {
    "/": () => new Response("Bun!"),
    "/users/:id": req => new Response(`Hello User ${req.params.id}!`),
  },
});
console.log(`Listening on ${server.url}`);

Read and write files

const file = Bun.file("input.txt");
const text = await file.text();

await Bun.write("output.txt", "Hello, world!");

Use SQLite

import { Database } from "bun:sqlite";
const db = new Database("mydb.sqlite");
const query = db.query("SELECT * FROM users WHERE id = ?");
const user = query.get(1);

Write and run tests

import { expect, test } from "bun:test";

test("2 + 2", () => {
  expect(2 + 2).toBe(4);
});
bun test

Bundle for production

bun build ./index.tsx --outdir ./out

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.