There Is No Cloud: Local-First Development with pgLite and On-Device AI
summary
A local-first demo runs a full Postgres compiled to the browser saving to IndexedDB, exposing real SQL and full‑text search while a PWA stays completely offline and responsive. Embeddings are created with transformer JS and stored in PG Vector so semantic search returns ankle sprain for “foot hurts,” then the top hits are RAG-fed to an edge LLM running in WebGPU. Uses PG Lite, Gemini/E edge models and Chrome’s Gemini Nano; benefits: speed and privacy; costs: sync, migrations, storage and browser limits.
AI-written summary · about
