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.
steveGithubStars
vtdocs
steveGithubStars
An interactive, runnable TypeScript val by vtdocs
Script
githubStarred
jian
githubStarred
// GitHub starred repos
Script
gitHubStars
vtdocs
gitHubStars
An interactive, runnable TypeScript val by vtdocs
Script
githubStarred
dpointeck
githubStarred
// GitHub starred repos
Script
githubGists
rodrigotellovaltown
githubGists
An interactive, runnable TypeScript val by rodrigotellovaltown
Script
githubRepos
jshawl
githubRepos
An interactive, runnable TypeScript val by jshawl
Script
getGithubStars
vtdocs
getGithubStars
An interactive, runnable TypeScript val by vtdocs
Script
trendingrepos
jamesw
trendingrepos
// Helper function to format the date for GitHub API query
Script
githubStarred
potherca
githubStarred
// GitHub starred repos
Script
githubactivity
ejfox
githubactivity
// This approach uses the GitHub API without authentication, which is subject to rate limiting.
HTTP
hostedGitInfoExample
tmcw
hostedGitInfoExample
hosted-git-info This neat npm module lets you parse a Git URL from GitHub or elsewhere.
Script
githubFollowing
tmcw
githubFollowing
An interactive, runnable TypeScript val by tmcw
Script
ghdb
begoon
ghdb
This val implements a simple key/value database with GitHub, in a CRUD way. The key is a file path within a repository. The value is the file content. The val needs a GitHub token to access the GitHub API, the account name and the repository name. Also, the val needs GHDB_API_KEY variable. This value defines the exptected value of the GHDB_API_KEY header to allow access to the endpoints. Endpoints: GET /data/path/to/file.ext - read file GET /raw/path/to/file.ext - read file from GitHub CDN (10 times faster) DELETE /data/path/to/file.ext - delete file POST /data/path/to/file.ext - create file PUT /data/path/to/file.ext - update/commit file
HTTP
githubStarred
sadfasdfasf
githubStarred
// GitHub starred repos
Script
githubStarred
mklwlod
githubStarred
// GitHub starred repos
Script
gists
yieldray
gists
Get A Website for Your Gists Example: https://yieldray-gists.web.val.run Usage: fork this val and replace with your github usename
HTTP