aio-bun-fullstack-setup

aio-bun-fullstack-setup is a skill for Claude Code from aiocean/claude-plugins. It costs 95 tokens per session (2,289 once invoked), scanned A, original, MIT.

A setup tool for starting a full-stack project with Bun, a JavaScript runtime and package manager. It creates a layout with a server, Vite development proxy, monorepo structure, and Docker configuration.

In plain words
What is it for?
Use it when bootstrapping a Bun full-stack app, a Bun server with Vite, a monorepo, or a Docker-based Bun deployment.
Why use it?
It provides the initial project structure and configuration needed to run the frontend and backend together on one port and deploy with Docker.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is const STATIC_DIR = join(import.meta.dir, "../webapp/dist");.

Part of the aio-bun-fullstack-setup plugin — 1 skill shipped together

Good fit Use it when bootstrapping a Bun full-stack app, a Bun server with Vite, a monorepo, or a Docker-based Bun deployment.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins
agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-bun-fullstack-setup

Made for: Claude Code.

Or install aio-bun-fullstack-setup, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aio-bun-fullstack-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-bun-fullstack-setup/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-bun-fullstack-setup)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-bun-fullstack-setup"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-bun-fullstack-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aio-bun-fullstack-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-bun-fullstack-setup"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-bun-fullstack-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.02289
Opus 5.5 $0.00038 $0.00916
Sonnet 5.5 $0.00019 $0.00458
Haiku 4.5 $0.00010 $0.00229

Measured 1mo ago against content hash a18fc82183e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aio-bun-fullstack-setup scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf http://localhost:3001/api/health && break
plugins/aio-bun-fullstack-setup/skills/aio-bun-fullstack-setup/SKILL.md · 333 lines

How it starts

The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bun Fullstack Setup

Environment

  • bun: !bun --version 2>/dev/null || echo "NOT INSTALLED"

Scaffold Mode (when setting up a new project)

Use this mode to bootstrap a Bun fullstack project, filling in only what is missing.

Step 1: DETECT

Check what already exists in the project root:

ls -la package.json bun.lock* Dockerfile docker-compose.yml docker-entrypoint.sh ecosystem.config.cjs .env.example 2>/dev/null
ls -la pkgs/server/index.ts pkgs/server/config.ts pkgs/webapp/vite.config.ts pkgs/shared/ 2>/dev/null

Step 2: PLAN

Compare against the full project structure and list what needs to be created:

File Purpose Exists?
pkgs/shared/package.json Shared types package (required by Dockerfile COPY steps) ?
pkgs/server/config.ts Env validation, fail-fast startup ?
pkgs/server/index.ts Bun server entry (API + static serving) ?
pkgs/webapp/vite.config.ts Vite config with API proxy ?
ecosystem.config.cjs PM2 dev runner (webapp + server) ?
Dockerfile Multi-stage production build ?
docker-entrypoint.sh Container entry script ?
docker-compose.yml Container orchestration ?
.env.example Environment variable documentation ?

Present the plan to the user before generating.

Step 3: GENERATE

Create each missing file using the templates in the Reference section below. Adapt ports, paths, and env vars to match the user's project name and requirements.

Step 4: VERIFY

Run a quick validation:

cd pkgs/server && DATA_DIR=./data PORT=3001 bun run index.ts &
SERVER_PID=$!
for i in $(seq 1 15); do
  curl -sf http://localhost:3001/api/health && break
  sleep 1
done
kill $SERVER_PID 2>/dev/null

If webapp exists, also verify: cd pkgs/webapp && bun run build


Reference Mode (templates and patterns)

Pattern for Bun server that serves API + static frontend on single port in production, with Vite proxy in development.

Read the full file on GitHub · 333 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 333 lines · 95 tokens per session scan A a18fc82183e0

Subscribe to this mod's changes

aio-bun-fullstack-setup is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 1mo ago), licensed MIT. It adds 95 tokens to every session and 2,289 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.