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.
rlouf avatar
rlouf
posthogGitHubStarCapture
HTTP
Forked from ianvph/posthogGitHubStarCapture
0
lgug2z avatar
lgug2z
githubSponsorshipDiscordNotification
HTTP
Forked from lgug2z/stripeSubscriptionDiscordNotification
0
kaleidawave avatar
kaleidawave
getLatestGitHubRun
HTTP
A redirect to the most recent run of a workflow. Specify with /*user*/*repository*/*branch* and optionally ?workflow=*name* where name is a substring in the path. (else takes to latest of any run) Example: https://kaleidawave-getlatestgithubrun.web.val.run/kaleidawave/ezno/main?workflow=lines-of-code TODO Add handling for no runs etc Handling for GitHub API limits API versioning
0
amoeba avatar
amoeba
githubRepoDailyEmailDigest
Cron
GitHub Repo Daily Email Digest Sends you a daily email with a digest of the issue and pull request activity (opened, updated, closed) in a specific GitHub repository.
0
g avatar
g
countGithubLOCUI
HTTP
GitHub Line Counter πŸš€ GitHub Line Counter , live on val.town ; Ever wondered how many lines of code are in a GitHub repo without the hassle of cloning it? Say hello to GitHub Line Counter β€” your friendly, web-based LOC inspector! 🌟 What It Does This simple tool fetches the GitHub repository as a ZIP file, decompresses it on the fly (thanks to fflate πŸ’¨), and counts the lines of code β€” on val.town with an incredible bandwith and speed. Built with Vanilla JS on the frontend and powered by val.town on the backend, it’s lightweight, fast, and ready to use! How to Use Just paste the repo URL, hit "Count Lines," and watch the magic happen! ✨
2
benigeri avatar
benigeri
githubGists
Script
An interactive, runnable TypeScript val by benigeri
0
pomdtr avatar
pomdtr
serveGithubRepo
Script
Serve Github Repo Example Click here to preview a commit from 8 years ago. import { serveGithubRepo } from "https://esm.town/v/pomdtr/serveGithubRepo"; export default serveGithubRepo({ owner: "mkdocs", repo: "mkdocs", ref: "51ec734" }); Fork this val to get your own copy, and customize the params. The first load can be a bit slow, but subsequents requests will be cached (both in your browser and on val.town) Use it from the cli deno run --allow-net https://esm.town/v/pomdtr/serveGithubRepoCli mkdocs/mkdocs --ref 51ec734
1
iamseeley avatar
iamseeley
GitHubAPI
Script
An interactive, runnable TypeScript val by iamseeley
0
sourishkrout avatar
sourishkrout
githubStars
Script
An interactive, runnable TypeScript val by sourishkrout
1
stevekrouse avatar
stevekrouse
githubFollowing
Script
An interactive, runnable TypeScript val by stevekrouse
1
stevekrouse avatar
stevekrouse
fetchNewPublicGitHubRepos
Script
An interactive, runnable TypeScript val by stevekrouse
0
g avatar
g
pjsSearchUI
HTTP
Forked from g/searchUI
0
scott avatar
scott
githubGists
Script
An interactive, runnable TypeScript val by scott
0
iamseeley avatar
iamseeley
GithubCommits
Script
An interactive, runnable TypeScript val by iamseeley
0
stevekrouse avatar
stevekrouse
gitReleaseNotes
HTTP
Forked from kylem/gitReleaseNotes
0
onemanwenttomow avatar
onemanwenttomow
getGithubTeamCommitHistories
Script
An interactive, runnable TypeScript val by onemanwenttomow
0