sqlite_admin_tables
stevekrouse
sqlite_admin_tables
@jsxImportSource https://esm.sh/hono@3.9.2/jsx
Script
sqlite_admin_table
stevekrouse
sqlite_admin_table
@jsxImportSource https://esm.sh/hono@3.9.2/jsx
Script
sqlite
std
sqlite
SQLite - Docs ↗ SQLite is a lightweight, standard database. Every Val Town account comes with its own private SQLite database that is accessible from any of your vals via std/sqlite . Val Town SQLite is powered by Turso . Usage Migrations ORMs We recommend these admin data viewers for managing your database – viewing or editing data or your database table schema: Outerbase Studio (recommended) - formely known as LibSQL Studio – see instructions here SQLite Explorer (built in Val Town) Limits You can store 10mb on the free plan and up to 1gb on the paid plan. Contact us if you need more space. 📝 Edit docs
Script
html
stevekrouse
html
An interactive, runnable TypeScript val by stevekrouse
Script
verifyToken
pomdtr
verifyToken
An interactive, runnable TypeScript val by pomdtr
Script
basicAuth
pomdtr
basicAuth
Val Town Basic Auth Add basic auth on top of any http val Usage Wrap your HTTP handler in the basicAuth middleware. import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth"; function handler(req: Request) { return new Response("You are authenticated!"); } export default basicAuth(handler, { verifyUser: (username, password) => username == "user" && password == "password" }); If you want to use an apiToken as a password: import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth"; import { verifyToken } from "https://www.val.town/v/pomdtr/verifyToken" function handler(req: Request) { return new Response("You are authenticated!"); } export default basicAuth(handler, { verifyUser: (_, password) => verifyToken(password) });
Script
1
Next
oliver-sqlite_admin.web.val.run
Updated: December 23, 2024