Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.53 KB

File metadata and controls

49 lines (30 loc) · 1.53 KB

Hono Integration

Example project demonstrating Hono web framework 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:

Deployment

This example can be deployed to Railway. See the Railway deployment guide for detailed instructions.

Deploy on Railway

Required Environment Variables

Configure these environment variables in your Railway project:

  • RIVET_ENDPOINT - Your Rivet Engine endpoint
  • RIVET_NAMESPACE - Your Rivet namespace
  • RIVET_RUNNER_TOKEN - Your Rivet runner token

Get these values from the Rivet dashboard under Connect > Railway.

Resources

Read more about actions and setup.

License

MIT