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.
alana avatar
myspace
@alana
HTTP (deprecated)
Forked from jdan/myspace
kananrengaraju avatar
linkInBioTemplate
@kananrengaraju
HTTP (deprecated)
Forked from stevekrouse/linkInBioTemplate
nbbaier avatar
submitPR
@nbbaier
Script
Submit a PR from Val Town This val provides a (very) thin wrapper around the GH rest API methods for creating a pull request. It handles the creation of a Octokit client for you. Usage import { submitPR } from "https://esm.town/v/nbbaier/submitPR"; await submitPR(Deno.env.get("GH_REPO_TOKEN"), { owner: "nbbaier", repo: "test-ground", head: "branch_2", base: "main", title: "trying another PR", body: "cool stuff, take a look", }); Parameters The function takes two parameters: your gh access token and an object that's identical to the object submitted to the gh API. See GH's documentation for more info!
shreyasmakes avatar
linkInBioTemplate
@shreyasmakes
HTTP (deprecated)
Forked from stevekrouse/linkInBioTemplate
fil avatar
beckerBarley
@fil
HTTP
Beckerโ€™s Barley trellis SSR chart with Observable Plot This chart is rendered server-side by val.town, using Observable Plot, from data loaded from the GitHub API. For a more complete example, see https://www.val.town/v/fil.earthquakes. For information on this chart, see https://observablehq.com/@observablehq/plot-barley-trellis.
injoon5 avatar
staticChess
@injoon5
HTTP (deprecated)
Forked from maxm/staticChess
yawnxyz avatar
simpleLogin
@yawnxyz
HTTP (deprecated)
// Your routes go here
bjenhamin4alfredolvchenki avatar
staticChess
@bjenhamin4alfredolvchenki
HTTP (deprecated)
Forked from maxm/staticChess
maxm avatar
repp
@maxm
HTTP (deprecated)
repp
jahabeebs avatar
safeMessageBoard
@jahabeebs
HTTP (deprecated)
Forked from stevekrouse/safeMessageBoard
theawu7 avatar
linkInBioTemplate
@theawu7
HTTP (deprecated)
Forked from stevekrouse/linkInBioTemplate
yieldray avatar
notebook
@yieldray
HTTP (deprecated)
https://yieldray-notebook.web.val.run/
bluemsn avatar
loaderSampleWeb
@bluemsn
Script
Forked from webup/loaderSampleWeb
danielkerrigan avatar
obsidianPlugins
@danielkerrigan
Script
Get the most popular Obsidian plugins.
stevekrouse avatar
switchbot
@stevekrouse
HTTP (deprecated)
Open the Val Town Office Doors with Switchbot We installed two switchbot robots in our office: Ground Floor Office Door This webpage will let Val Town employees or guests to use these bots. The original version of this val was for a party. That fork is preserved here: @stevekrouse/switchbot_party Next steps [ ] Remove party theme [ ] Add one of @pomdtr's login methods [ ] Allow all @val.town emails to login [ ] Have any other email login ping me for approval or make a private val with a list of approved emails [ ] Add the office door to the site [ ] Add instructions (ie turn off wifi completely downstairs; be gentle with the office door one) Switchbot API This val authenticates to the switchbot API with SWITCHBOT_TOKEN and SWITCHBOT_KEY . Learn how to get your own Switchbot API keys here: Switchbot Docs .
ajax avatar
resumeConfig
@ajax
Script
Forked from iamseeley/resumeConfig
โ€ฆ
20
โ€ฆ
Next