### 🎯 Motivation **Hono** is one of the fastest and most popular web frameworks for Node.js and modern JavaScript runtimes. Adding a lightweight `tricache/hono` middleware will give Hono users automatic three-tier caching, SWR, and tag invalidation. --- ### 💡 Proposed Implementation Create a Hono middleware in `src/hono/index.ts`: ```typescript import { Hono } from 'hono'; import { cacheMiddleware } from 'tricache/hono'; const app = new Hono(); app.get('/api/posts', cacheMiddleware({ ttl: 300, tags: ['posts'] }), (c) => { return c.json({ data: '...' }); }); ``` --- ### 📂 Starting Points - Check [src/http/index.ts](https://github.com/Kareem411/TriCache/blob/main/src/http/index.ts) for our general HTTP proxy / handler pattern. - Add test coverage in `tests/hono.test.ts`. Feel free to claim this issue by dropping a comment below!
Activity
dyk1454683243-sudo commentedon Sep 19, 2026
Taking this: first-class Node Hono middleware at
tricache/hono(cacheMiddlewareonCacheService— ttl/tags/SWR, ETag + If-None-Match → 304, no cache for non-2xx).Out of scope for this issue: the edge helper / demo in #27 (
tricache/edge,honoEdgeCache), Fastify #7, and Koa #10.dyk1454683243-sudo commentedon Sep 19, 2026
PR up: #45 (
tricache/honoNodecacheMiddlewareonCacheService).