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.
campsite avatar
githubPRAlert
@campsite
HTTP
This val creates a GitHub webhook listener that posts pull request information to Campsite when a pull request is opened or closed. Campsite API docs: https://campsite.com/docs
pomdtr avatar
serveGithubRepo
@pomdtr
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
ejfox avatar
githubRepoViewer
@ejfox
HTTP (preview)
An interactive, runnable TypeScript val by ejfox
scott avatar
githubGists
@scott
Script
An interactive, runnable TypeScript val by scott
ejfox avatar
githubcollabgen
@ejfox
HTTP
GitHub Collaboration Suggester This tool analyzes the recent GitHub activity of two users and suggests potential collaboration opportunities. Features Fetches the last 3 months of GitHub activity for two users Summarizes activity including event counts, repositories, commits, issues, and pull requests Uses AI to generate collaboration suggestions based on the activity summaries Usage To use it, make a GET request with two GitHub usernames as query parameters: https://ejfox-githubcollabgen.web.val.run?user1=<username1>&user2=<username2> Curl Compare two specific users: curl "https://ejfox-githubcollabgen.web.val.run?user1=ejfox&user2=stevekrouse" Response The API returns a plain text response with AI-generated collaboration suggestions, including: Potential collaborative projects Technologies to explore or learn Ways to complement each other's skills Opportunities for knowledge sharing or mentoring Possible open-source contributions
benigeri avatar
githubGists
@benigeri
Script
An interactive, runnable TypeScript val by benigeri
sourishkrout avatar
githubStars
@sourishkrout
Script
An interactive, runnable TypeScript val by sourishkrout
iamseeley avatar
GitHubAPI
@iamseeley
Script
An interactive, runnable TypeScript val by iamseeley
stevekrouse avatar
githubFollowing
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
iamseeley avatar
GithubCommits
@iamseeley
Script
An interactive, runnable TypeScript val by iamseeley
onemanwenttomow avatar
getGithubTeamCommitHistories
@onemanwenttomow
Script
An interactive, runnable TypeScript val by onemanwenttomow
rlesser avatar
Github_SearchTopRepos
@rlesser
Script
An interactive, runnable TypeScript val by rlesser
stevekrouse avatar
fetchNewPublicGitHubRepos
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
eagle251 avatar
githubGists
@eagle251
Script
An interactive, runnable TypeScript val by eagle251
markthree avatar
githubRepos
@markthree
Script
An interactive, runnable TypeScript val by markthree
evan avatar
githubGists
@evan
Script
An interactive, runnable TypeScript val by evan