Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Turso 8 min read How-to mediumAdept

Mobile app prototyping with Quasar and SQLite

A recipe-book mobile prototype built with the Vue-based Quasar framework, backed by a local SQLite file accessed through a small Express server using the libSQL JavaScript client. Because libSQL is used for data access, the same server code can later point at Turso for production without source changes. The walkthrough covers creating the schema in the SQLite shell, writing GET/POST/DELETE routes (including json_group_array aggregation and batched inserts), and wiring Quasar pages to a Pinia store. A local SQLite file keeps development fully offline and makes the database easy to share or reuse in tests.

Assumes: Vue.js basicsNode.js and ExpressSQL basics

Related posts

  • Bringing SQLite to Vercel Functions with Turso

    Turso mediumAdept

    Turso'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.

  • How We Built the Turso Shell in the Browser

    Turso mediumAdept

    Turso'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.

  • Vercel setup guide

    Turso mediumAdept

    Deploying a Nuxt app backed by a Turso database to Vercel comes down to two environment variables, NUXT_TURSO_DB_URL and NUXT_TURSO_DB_AUTH_TOKEN, which the libSQL TypeScript client uses to connect. The guide creates and seeds a SQLite-compatible Turso database via the CLI shell, gets the database URL with `turso db show --url`, and generates a non-expiring token with `turso db tokens create`. Deployment can go through the Vercel deploy button or through manually forking the repo and importing it on the Vercel dashboard, and Vercel then redeploys automatically on pushes to the production branch.

  • Create a fast, performant admin UI with Retool and Turso

    Turso mediumAdept

    A 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.

  • Building offline-first mobile apps with Supabase, Flutter and Brick

    Supabase mediumAdept

    Brick is a Flutter data manager that keeps Supabase data in local SQLite and optional in-memory caches so apps behave the same with or without connectivity. Requests made offline are queued and retried until the device reconnects, and caching can be skipped per request for sensitive or must-be-fresh data. Setup walks through annotated Dart models with client-generated UUID keys (never auto-increment, so distributed clients avoid collisions) and build_runner code generation that produces adapters and SQLite migrations, which should still be reviewed. A single repository handles queries and upserts, and the guide also covers local reactive streams (not yet wired to Supabase realtime), associations, and a mock Supabase server for unit tests.

The quest for software engineering knowledge.

Look:
Layout: