bun-hono

Standardize Hono-on-Bun server route wiring and RPC type sharing.

1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/tkgstrator/KotoTV --skill bun-hono
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-hono
Source: https://github.com/tkgstrator/KotoTV/tree/main/.claude/skills/bun-hono
Command: npx skills add https://github.com/tkgstrator/KotoTV --skill bun-hono

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardize and simplify backend development for Bun-based servers using Hono by providing consistent route wiring, RPC patterns, and shared types between server and client.

Core Features & Use Cases

  • Provides conventions for structuring a Bun + Hono server with a single Bun process and shared AppType between server and client.
  • Helps teams quickly scaffold and wire new routes or update existing ones in packages/server/src/{index,app,routes}/*.
  • Supports sharing types with the client via hc<AppType> and aligns with Hono RPC and Bun.serve patterns.

Quick Start

Set up your Bun server with Hono by wiring new routes in packages/server/src and sharing AppType definitions with the client.

Frequently Asked Questions about bun-hono

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Bun server with Hono routes and shared RPC types?

Structure a Bun server with Hono by placing route files in packages/server/src/{index,app,routes} and exporting a shared AppType. This convention synchronizes server routes and RPC client types.

How do I share Hono RPC types between a Bun server and client?

Share Hono RPC types by defining a unified AppType on the server and importing it on the client using hc<AppType>. This ensures your RPC client calls are fully type-safe and synchronized with server routes.

Does this Hono on Bun pattern support adding middleware to specific routes?

Yes, the Hono on Bun pattern supports adding middleware to specific routes. You wire middleware and routes together within the packages/server/src/app file before serving via Bun.serve.

What is the best way to wire new API endpoints in a Bun and Hono project?

The best way to wire new API endpoints in a Bun and Hono project is to define them in packages/server/src/routes and register them in the main app configuration. This standardizes route wiring and streamlines endpoint updates.

Can I use Bun.serve directly with Hono for backend routing?

Yes, you can use Bun.serve directly with Hono for backend routing. The pattern applies to projects using Bun.serve and Hono where server routes, middleware, and shared AppType definitions must synchronize.