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.
runAgent
jacoblee93
runAgent
An interactive, runnable TypeScript val by jacoblee93
Script
vimarkdown
jxnblk
vimarkdown
vimarkdown Try it now A VIM-mode markdown editor built with Val Town . Features Write markdown in the browser with VIM keybindings Minimal, focused UI Saves to localStorage Multiple color modes Markdown -> HTML preview (⌘+P) NOT mobile-friendly Fork this editor on Val Town to make it your own Inspired by iA Writer Made by Jxnblk TODO [ ] Add syntax highlighting to frontmatter block [ ] Support multiple fonts
HTTP
blackRodent
stevekrouse
blackRodent
Remix of: willthereader/oldProjects
HTTP
star_a_github_repository_with_natural_language
thatsmeadarsh
star_a_github_repository_with_natural_language
Using OpenAI Assistant API, Composio to Star a Github Repo This is an example code of using Composio to star a github Repository by creating an AI Agent using OpenAI API Goal Enable OpenAI assistants to perform tasks like starring a repository on GitHub via natural language commands. Tools List of supported tools . FAQs How to get Composio API key? Open app.composio.dev and log in to your account. Then go to app.composio.dev/settings . Navigate to the API Keys -> Generate a new API key .
Script
oldDebugging_Guide
willthereader
oldDebugging_Guide
@jsxImportSource https://esm.sh/hono@latest/jsx
HTTP
serveUtils
g
serveUtils
Serve Utils This val exports various utility functions, mainly the serve(commentFunction, contentType?) . It enables easy serving of different files, while allowing the use of all string characters: // this is possible const arr = ["Hello", 'world', `!`]; Townie Prompt This can be used as a replacement system prompt for Townie. Townie will: Write client-side applications with vanilla JavaScript Serve them as different assets, ie. index.html , style.css and main.js Use modern module syntax, including importing modules directly from esm.sh on the client side Not reuse the same script for the server and client logic IMPORTANT: Due tue val.town README restrictions, the custom prompt can now be found here .
Script
tahirsTil
tfayyaz
tahirsTil
Remix of: stevekrouse/linkInBioTemplate
HTTP
gfm
rlesser
gfm
Remix of: pomdtr/gfm
Script
github_emails
wittjosiah
github_emails
An interactive, runnable TypeScript val by wittjosiah
Email
hasValTownStyleGuideUpdated
stevekrouse
hasValTownStyleGuideUpdated
An interactive, runnable TypeScript val by stevekrouse
Script
getLatestGitHubRun
kaleidawave
getLatestGitHubRun
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
HTTP
githubWebhookApproveDependencyPRs
karfau
githubWebhookApproveDependencyPRs
Remix of: vtdocs/githubWebhookWithVerify
Script
cerebras_coder
diegoivo
cerebras_coder
Remix of: stevekrouse/cerebras_coder
HTTP
random_change_github_status
arrudaricardo
random_change_github_status
An interactive, runnable TypeScript val by arrudaricardo
Cron
Jumpchain_Website
stevekrouse
Jumpchain_Website
Remix of: willthereader/Jumpchain_Website
HTTP
Code_Debugger
sakshamkapoor2911
Code_Debugger
Remix of: stevekrouse/cerebrasTemplate
HTTP