Avatar

neverstew

Twice called wise. 🧐 Building a better world at https://equalcare.coop.
Joined January 12, 2023
Likes
11
youkq95 avatar
youkq95
PaintSeq
HTTP
@jsxImportSource https://esm.sh/react
2
vawogbemi avatar
vawogbemi
StripeCheckoutDemo
HTTP
@jsxImportSource https://esm.sh/react
1
janpaul123 avatar
janpaul123
VALLE
HTTP
Forked from janpaul123/valTownChatGPT2
15
stevekrouse avatar
stevekrouse
reloadOnSave
Script
Forked from stevekrouse/ReloadScript
6
vladimyr avatar
vladimyr
serveReadme
Script
// SPDX-License-Identifier: 0BSD
2
pomdtr avatar
pomdtr
hydrate_hono_islands
Script
An interactive, runnable TypeScript val by pomdtr
1
saolsen avatar
saolsen
tracing
Script
Opentelemetry Tracing for Vals! Enables Opentelemetry tracing for vals. Exports two functions, init and traced_handler . init will set up opentelemetry. For how to use it see this example val . By default, traces log to the console but if you set HONEYCOMB_API_KEY it'll also push the traces to honeycomb. In the future we can add more export targets for other services. I'm also thinking about making a val to display them. traced_handler is a wrapper for your handler you can use on an HTTP val. Just pass it your HTTP function and export it as the default and it'll trace every request. Here's a screenshot of what the honeycomb view of a trace from my connect playing val looks like.
3
saolsen avatar
saolsen
connect4
Script
An interactive, runnable TypeScript val by saolsen
1
tmcw avatar
tmcw
getDuckDB
Script
Get a DuckDB database This method sets up a duckdb-wasm database that you can then use to store and retrieve data.
5
pomdtr avatar
pomdtr
raw
HTTP
Fetch the source of a val This val was created before the introduction of https://esm.town Usage curl https://pomdtr-raw.web.val.run/v/<author>/<name>.<extension>[?v=<version>] To see the code of this val, use https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts Examples Fetching the val code $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.tsx You can also use js , jsx and ts extension (only the content-type change, there is no transpilation). Fetching private val Pass an api token as an username $ curl "https://<token>@pomdtr-raw.web.val.run/v/pomdtr/privateVal.ts" Fetching the val README $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.md Getting an image $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.png Fetching a specific version of a val $ curl https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts?v=66 You need to be authenticated to use this method. Fetching the val metadata $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.json Running vals locally using Deno Create a new val.ts file referencing the @pomdtr.add import { add } from "https://pomdtr-raw.web.val.run/v/pomdtr/add.ts"; console.log(add(1, 2)); then use deno run $ deno run ./val.ts 3 If you val accept a request and return a response, you can pass it to Deno.Serve to run it locally! import {raw} from "https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts"; Deno.serve(raw); If your val is private, you can set the DENO_AUTH_TOKENS env. DENO_AUTH_TOKENS=<val-town-token>@pomdtr-raw.web.val.run deno run val.ts
4
stevekrouse avatar
stevekrouse
whatIsValTown
HTTP
An interactive, runnable TypeScript val by stevekrouse
4
Next