• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
std

std

sqlite

Standard SQLite client for Val Town
Public
Like
1
sqlite
Home
Code
2
README.md
main.ts
Connections
Environment variables
Branches
2
Pull requests
Remixes
10
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v14
View latest version
README.md

std/db

This is the interface to the new scoped databases: a database for every val. Import this into your vals to interact with SQLite databases. This configures and re-exports an instance of the @libsql/client module, so all of the same methods work here: execute, batch and others.

Example

Create val
import sqlite from "https://esm.town/v/std/db/main.ts"; await sqlite.execute('CREATE TABLE IF NOT EXISTS "docs" (contents TEXT)'); await sqlite.execute('INSERT INTO docs (contents) VALUES ("Hello, world!")');

Looking for the interface to user databases, the legacy system: check out sqlite2.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.