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.
maas avatar
importGists
@maas
Script
Imports Gists to Val Town Import your TypeScript and JavaScript to Val Town Authentication This function requires two keys: one from Github to get your gists, and one from Val Town to make the vals in your account: Github token: https://github.com/settings/tokens Val Town key: https://www.val.town/settings/api Usage You can use this function by calling it and passing your keys like so: @maas.importGists({ githubToken: @me.secrets.githubGists, valTownKey: @me.secrets.valtown, }); Example usage: https://www.val.town/v/maas.untitled_harlequinCrawdad
stevekrouse avatar
githubStarWebhook
@stevekrouse
HTTP (deprecated)
Forked from sean_smyth/githubStarWebhook
andreterron avatar
staleGithubPRsEmail
@andreterron
Cron
Forked from ramkarthik/staleGithubPRsEmail
bastost avatar
githubFollowers
@bastost
Script
An interactive, runnable TypeScript val by bastost
bwaidelich avatar
githubEvents
@bwaidelich
Script
An interactive, runnable TypeScript val by bwaidelich
stungeye avatar
githubFollowers
@stungeye
Script
An interactive, runnable TypeScript val by stungeye
rym avatar
githubFollowers
@rym
Script
An interactive, runnable TypeScript val by rym
neverstew avatar
githubStarWebhook
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
pomdtr avatar
datasette
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
rld avatar
githubFollowers
@rld
Script
An interactive, runnable TypeScript val by rld
pomdtr avatar
old_mkdocs
@pomdtr
HTTP
This val serve an old commit from the mkdocs repos
axel_sb avatar
githubUser
@axel_sb
Script
An interactive, runnable TypeScript val by axel_sb
hultner avatar
githubUser
@hultner
Script
An interactive, runnable TypeScript val by hultner
karfau avatar
githubEmoji
@karfau
HTTP (deprecated)
Usage import {githubEmojiUrl} from "https://esm.town/v/karfau/githubEmoji"; console.log(githubEmojiUrl('+1')) //"https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" or in a browser <img src="https://karfau-githubEmoji.web.val.run/+1"></img> Looks like in the preview. curl https://karfau-githubEmoji.web.val.run/+1 (prints "https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" ) If the name you pass (as argument or in the request path) is not in the list, it returns The list of names can be accessed using githubEmojiNames or by calling https://karfau-githubemoji.web.val.run/names
rcoady avatar
githubEvents
@rcoady
Script
An interactive, runnable TypeScript val by rcoady
stevekrouse avatar
githubStarred
@stevekrouse
Script
// Cities named Brooklyn