Public
kajgod avatar
kajgod
manage_users
HTTP
@jsxImportSource https://esm.sh/preact
0
parkerdavis avatar
parkerdavis
password_auth
Script
Forked from pomdtr/password_auth
0
tionis avatar
tionis
lastlogin
Script
Forked from stevekrouse/lastlogin
0
dthyresson avatar
dthyresson
tracksAPI
HTTP
Forked from dthyresson/graphQLYoga
0
braedennorris avatar
braedennorris
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
notclaytn avatar
notclaytn
sqlite_admin
HTTP
Forked from stevekrouse/sqlite_admin
0
ibodev avatar
ibodev
status
HTTP
Forked from stevekrouse/status
0
postpostscript avatar
postpostscript
sqliteBuilderTyped
Script
Example
1
tmcw avatar
tmcw
devstats
HTTP
Developer Statistics This val lets you post statistics from your GitHub Actions runs to build charts of change over time. We do this by having a step at the end of our actions run like this: - name: devstats run: | curl -X "POST" "https://tmcw-devstats.web.val.run/" \ -H 'Authorization: Bearer ${{ secrets.DEVSTATS_TOKEN }}' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $"{ \"name\": \"node_modules_kb\", \"value\": $(du -sk node_modules | awk '{print $1}') }" And setting a DEVSTATS_TOKEN value, which could be any short random value, both in Val Town environment variables and as a secret in your GitHub Actions configuration. Currently the name you attach to a statistic can be anything, and the value is expected to be a number.
4
postpostscript avatar
postpostscript
sqliteUniverseExample
Script
An interactive, runnable TypeScript val by postpostscript
1
rlesser avatar
rlesser
sqliteTableExportUtils
Script
SQLite Table Export Utils This allows for a val.town-hosted SQLite table to be exported as: JSON ( Record<string, unknown>[] ) Arrow IPC ( Uint8Array ) TODO: Others? This can then be used by a HTTP endpoint, like so: import { exportSQLiteTable, SQLiteTableExportFormat } from "https://esm.town/v/rlesser/sqliteTableExportUtils"; export default async function(req: Request): Promise<Response> { const tableName = new URL(req.url).searchParams.get("table"); if (!tableName) { return new Response("Table name is required", { status: 400 }); } const format = (new URL(req.url).searchParams.get("format") || "arrowIPC") as SQLiteTableExportFormat; const data = await exportSQLiteTable(tableName, format); if (data instanceof Uint8Array) { return new Response(data, { headers: { "Content-Type": "application/octet-stream" }, }); } else { return Response.json(data); } } TODO Specify limit and offset of export, for pagination Smart assessment of if the export is going to be over the val.town limit of 10MB, adjust to paginated of so. Support other export formats. PRs welcome!
2
dthyresson avatar
dthyresson
resetFavoriteSongSearches
Cron
Reset Favorite Song Searches Cron to clear and reset favoritre Spotify song searches periodically.
0
alvi avatar
alvi
SteamPlaytimeHistory_playHistorySchema
Script
This val is part of the SteamPlaytimeHistory project This val exports the drizzle table scheme so you can use it to interact with your play_history table across your differents vals
0
kajgod avatar
kajgod
list_users
Script
An interactive, runnable TypeScript val by kajgod
0
izuchukwu avatar
izuchukwu
sqlite_admin
HTTP
Forked from stevekrouse/sqlite_admin
0
fahadakhan2 avatar
fahadakhan2
slackScout
Cron
Forked from sarahxc/slackScout
0
Updated: April 3, 2024