Live database
This page reads straight from Cloudflare D1 through the Worker API. Everything below is real query output, not mock-up content.
Connection
…
database
Products
–
– in stock · – low
Categories / brands
– / –
from the category tree
Last sync
–
cache lives in IndexedDB
Products from D1
| Product | Brand | Category | Price | Stock | Status |
|---|---|---|---|---|---|
| Loading from the database… | |||||
–
Prices stored as integer cents in D1
Category tree (parent → children)
–Loading…
Raw API response
Open endpointThe exact payload the page cached:
{ waiting… }
How this works
- 1 · Cache-first readIndexedDB answers instantly, even offline
- 2 · Background revalidateWorker queries D1 and refreshes the copy
- 3 · Honest fallbackA pill tells you when data is saved, not live
