Write that blog… with Turso!
WriteThatBlog!, an aggregator of engineering blog posts tagged by writing pattern, is a single static HTML page on GitHub Pages that queries a replicated Turso database directly from the browser over HTTP, with no backend functions or proxies. A read-only auth token is deliberately embedded in the page because the data is public anyway. The schema is one five-column table, and content is managed with a small shell script around `turso db shell` that returns the ROWID, which makes later updates and deletes trivial.
Related posts
- How We Built the Turso Shell in the Browser
Turso mediumAdeptTurso's SQLite-compatible database can run entirely in the browser via WebAssembly, persisting data to OPFS with no backend. The walkthrough builds a SQL shell with Vite, React and TypeScript. It covers importing from the @tursodatabase/database-wasm/vite export to work around a Vite dev-server WASM issue, and setting COOP/COEP headers so SharedArrayBuffer is available. It then builds a query executor that maps prepared-statement results into a table, and upgrades the textarea to a CodeMirror editor with SQL highlighting, autocomplete and a Mod-Enter keybinding.
- Add comments to your Astro blog with AstroDB and Turso
Turso mediumAdeptA commenting system for an Astro blog combines AstroDB (libSQL hosted on Turso) for storage, Astro Actions for validated form submissions, and Server Islands (server:defer) to render the comment list. The walkthrough defines a Comment table and seed data, switches blog pages to server rendering, queries comments by post slug, and adds a Zod-validated addComment action with inline error display. It finishes by pushing the schema to a remote Turso database with `astro db push --remote` and deploying with the Netlify adapter.
- Create a fast, performant admin UI with Retool and Turso
Turso mediumAdeptA Retool admin dashboard for an e-commerce mug store can read and write data in a Turso (libSQL) database through Turso's HTTP API, configured as a Retool REST API resource. The resource uses the database URL with https in place of libsql, plus a Bearer token header. Queries POST SQL statements, and a transform function maps the column/row response into objects for a Retool table. A form with a category select submits inserts, and a success handler refreshes the product list.
- Bringing SQLite to Vercel Functions with Turso
Turso mediumAdeptTurso's partial sync replicates a subset of SQLite database pages into Vercel Functions so reads run in-process with no network round-trip, while writes go to the remote Turso database for durability and consistency. On cold start the driver fetches the first 128 KiB of the SQLite file, then pulls further 128 KiB segments on demand into the ephemeral /tmp directory, so cold-start cost scales with the working set rather than total database size. The experimental @tursodatabase/vercel-experimental package also auto-provisions databases by name for database-per-tenant or per-agent-session patterns. It offers an optional local-write batching mode that trades consistency for lower write latency, and uses a waitUntil() safety net that pushes pending changes if close() is forgotten.
- Build your own Web Analytics Dashboard with Turso and Bolt
Turso mediumAdeptBolt can generate a Next.js 14 web analytics dashboard backed by a Turso database when you feed it the database schema and a detailed requirements prompt. The walkthrough covers dumping the schema with the Turso CLI, then writing a prompt that specifies libsql-stateless-easy, shadcn/ui, server-side rendering and date-range filtering, and finally wiring up the database URL and auth token in .env. Follow-up prompts refine the output, for example adding country flags and device styling. When Bolt can't fix an error itself, the suggested remedy is to give it more context, such as the framework's latest documentation.