> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/bun-hono-api?format=md"SKILL.md•Bun + Hono API
Bun + Hono
Setup
bun create hono my-api
cd my-api && bun install && bun run dev
API
import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { zValidator } from '@hono/zod-validator';
import { z } from 'zod';
const app = new Hono();
app.use('*', cors());
app.get('/api/users', async (c) => {
const users = await db.query('SELECT * FROM users');
return c.json(users);
});
app.post('/api/users', zValidator('json', z.object({ name: z.string(), email: z.string().email() })),
async (c) => {
const { name, email } = c.req.valid('json');
await db.query('INSERT INTO users (name, email) VALUES (?, ?)', [name, email]);
return c.json({ ok: true }, 201);
});
export default app;
Bun.serve is ~3x faster than Node.js HTTP
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.
> Pulumi AWS Infrastructure
Deploy AWS resources with Pulumi TypeScript: Lambda, S3, DynamoDB, API Gateway.
┌ stats
installs/wk0
░░░░░░░░░░first seenMar 18, 2026
└────────────