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.
git clone --depth 1 https://github.com/roedyrustam/vibes-plugnpx agentmods add skills/roedyrustam/vibes-plug/bun-runtime-expertWrote 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.
[](https://agentmods.dev/skills/roedyrustam/vibes-plug/bun-runtime-expert)<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/bun-runtime-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/bun-runtime-expert/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.
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/bun-runtime-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/bun-runtime-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.02677 |
| Opus 5.5 | $0.00023 | $0.01071 |
| Sonnet 5.5 | $0.00011 | $0.00535 |
| Haiku 4.5 | $0.00006 | $0.00268 |
Grade A, and why
bun-runtime-expert 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 2d 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.
async fetch(req) { How it starts
The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bun 1.2+ Runtime Expert (2026 High-Performance Standard)
English
Orchestration & Integration
Connects and orchestrates with domain skills:
- Backend & APIs:
js-backend-expert(Hono on Bun, Fastify/Express migration),api-design-expert(REST & WebSocket contracts), andsse-websocket-streaming-expert(nativeBun.serveWebSockets). - Database & Storage:
database-orm-expert(Drizzle ORM with nativebun:sql, PostgreSQL/SQLite) andfile-upload-media-expert(zero-dependencyBun.s3client). - Quality & Testing:
autonomous-tdd-debugger,e2e-testing-expert, andanti-slopfor executing high-speedbun testsuites with snapshot matching. - Orchestration:
brainstormingandzero-to-prod-orchestrator(Phase 4: Backend & APIs).
Description
Expert-level guidance for engineering ultra-low-latency backend microservices with Bun 1.2+. Covers the native PostgreSQL driver (import { SQL } from 'bun'), native S3 object storage (Bun.s3), git-friendly text lockfiles (bun.lock), multi-core HTTP clustering via reusePort, built-in SQLite, and high-speed Jest-compatible unit testing via bun:test.
Trigger Conditions
- Scaffolding new high-performance microservices, REST APIs, or WebSocket hubs using Bun.
- Querying PostgreSQL or SQLite without external drivers using native
Bun.sql. - Interacting with Amazon S3, Cloudflare R2, or MinIO using zero-dependency
Bun.s3. - Running multi-core HTTP services with automatic load distribution across CPU cores.
- Executing unit and integration tests using
bun test. - Migrating legacy Node.js/npm codebases to Bun's native execution layer.
Bun 1.2+ Core Architectural Features
1. Native PostgreSQL Client (import { SQL } from 'bun')
Bun 1.2 includes a built-in, high-speed PostgreSQL driver that communicates directly via binary wire protocol without pg or postgres.js:
// src/lib/db.ts
import { SQL } from 'bun';
// Instantiate pooled database client
export const sql = new SQL({
url: process.env.DATABASE_URL || 'postgres://user:password@localhost:5432/production_db',
max: 20, // Connection pool size
idleTimeout: 30, // Max idle time in seconds
});
export interface UserAccount {
id: string;
email: string;
balance: number;
}
// 1. Tagged template query with automatic parameterized SQL injection defense
export async function getActiveUser(email: string): Promise<UserAccount | null> {
const users = await sql<UserAccount[]>`
SELECT id, email, balance
FROM users
WHERE email = ${email} AND active = true
LIMIT 1
`;
return users[0] ?? null;
}
// 2. Atomic Database Transaction
export async function transferFunds(fromUserId: string, toUserId: string, amount: number) {
return await sql.begin(async (tx) => {
const debit = await tx`
UPDATE users
SET balance = balance - ${amount}
WHERE id = ${fromUserId} AND balance >= ${amount}
RETURNING id, balance
`;
if (debit.length === 0) {
throw new Error('Insufficient funds or sender not found');
}
await tx`
UPDATE users
SET balance = balance + ${amount}
WHERE id = ${toUserId}
`;
return { success: true };
});
}
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.
- 2d ago Changed · +55 lines · +57 tokens per session scan C → A b51c22f506f5
- 3d ago Changed · +2 lines · -57 tokens per session cef6da978932
- 6d ago Changed ee64d8d57141
- 15d ago Changed 1d25e95150ba
- 20d ago Changed 568cc3bad8bf
- 21d ago Changed eb3841bdebe3
- 23d ago Changed · -6 lines · +46 tokens per session fb3f2f1652cb
- 25d ago Changed · +6 lines · -46 tokens per session a428829953a7
- 1mo ago Changed a42b28a3e698
- 1mo ago First seen · 218 lines · 57 tokens per session scan C e64d06b9b204
bun-runtime-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 2,677 once invoked, about $0.0002 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-30.
Other skills, from other repositories
express
Expert Express.js assistance covering routing, middleware pipelines, error handling, and REST API design. Use when building Node.js backend services and web APIs.
nestjs
Expert NestJS assistance covering modular architecture, dependency injection, decorators, guards, interceptors, and Prisma/TypeORM. Use when building enterprise-grade, scalable TypeScript backends.
bun
Expert Bun runtime assistance covering high-performance JS/TS execution, built-in bundler, package manager, and test runner. Use when executing TypeScript natively, running fast scripts, or serving HTTP APIs.
deno
Expert Deno runtime assistance covering secure defaults, TypeScript out-of-the-box, standard library, and Deno Deploy. Use when building modern web backends, edge functions, or serverless scripts.
hono
Expert Hono framework assistance covering ultra-fast routing, Web Standards, multi-runtime support (Cloudflare Workers, Deno, Bun, Node), and RPC. Use when developing edge APIs and lightweight microservices.
typescript-advanced-types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.