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.
fossforlife avatar
fossforlife
mediumToMarkdown
Script
// Altered from https://github.com/ericclemmons/medium-to-markdown
0
vs4vijay avatar
vs4vijay
vs4vijay
Script
An interactive, runnable TypeScript val by vs4vijay
0
jamie_tldraw avatar
jamie_tldraw
tldrawStars
Script
An interactive, runnable TypeScript val by jamie_tldraw
0
ije avatar
ije
html
Script
Rendering html with jsx - https://github.com/ije/html using JSX support Atomic CSS powered by UnoCSS dark mode(color scheme) /** @jsx h */ import { h, html } from "https://esm.town/v/ije/html"; export default () => { return html( <div class="flex items-center justify-center w-screen h-screen"> <p class="text-5xl font-bold text-green-600">Hello World!</p> </div> ); }; Demo: https://www.val.town/v/ije/htmlDemo
0
ototao avatar
ototao
linkInBioTemplate
HTTP
Forked from stevekrouse/linkInBioTemplate
0
jacobhthomas avatar
jacobhthomas
studenthouse
HTTP
Forked from stevekrouse/dateme
0
tmcw avatar
tmcw
blocks_inner
Express (deprecated)
An interactive, runnable TypeScript val by tmcw
1
burningion avatar
burningion
valshot
HTTP
Forked from vladimyr/valshot
0
opeala avatar
opeala
LegoIWant
HTTP
@jsxImportSource https://esm.sh/react
0
MichaelNollox avatar
MichaelNollox
outsideBlushShrimp
Script
Forked from andreterron/codeOnValTown
0
tmcw avatar
tmcw
importFromGist
Script
An interactive, runnable TypeScript val by tmcw
0
pinjasaur avatar
pinjasaur
cuetip
HTTP
Forked from pinjasaur/sassy
0
geauxweisbeck4 avatar
geauxweisbeck4
GeauxWeisbeck4_Introduction
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
nbbaier avatar
nbbaier
tealEarthworm
HTTP
Forked from nbbaier/template_honoJSX
0
ikbear avatar
ikbear
Bio
HTTP
Forked from stevekrouse/linkInBioTemplate
0
tmcw avatar
tmcw
bandcampWrapped
HTTP
Bandcamp Wrapped It's Spotify Wrapped, but for Bandcamp! . Bandcamp is for people who buy their music and probably most of them hoard MP3s. Like me. And this val helps those people turn their Bandcamp purchases of 2024 into HTML or Markdown suitable for blog posts on their blogs, which is probably a segment that has some overlap with the people who are wacky enough to buy their music instead of streaming it from some service. Because Bandcamp doesn't have an API, this hinges on you going to your purchases page, copying the purchases, and pasting it in. Thanks to the ability of the system clipboard to contain HTML , the same technology that makes copy-and-pasted text have unpredictable and annoying font and boldness choices also lets this parse and reformat that purchases page into something shareable. I would love for this to support embeds as well, but I haven't found a strategy yet: Bandcamp embeds use album IDs in the URLs, which are not exposed in the content on the purchases page. I'd have to scrape Bandcamp for that, which would probably inevitably be blocked by some 'bot protection' system. Also read about this on macwright.com .
1