Practical Β· text2text-generation + SQLite Β· WASM
This is the shippable version: a small e-commerce database lives in the tab (a real SQLite built with sql.js). Ask a question, T5 writes the SQL, and the in-browser database actually runs it β you see the real rows. When the tiny model produces invalid SQL, you see the honest database error instead of a fake result. Nothing leaves your device.
Schema in the in-browser database:
Pick a business question:
Result from the in-browser database:
A generate-and-execute loop against a schema you own is exactly how an in-app query assistant works: the model drafts SQL from the user's words, your database engine runs it, and the user sees rows β or a real error they can act on. Here both the model and the database are in the browser, so a whole "chat with your data" feature ships with zero backend and total privacy.