Back to APIs list

Github API examples & templates

Use these vals as a playground to view and fork Github API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
tmcw avatar
nhttpExample
@tmcw
HTTP (deprecated)
nhttp example This uses the tiny nhttp framework with the Val Town Web API . New frameworks like nhttp works really well with our system because they rely on the standard Request & Response objects! Server examples Hono Peko Itty Router Nhttp
gz315200 avatar
sqlite
@gz315200
Script
Forked from stevekrouse/sqlite
pomdtr avatar
copy_val_slug
@pomdtr
Script
This val is supposed to be used with the val.town extension. See the extension readme for installation instructions.
saolsen avatar
example_rust_http_val
@saolsen
Script
Built from https://gist.github.com/saolsen/294683088bae9a8f9a8cf93e2b392729 See https://gist.github.com/saolsen/d273bb1baba5e912e4dc2b187511affa for how to build a rust val. See https://www.val.town/v/saolsen/use_example_rust_http_val for how to use this.
stevekrouse avatar
lucia_adapter_base
@stevekrouse
Script
Forked from pomdtr/lucia_adapter_base
vtdocs avatar
helloWorldPDF
@vtdocs
Express
You can render PDFs on Val Town using the jspdf library (and presumably other libraries too!)
pomdtr avatar
lucia_adapter_base
@pomdtr
Script
Copied from https://github.com/lucia-auth/lucia/blob/main/packages/adapter-sqlite/src/base.ts
tmcw avatar
nanoidExample
@tmcw
Script
nanoid nanoid is like a shorter, more fashionable alternative to UUIDs. Versus UUIDs: They're shorter, with a more customizable alphabet. They use more different characters by default. Unlike UUIDs, there aren't custom types for nanoids in databases Nanoids never contain information. UUIDs sometimes do: some UUIDs contain timestamps and MAC addresses.
pomdtr avatar
astro
@pomdtr
HTTP (deprecated)
Astro served from Val Town (with SSR) ! The ultimate goal would be to serve it if from jsr, but the deno astro adapter still relies on deno.land.
shouser avatar
email
@shouser
Script
Forked from std/email
heaversm avatar
sqlite
@heaversm
Script
Forked from stevekrouse/sqlite
ayush37 avatar
forwarder
@ayush37
Email
Forked from stevekrouse/forwarder
saolsen avatar
connect4_mcts_agent
@saolsen
HTTP (deprecated)
Connect4 agent that uses Monte-Carlo tree search to simulate 10,000 random games from each possible action and pick the one with the highest win rate. Ported from a version I made in rust. https://github.com/saolsen/connect4 https://www.steveindusteves.com/p/connect4-mcts
aroyan avatar
email
@aroyan
Script
Forked from std/email
richardkaplan avatar
forwarder
@richardkaplan
Email
Forked from stevekrouse/forwarder
zzz avatar
Tokenizer
@zzz
Script
An interactive, runnable TypeScript val by zzz
โ€ฆ
39
โ€ฆ
Next