Public
pom421 avatar
pom421
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
evol avatar
evol
labLoginUpdateStatus
HTTP
Forked from todepond/labLoginUpdateStatus
0
stevekrouse avatar
stevekrouse
sqlite_admin_table
Script
@jsxImportSource https://esm.sh/hono@3.9.2/jsx
0
postpostscript avatar
postpostscript
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
stevekrouse avatar
stevekrouse
annual_feedback
HTTP
@jsxImportSource https://esm.sh/react
0
stevekrouse avatar
stevekrouse
getThreadsActivity
Script
Forked from glommer/getThreadsActivity
0
pomdtr avatar
pomdtr
sqliteTable
Script
Sqlite Table Usage: Fork this Val Replace the existing migrations by your own table The table name will match the val name. To update the table, just add new items to the migrations array, and re-run the val
0
stevekrouse avatar
stevekrouse
lucia_sqlite
Script
Forked from pomdtr/lucia_sqlite
1
petermillspaugh avatar
petermillspaugh
unsubscribe
HTTP
An interactive, runnable TypeScript val by petermillspaugh
0
ttodosi avatar
ttodosi
infiniteSVGGraph
HTTP
Forked from maxm/infiniteSVGGraph
0
saolsen avatar
saolsen
telemetry
Script
Telemetry For Vals. Telemetry is a library that lets you trace val town executions with opentelemetry. All traces are stored in val.town sqlite and there is an integrated trace viewer to see them. Quickstart Instrument an http val like this. import { init, tracedHandler, } from "https://esm.town/v/saolsen/telemetry"; // Set up tracing by passing in `import.meta.url`. // be sure to await it!!! await init(import.meta.url); async function handler(req: Request): Promise<Response> { // whatever else you do. return } export default tracedHandler(handler); This will instrument the http val and trace every request. Too add additional traces see this widgets example . Then, too see your traces create another http val like this. import { traceViewer } from "https://esm.town/v/saolsen/telemetry"; export default traceViewer; This val will serve a UI that lets you browse traces. For example, you can see my UI here . Tracing By wrapping your http handler in tracedHandler all your val executions will be traced. You can add additional traces by using the helpers. trace lets you trace a block of syncronous code. import { trace } from "https://esm.town/v/saolsen/telemetry"; trace("traced block", () => { // do something }); traceAsync lets you trace a block of async code. import { traceAsync } from "https://esm.town/v/saolsen/telemetry"; await traceAsync("traced block", await () => { // await doSomething(); }); traced wraps an async function in tracing. import { traceAsync } from "https://esm.town/v/saolsen/telemetry"; const myTracedFunction: () => Promise<string> = traced( "myTracedFunction", async () => { // await sleep(100); return "something"; }, ); fetch is a traced version of the builtin fetch function that traces the request. Just import it and use it like you would use fetch . sqlite is a traced version of the val town sqlite client. Just import it and use it like you would use https://www.val.town/v/std/sqlite attribute adds an attribute to the current span, which you can see in the UI. event adds an event to the current span, which you can see in the UI.
6
stevekrouse avatar
stevekrouse
clone_my_vals_to_sqlite
Script
Forked from pomdtr/val_town_client_example
0
stevekrouse avatar
stevekrouse
dateMeRSS
HTTP
Date Me Directory RSS Feed An RSS feed for the https://dateme.directory.
0
stevekrouse avatar
stevekrouse
ssr_react_mini_starter
HTTP
Starter App for ssr_react_mini You need to export four things: loader - runs on any GET request, on the server. it accepts the Request and returns the props of your React compnent. action - runs on the server on any non-GET, ie POST, PUT, DELETE, or <form> s submit Component - your React component. it's initially server-rendered and then client-hydrated default - you should mostly leave this line alone This is framework is bleeding-edge. You'll need to read the code of the framework itself (it's very short) to understand what it's doing. If you have questions or comments, please comment below on this val! (or any of these vals)
2
chet avatar
chet
ValTupleStorage_Example
Script
An interactive, runnable TypeScript val by chet
0
petermillspaugh avatar
petermillspaugh
createNewsletters
Script
An interactive, runnable TypeScript val by petermillspaugh
0
Updated: April 3, 2024