1. Static first
Plain files on Cloudflare Pages. Nothing computed per request that can be built once.
quai-dapp-kit · MIT
The fastest way to ship a scalable dApp on Quai Network. Vite, vanilla JS, Pelagus, edge caching and a cron indexer, ready to go.
npx degit IboTheSecond/quai-dapp-kit/template my-dapp
Plain files on Cloudflare Pages. Nothing computed per request that can be built once.
Pages Functions use caches.default with s-maxage 30. Functions are not CDN-cached by default.
KV writes happen from the cron, once per run. Never from a user request.
A single cron Worker reads logs in bounded windows with backoff and writes D1.
Clients poll one cached endpoint. Ten thousand viewers cost one origin read.
Ship headers that only allow the Quai RPC. Loosen on purpose, not by accident.
No wallet needed to browse. Connect to read your chain id and balance (read-only).