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.
maxm avatar
maxm
imageToAscii
Script
Copyright (c) 2018 Victor Ribeiro - victorqribeiro@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. https://github.com/victorqribeiro/imgToAscii
0
iamseeley avatar
iamseeley
pythonHTTPVal
HTTP
pyodide 🤝 deno trick pyodide to execute python code in the deno runtime deno module source: py-town not all python packages are supported by pyodide
0
sieteunoseis avatar
sieteunoseis
dailyDadJoke
HTTP
Forked from stevekrouse/dailyDadJoke
0
samwillis avatar
samwillis
pglite2
HTTP
Forked from samwillis/pglite_http_preview_runtime
0
bluemsn avatar
bluemsn
getWebLoaderBuilder
Script
Forked from webup/getWebLoaderBuilder
0
kenbarrett avatar
kenbarrett
bbrun
Script
Forked from dglazkov/bbrun
0
nbbaier avatar
nbbaier
sqliteExplorerApp_DEV
HTTP
Forked from nbbaier/sqliteExplorerApp
0
robaggio avatar
robaggio
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
janpaul123 avatar
janpaul123
blogPostEmbeddingsDimensionalityReduction
Script
Forked from janpaul123/compareEmbeddings
0
zarutian avatar
zarutian
ocaps_ink
HTTP
An interactive, runnable TypeScript val by zarutian
2
jonasmerlin avatar
jonasmerlin
bluesky_bot_template
Cron
This is a very simple template for the kind of Bluesky bot I build. It's very much all over the place. e.g. it sets up the "Agent" to post (because that part is documented well), but doesn't use it to search for posts. You can do that if you want (if you do, look here ), but I like to simply rawdogg the API, so that is what I'm doing here. The custom Post type is incomplete and only contains the stuff I found relevant. Error handling is payed only lip service to (at best) as well. ...But it works for me! How to use If you want to use this, you will have to set 2 environment variables for your val: BLUESKY_USERNAME BLUESKY_PASSWORD From what I can tell from my testing: BLUESKY_USERNAME can be both the bot account's handle as well as the email you use to log into it with. BLUESKY_PASSWORD can be both the account's main password as well as an app password. The rest is commented in the code. If you have any questions, feel free to message me on Bluesky: Jonas-Merlin Schumacher (@jonasmerlin.bsky.social) — Bluesky
1
tempdev avatar
tempdev
flix
HTTP
@jsxImportSource npm:hono/jsx
0
tzq avatar
tzq
monitoringEventBus
Script
An interactive, runnable TypeScript val by tzq
0
natekid avatar
natekid
dailyDadJoke
Cron
Forked from stevekrouse/dailyDadJoke
0
dthyresson avatar
dthyresson
graphQLYoga
HTTP
GraphQL Yoga Server GraphQL Yoga from The Guild is a batteries-included cross-platform GraphQL over HTTP spec-compliant GraphQL server powered by Envelop and GraphQL Tools focused on easy setup, performance and great developer experience. Usage To access GraphiQL - the GraphQL Playground - visit the / route. That's what you see in the preview pane below. Configuration and Documentation See the GraphQL Yoga documentation for configuration and all the bells and whistles. Endpoint For this example, we'll set to / to make it easier to demo. However, by default, the GraphQL route is configured to be on /graphql which is more common. const yoga = createYoga({ schema, }) You can set a custom endpoint: const yoga = createYoga({ schema, graphqlEndpoint: "/my-gql", }) Landing Page A landing page is shown be default whenever a 404 is hit. You can disable it via the landingPage option. const yoga = createYoga({ schema, landingPage: false })
0
siygle avatar
siygle
resumeDetails
HTTP
💼 Thomas Seeley's resume in the JSON Resume standard
0