hono-session

JSON →
library 1.2.0 ·javascript
verified Jun 4, 2026

Hono-session is a cookie-based session middleware for the Hono web framework. Offers both stateless (encrypted cookie) and external storage modes. The current stable version is 1.2.0, with frequent updates. Features session renewal, regeneration for preventing fixation attacks, flash messages, and reflash ability. Supports custom encryption via iron-webcrypto and stores like Map, file, or database. Built in TypeScript with global type augmentation. Requires Node.js >=18.18.0. Alternatives like @hono/sessions exist but hono-session is lighter and simpler.