| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 个月前 | ||
| 5 个月前 | ||
| 6 个月前 | ||
| 9 天前 | ||
| 7 个月前 | ||
| 7 个月前 |
Hono Integration
Build type-safe HTTP APIs with Hono web framework and RivetKit Actors. Features lightweight routing, middleware support, and seamless actor integration.
Getting Started
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/hono
npm install
npm run dev
Features
- Hono web framework: Lightweight, fast HTTP routing for actor APIs
- Actor integration: Call actor actions from Hono route handlers
- Type-safe endpoints: Full TypeScript type safety across HTTP and actor layers
- Middleware support: Use Hono middleware for authentication, logging, and more
Implementation
This example demonstrates integrating Hono web framework with Rivet Actors:
- Actor Definition (
src/backend/registry.ts): Shows how to use Hono for HTTP routing with actors
Resources
Read more about actions and setup.
License
MIT