# Bun runtime

> Bun runtime is an open-source agent skill for developer tools. Guides your agent on using Bun for running, installing, bundling and testing JavaScript. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/bun-runtime
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 73
- **License:** MIT
- **Skill name:** bun-runtime
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill covers Bun, a JavaScript and TypeScript toolkit that combines a runtime, package manager, bundler and test runner. It tells the agent when Bun is a better fit than Node and when Node remains the safer choice, such as for legacy tooling or dependencies with known Bun problems. It also covers moving an existing Node project over, with equivalent commands for running scripts, installing packages and using npx-style one-off runs.

The guidance includes dependency management commands such as adding, updating, auditing and deduplicating packages, along with notes on monorepo workspaces and the bun.lock lockfile. It points the agent toward Bun's built-in APIs for file I/O, SQLite, HTTP servers, SQL, Redis and S3 before adding a third-party package. Deployment notes cover pinning the Bun version on Vercel and using frozen lockfile installs for reproducible builds.

The skill is instruction-only with no bundled scripts. Working through it requires the Bun CLI to be installed, and the agent is told to check the local version with bun --version because flag names can change between releases.

## When your agent uses it

> Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/bun-runtime)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/bun-runtime)

## Features

- **Runtime versus Node choice:** Explains when Bun suits a project and when Node is the better option.
- **Node migration steps:** Maps common Node commands such as node, npm install and npx to Bun equivalents.
- **Package management commands:** Covers adding, updating, auditing, deduplicating and pruning dependencies with Bun.
- **Built-in API guidance:** Points to Bun's native file, SQLite, server, SQL, Redis and S3 APIs.
- **Test runner usage:** Describes bun test with its Jest-like API and options for CI sharding and parallel runs.
- **Vercel deployment settings:** Shows how to pin the Bun version and build and install commands for Vercel.

## Good for

- Migrate a Node project to run on Bun
- Set up bun test for a TypeScript codebase
- Decide whether Bun or Node fits a new project
- Configure a Bun build for a Vercel deployment
- Audit and clean up dependencies in a Bun workspace monorepo

## Install

### Claude Code

This skill ships in the `rea-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/bun-runtime`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.claude/skills/bun-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bun-runtime` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bun-runtime` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.agents/skills/bun-runtime &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bun-runtime` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bun-runtime` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.cursor/skills/bun-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bun-runtime` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/bun-runtime
```

Or copy the folder to `~/.gemini/skills/bun-runtime` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/bun-runtime`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bun-runtime &&
cp -R "$tmp/.agents/skills/bun-runtime" ~/.copilot/skills/bun-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bun-runtime` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/bun-runtime` into your agent's skills folder as `bun-runtime`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Bun runtime require any scripts or extra tools?

It ships no scripts. It assumes the Bun CLI is installed and advises checking the version with bun --version before relying on flags.

### Which lockfile does Bun runtime expect?

It recommends bun.lock, the text lockfile used by current Bun versions. It notes that older bun.lockb files can still be read for migration.

### Does Bun runtime change my project when used?

The skill itself is guidance. Some commands it describes, such as bun audit fix and bun add, do modify dependencies and the lockfile, and it asks the agent to treat them as installs.

### How do I install Bun runtime in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bun-runtime to use it in all your projects, or to .claude/skills/bun-runtime in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Bun runtime run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Bun runtime?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Bun runtime?

The closest alternatives to Bun runtime are Build tooling, Antfu, V development, Sandbox NPM install and Nuxt.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Build tooling](https://ai-powered.com/skills/build-tooling): Build tooling is an open-source agent skill for developer tools.
- [Antfu](https://ai-powered.com/skills/antfu): Antfu is an open-source agent skill for developer tools.
- [V development](https://ai-powered.com/skills/v-development): V development is an open-source agent skill for developer tools.
- [Sandbox NPM install](https://ai-powered.com/skills/sandbox-npm-install): Sandbox NPM install is an open-source agent skill for developer tools.
- [Nuxt](https://ai-powered.com/skills/nuxt): Nuxt is an open-source agent skill for developer tools.
- [Vue upgrade](https://ai-powered.com/skills/vue-upgrade): Vue upgrade is an open-source agent skill for developer tools.
- [Uno sandbox](https://ai-powered.com/skills/uno-sandbox): Uno sandbox is an open-source agent skill for cloud and infrastructure.
- [Vue](https://ai-powered.com/skills/vue): Vue is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bun-runtime
