leaflet-search#
search for leaflet.
live: leaflet-search.pages.dev
how it works#
- tap syncs leaflet content from the network
- backend indexes content into SQLite FTS5 via Turso, serves search API
- site static frontend on Cloudflare Pages
api#
GET /search?q=<query>&tag=<tag> # search with query, tag, or both
GET /tags # list all tags with counts
GET /stats # document/publication counts
GET /health # health check
search returns three entity types: article (document in a publication), looseleaf (standalone document), publication (newsletter itself)
stack#
- Zig backend
- Tap for sync
- Turso for SQLite + FTS5
- Fly.io for hosting
- Cloudflare Pages for frontend