Public
gaimeri17 avatar
gaimeri17
labLoginUpdateStatus
HTTP
Forked from todepond/labLoginUpdateStatus
0
stevekrouse avatar
stevekrouse
getEmptyTables
Script
Forked from nbbaier/getEmptyTables
0
omerco avatar
omerco
status
HTTP
Forked from stevekrouse/status
0
petermillspaugh avatar
petermillspaugh
emailCourseCreator
HTTP
Forked from petermillspaugh/emailSubscription
1
svenlaa avatar
svenlaa
labLogin
HTTP
Forked from todepond/labLogin
0
pranjaldotdev avatar
pranjaldotdev
readdb
Script
An interactive, runnable TypeScript val by pranjaldotdev
0
rwev avatar
rwev
initPageEntriesDbSeed
Script
An interactive, runnable TypeScript val by rwev
0
stevekrouse avatar
stevekrouse
getSqliteDateMeDocs
Script
// let docs = await getDocs();
0
nbbaier avatar
nbbaier
libsql_client_hooks_test
Script
// const client = createClient({
0
nbbaier avatar
nbbaier
sqliteDump
Script
SQLite Dump Util A utility function that generates SQL statements to dump the data and schema of tables in a SQLite database. Usage This example specifically dumps the users table and logs the output: import { sqliteDump } from "https://esm.town/v/nbbaier/sqliteDump"; const dump = await sqliteDump(["users"]); console.log(dump) You can optionally specify a callback to handle the result. The example below dumps the users table and emails it using std/email . import { email } from "https://esm.town/v/std/email"; import { sqliteDump } from "https://esm.town/v/nbbaier/sqliteDump"; await sqliteDump(["users"], async (res) => { await email({ text: res }); }); Function Signature function sqliteDump(tables?: string[], callback?: ((result: string) => string | void | Promise<void>) | undefined): Promise<string | void> Parameters tables : (Optional) Array of table names to include in the dump. If not provided, all tables will be included. callback : (Optional) An (potentially async) callback function to process the dump result. The callback receives the dump string as its argument.
2
robsimmons avatar
robsimmons
sqlite_admin
HTTP
Forked from stevekrouse/sqlite_admin
1
kaleidawave avatar
kaleidawave
savedNamedPlaygrounds
HTTP
For the future playground for the Ezno type checker: https://github.com/kaleidawave/ezno/pull/115 Can save an id for a content and recall content from an id (thus acting as a sort of compressor) Inspired by how the https://play.rust-lang.org/ shares playgrounds. (However uses a SQL-lite db hosted by Valtown rather than GitHub gists)
1
pomdtr avatar
pomdtr
auth_middleware
Script
Authentication middleware Guards your public http vals behind a login page. This val use a json web token stored as an http-only cookie to persist authentication. Usage Set an AUTH_SECRET_KEY env variable (used to sign/verify jwt tokens) to a random string . Then use an API token to authenticate. import { auth } from "https://esm.town/v/pomdtr/auth_middleware"; async function handler(req: Request): Promise<Response> { return new Response("You are authenticated!"); } export default auth(handler); See @pomdtr/test_auth for an example ⚠️ Make sure to only provides your api token to vals you trust (i.e. your own), as it gives access to your whole account.
1
adarshhatkar avatar
adarshhatkar
uptime
Cron
Forked from stevekrouse/uptime
0
Negash avatar
Negash
APIAyeee
HTTP
// Import the necessary library or use the appropriate Val.town method for SQLite access
0
crif avatar
crif
bookmark
HTTP
Forked from upbound_web/bookmark
0
Updated: April 3, 2024