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.
patrick6971 avatar
patrick6971
home
HTTP
Forked from stevekrouse/linkInBioTemplate
0
bluemsn avatar
bluemsn
loaderSampleWeb
Script
Forked from webup/loaderSampleWeb
0
danielkerrigan avatar
danielkerrigan
obsidianPlugins
Script
Get the most popular Obsidian plugins.
0
stevekrouse avatar
stevekrouse
switchbot
HTTP
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 .
0
ajax avatar
ajax
resumeConfig
Script
Forked from iamseeley/resumeConfig
0
compuives avatar
compuives
staticChess
HTTP
Forked from maxm/staticChess
0
sharanbabu avatar
sharanbabu
textSummarizationComparisonTool
HTTP
* This val creates a text summarization comparison tool using the Cerebras LLM API. * It provides a text area with default text, a summarize button, and displays two different summarization results: * 1. Direct summarization * 2. Extractive summarization followed by cohesive rewriting * * The server handles API calls to Cerebras, while the client manages the UI and user interactions.
0
vhugoobject avatar
vhugoobject
linkInBioTemplate
HTTP
Forked from stevekrouse/linkInBioTemplate
0
maxm avatar
maxm
staticChess
HTTP
Check it out here: https://chess.maxmcd.com Plain, brutalist, no bloat chess. Every page is only html and css. Every chess move is made by clicking a link. Send a link to your friend and they'll send you one back to make your move. No silly animations or slick interactivity to trip up your gameplay. When Google indexes this site will we successfully compute all possible chess moves? Functionality is quite limited, and things might be broken. Please let me know if you find bugs! Inspired by this HN discussion about sites that have all possible game states of tic-tac-toe. I plan on extending this to support real gameplay. I think it could be a nice simple interface for long form games with friends. Might also be fun to add a static AI to play against. Feel free to PR any changes if you'd like to see something added.
30
arrudaricardo avatar
arrudaricardo
github_change_user_status
Script
An interactive, runnable TypeScript val by arrudaricardo
0
maxm avatar
maxm
asciiNycCameras
HTTP
ASCII NYC Traffic Cameras All of NYC's traffic cameras available as streaming ASCII images: https://maxm-asciinyccameras.web.val.run/ NYC has a bunch of traffic cameras and makes them available through static images like this one . If you refresh the page you'll see the image update every 2 seconds or so. I thought it might be fun to make these cameras viewable as an ASCII art video feed. I made a small library that takes most of its logic from this repo . You can see a basic example of how to convert any image to ASCII here . I pull in NYC GeoJSON from here and then hook up a Server-Sent Events endpoint to stream the ASCII updates to the browser. (Polling would work just as well, I've just been on a bit of a SSE kick lately.) Hilariously (and expectedly) The ASCII representation is about 4x the size of the the source jpeg and harder to see, but it has a retro-nostalgia look to it that is cool to me :)
4
yawnxyz avatar
yawnxyz
geminiBbox
HTTP
Gemini AI Object Detection and Bounding Box Visualizer This application visualizes object detection results by drawing bounding boxes on images using the Google's Gemini 1.5 Pro AI model . Try using this image of 8 bananas, with 1 row and 1/2/4 columns: https://f2.phage.directory/blogalog/bananas-8.png Or this image of a phage plaque assay, with 3x3 grid and high contrast turned on: https://f2.phage.directory/blogalog/pae7.png This app is an adaptation of Simon Willison's idea, which you can read more about here: https://simonwillison.net/2024/Aug/26/gemini-bounding-box-visualization/ API keys are only stored in your browser's local storage. Source code: https://www.val.town/v/yawnxyz/geminiBbox/ Original Source: https://github.com/simonw/tools/blob/main/gemini-bbox.html
0
stevekrouse avatar
stevekrouse
site
HTTP
An interactive, runnable TypeScript val by stevekrouse
0
ubixsnow avatar
ubixsnow
insightfulSalmonRabbit
HTTP
Forked from spinningideas/webpage_summarizer
0
tmcw avatar
tmcw
staticChess
HTTP
Forked from maxm/staticChess
0
iamseeley avatar
iamseeley
valBackup
Script
An interactive, runnable TypeScript val by iamseeley
1