Public
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
janpaul123 avatar
janpaul123
indexValsTurso
Cron
Forked from sqlite/leaderboard
0
pomdtr avatar
pomdtr
valTownToSQLite
Script
Val Town To SQLite Dump all public vals to an sqlite table TODO [x] Upsert instead of insert
1
pomdtr avatar
pomdtr
test_explorer_history
Script
An interactive, runnable TypeScript val by pomdtr
1
pomdtr avatar
pomdtr
sql_search
HTTP
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
val_town_leaderboard
Script
An interactive, runnable TypeScript val by pomdtr
0
stevekrouse avatar
stevekrouse
getShowcaseVals
Script
Get vals that were created in the last month, augmented with all sorts of AI and screenshots, and shoved in a sqlite database for @stevekrouse/showcase.
1
postpostscript avatar
postpostscript
valtownToSQLite
Script
Forked from pomdtr/valTownToSQLite
0
sqlite avatar
sqlite
leaderboard
HTTP
Forked from pomdtr/leaderboard
0
stevekrouse avatar
stevekrouse
auth_middleware
Script
Forked from pomdtr/auth_middleware
0
yawnxyz avatar
yawnxyz
lastlogin
Script
Forked from pomdtr/lastlogin
0
elliotbraem avatar
elliotbraem
lastlogin
Script
Forked from stevekrouse/lastlogin
0
rawwerks avatar
rawwerks
lastlogin
Script
Forked from pomdtr/lastlogin
0
mrsnor avatar
mrsnor
cooingTomatoSquirrel
Script
Forked from stevekrouse/lastlogin
0
pomdtr avatar
pomdtr
list_tables
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
chinookQuery
HTTP
An interactive, runnable TypeScript val by pomdtr
0
Updated: March 31, 2024