vtdb
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.
This val exports vtdb
, a correctly typed Kysely instance
to query the @sqlite.db database containing public vals.
Example usage:
import { vtdb } from 'https://esm.town/v/g/vtdb';
const vals = await vtdb.selectFrom('vals')
.selectAll()
.orderBy('created_at desc')
.limit(5)
.execute();
console.log(vals.map((val) => val.name));