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.
curtcox avatar
sourceOnGithubExample
@curtcox
HTTP (deprecated)
Example showing how to reference source in public github repos.
vtdocs avatar
githubPayloadStringToNormalizedJSON
@vtdocs
Script
An interactive, runnable TypeScript val by vtdocs
jshawl avatar
initialCommit
@jshawl
Script
An interactive, runnable TypeScript val by jshawl
pomdtr avatar
emulatorJS
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
willthereader avatar
projects
@willthereader
HTTP
@jsxImportSource https://esm.sh/hono@latest/jsx
stevekrouse avatar
code_search_is_easy
@stevekrouse
HTTP (deprecated)
Forked from pomdtr/code_search_is_easy
stevekrouse avatar
hiNicoFromGists
@stevekrouse
Script
Import from Github Gists You can import from Github Gist's raw URL: await import("https://gist.githubusercontent.com/...") This example pulls from this gist: example.js Which has this code: export const hi = function() { return "Hi Nico!" }
nbbaier avatar
gfm
@nbbaier
Script
Forked from pomdtr/gfm
stevekrouse avatar
exuberantScarletPanther
@stevekrouse
HTTP
Forked from willthereader/projects
pomdtr avatar
sunbeamGithubNotifications
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
greenSnipe
@pomdtr
HTTP (deprecated)
Forked from stevekrouse/code_search_is_easy
pomdtr avatar
renderGist
@pomdtr
HTTP (deprecated)
Render Gist Usage Go to a gist page, and replace gist.github.com by pomdtr-renderGist.web.val.run Example: https://pomdtr-renderGist.web.val.run/probonopd/9feb7c20257af5dd915e3a9f2d1f2277
stevekrouse avatar
vscode
@stevekrouse
HTTP (deprecated)
Forked from pomdtr/vscode
m3e avatar
vimarkdown
@m3e
HTTP
Forked from jxnblk/vimarkdown
pomdtr avatar
valTownSearch
@pomdtr
HTTP (deprecated)
Val Town Search Search for vals using the Github API. Either use the provided UI, or the query param: https://val-town-search.pomdtr.me/search?q=fetchJSON How does it work ? I've wrote about it! Todos [x] Embed the results in the UI [x] Refresh the vals on a cron using a github action [ ] Improve layout on small screens [ ] Support json Accept header [ ] Add pagination params [ ] Allow to filter by authors
ianvph avatar
posthogGitHubStarCapture
@ianvph
HTTP (deprecated)
A GitHub webhook handler to capture stars in PostHog