Avatar

yawnxyz

i make ui for ai
Joined March 31, 2023
Likes
86
yawnxyz avatar
openAiExample
@yawnxyz
HTTP (deprecated)
Forked from yawnxyz/openAiHelloWorld
iamseeley avatar
HonoHTMX
@iamseeley
HTTP (deprecated)
Forked from mxdvl/vals
stevekrouse avatar
upload_url
@stevekrouse
Script
// Function to upload data using Wormhole API and return the URL
stevekrouse avatar
valwriter
@stevekrouse
HTTP (deprecated)
Forked from stevekrouse/cron2
nbbaier avatar
sqlite_explorer
@nbbaier
HTTP (deprecated)
An interactive, runnable TypeScript val by nbbaier
taras avatar
cors_proxy
@taras
HTTP (deprecated)
Forked from taras/free_open_router
robsimmons avatar
sqlite_admin
@robsimmons
HTTP (deprecated)
Forked from stevekrouse/sqlite_admin
hugentobler avatar
whatsappWebhookExample
@hugentobler
HTTP (deprecated)
* Simple, free webhook to start using WhatsApp Platform. * Handles GET request for verification, and POST request for notifications. * Meta example: https://glitch.com/edit/#!/whatsapp-cloud-api-echo-bot * * Setup: * 1. Make sure your val name, and thus the val generated HTTP endpoint does not have underscores. * Underscores present in the endpoint may error out the verification step. * 2. Set your env variable `WHATSAPP_WEBHOOK_VERIFY_TOKEN` * Set env variables in val: https://docs.val.town/reference/environment-variables/ * hub.verify_token value: https://developers.facebook.com/docs/graph-api/webhooks/getting-started * * Note: * - As of Mar 2024, Retool webhooks don't support GET requests. So we use val.
stevekrouse avatar
amaranthYak
@stevekrouse
HTTP (deprecated)
Forked from nbbaier/sqliteExplorerApp
stevekrouse avatar
reloadOnSave
@stevekrouse
Script
Forked from stevekrouse/ReloadScript
pomdtr avatar
trpc
@pomdtr
Script
trpc Access private Val Town apis. ⚠️ trpc endpoints can change at any time Available Procedures (WIP) Queries search getVal getValMetadata getValLastLogs Mutations deleteVal updateReadme togglePrivacy updateVal toggleLike run updateInterval stopInterval
andreterron avatar
isMyWebsiteDown
@andreterron
Cron
Forked from thierryc/isMyWebsiteDown
pomdtr avatar
password_auth
@pomdtr
Script
Password Auth Middleware Protect your vals behind a password. Use session cookies to persist authentication. Demo See @pomdtr/password_auth_test Usage import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=84"; export default passwordAuth(() => { return new Response("OK"); }, { verifyPassword: (password) => password == Deno.env.get("VAL_PASSWORD") }); If you want to use an api token to authenticate: import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=84"; import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken"; export default passwordAuth(() => { return new Response("OK"); }, { verifyPassword: verifyToken }); TODO [x] allow to authenticate using a val town token [ ] add a way to send an email to ask a password from the val owner [ ] automatically extend the session [ ] automatically remove expired sessions FAQ How to sign out ? Navigate to <your-site>/signout .
nbbaier avatar
sqliteExplorerApp
@nbbaier
HTTP (deprecated)
SQLite Explorer View and interact with your Val Town SQLite data. It's based off Steve's excellent SQLite Admin val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by LibSQL Studio by invisal . This is now more an SPA, with tables, queries and results showing up on the same page. Install Install the latest stable version (v86) by forking this val: Authentication Login to your SQLite Explorer with password authentication with your Val Town API Token as the password. Todos / Plans [ ] improve error handling [ ] improve table formatting [ ] sticky table headers [x] add codemirror [ ] add loading indication to the run button (initial version shipped) [ ] add ability to favorite queries [ ] add saving of last query run for a table (started) [ ] add visible output for non-query statements [ ] add schema viewing [ ] add refresh to table list sidebar after CREATE/DROP/ALTER statements [ ] add automatic execution of initial select query on double click [x] add views to the sidebar [ ] add triggers to sidebar [ ] add upload from SQL, CSV and JSON [ ] add ability to connect to a non-val town Turso database [x] fix wonky sidebar separator height problem (thanks to @stevekrouse) [x] make result tables scrollable [x] add export to CSV, and JSON (CSV and JSON helper functions written in this val . Thanks to @pomdtr for merging the initial version!) [x] add listener for cmd+enter to submit query
nbbaier avatar
runPython
@nbbaier
Script
Adapting the solution to running pyodide in Deno from this gh comment: https://github.com/pyodide/pyodide/issues/3420#issuecomment-1726815037
pomdtr avatar
sql
@pomdtr
Script
SQL Template Tag Port of blakeembrey/sql-template-tag for usage in val.town. Usage import { sqlite } from "https://esm.town/v/std/sqlite" import { sql, zip } from "https://esm.town/v/pomdtr/sql" const query = sql`SELECT * FROM books WHERE author = ${author}`; console.log(query.sql) // => "SELECT * FROM books WHERE author = ?" console.log(query.args) // => [author] const res = await sqlite.execute(query) console.table(zip(res)) For advanced usage (ex: nesting queries), refer to the project readme .