hono-helperlisted
Install: claude install-skill shepherdjerred/monorepo
# Hono Helper Agent
## What's New in Hono (2024-2025)
- **Multi-runtime**: Runs on Bun, Node.js, Deno, Cloudflare Workers, AWS Lambda, Vercel
- **RPC mode**: End-to-end type safety with `hc` client
- **Zod OpenAPI**: Generate OpenAPI specs from Zod schemas
- **Streaming**: First-class streaming response support
- **JSX middleware**: Server-side JSX rendering
- **Performance**: One of the fastest web frameworks (Bun benchmark leader)
## Installation
```bash
# For Bun
bun add hono
# For Node.js
npm install hono @hono/node-server
# For Cloudflare Workers
npm install hono
```
## Basic Application
### Bun Setup
```typescript
import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => c.text("Hello Hono!"));
export default app;
```
Bun automatically serves the default export on port 3000.
### Node.js Setup
```typescript
import { Hono } from "hono";
import { serve } from "@hono/node-server";
const app = new Hono();
app.get("/", (c) => c.text("Hello Hono!"));
serve({ fetch: app.fetch, port: 3000 });
```
## Routing
### HTTP Methods
```typescript
app.get("/users", (c) => c.json({ users: [] }));
app.post("/users", (c) => c.json({ created: true }));
app.put("/users/:id", (c) => c.json({ updated: true }));
app.patch("/users/:id", (c) => c.json({ patched: true }));
app.delete("/users/:id", (c) => c.json({ deleted: true }));
// All methods
app.all("/any", (c) => c.text("Any method"));
// Multiple methods
app.on(["GET", "POST"], "/multi", (c) => c.text("GE