ShopSavvy for Hono

TypeScript

Edge-first ShopSavvy integration for Hono. Ships a middleware, mountable router with 5 endpoints, JSX server components, OpenAPI documentation, and an SSE streaming deals endpoint. Works on Cloudflare Workers, Bun, Deno, Node, and Vercel Edge with a single package.

Quick Start

npm install @shopsavvy/hono

Features

ShopSavvy middleware (c.get("shopsavvy"))
Mountable router with /search, /offers, /history, /deals, /categories
JSX server components (ProductCard, PriceComparisonTable, DealFeed)
Auto-generated OpenAPI spec + Swagger UI at /docs
SSE streaming deals endpoint
Runtime-aware caching (CF Cache API, KV, Vercel Edge Config)
Typed RPC export for hc() clients

Use Cases

1.Price lookups at the edge on Cloudflare Workers
2.Server-rendered product pages with zero-JS
3.Typed mobile backends via Hono RPC
4.Real-time deal streams via Server-Sent Events
5.API gateways with Zod validation

Powered by the ShopSavvy Data API

This integration connects to the ShopSavvy Data API — real-time product data and pricing from thousands of retailers across millions of products. Search by barcode, ASIN, URL, or keyword. Compare prices, track history, discover deals, and schedule monitoring.