Create a fast, performant admin UI with Retool and Turso
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.
Related posts
- Write that blog… with Turso!
Turso mediumAdeptWriteThatBlog!, 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.
- Building a RESTful API with PHP and SQLite
Turso mediumAdeptA minimal CRUD REST API in PHP can be built with Dumbo, a small Hono-inspired routing framework, and Turso's experimental HTTP-only PHP SDK for libSQL/SQLite. The walkthrough covers Composer setup, a users table schema, connecting via a DSN with database URL and auth token, and GET/POST/PUT/DELETE routes using parameterized queries, RETURNING clauses and dynamic SET clauses for partial updates. Testing uses PHP's built-in server and cURL. Production use still needs proper validation, authentication, CORS and error handling.
- Mobile app prototyping with Quasar and SQLite
Turso mediumAdeptA 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.
- 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.
- Toasty now fully supports Turso
Turso mediumAdeptToasty, the async Rust ORM from Tokio's creator, now supports Turso in three modes behind one API: local files with optional concurrent writes (transactions automatically wrapped in BEGIN CONCURRENT), a serverless remote mode over HTTP with URL and auth token, and local-first sync with explicit pull/push calls. Only the driver constructor changes between modes, so the same models and queries run unchanged. For remote use, toasty::batch() combines independent statements into one round trip and returns typed tuple results, avoiding a network round trip per transaction statement.