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.
jrmann100 avatar
jrmann100
pushSendNotification_negrel
Script
Forked from jrmann100/pushSendNotification
0
tmcw avatar
tmcw
parseEnglishExample
Script
nclst The nclst tree format is an extremely useful tree structure used for natural language processing. This is an example of parsing a string of English text into a syntax tree.
0
iamseeley avatar
iamseeley
pinkBear
Script
Forked from iamseeley/resumeConfig
0
kaleidawave avatar
kaleidawave
ezno_checker_example
Script
Check a snippet using the Ezno type checker
0
tr3ntg avatar
tr3ntg
replaceEmojisWithImages
Script
Accepts an HTML string ( body.html ) and returns an emoji-escaped replacement. The purpose of this is due to official PDF spec's lack of support for emojis. This can be seen in the Anvil PDF Generation service as well - emojis are not rendered. node-emoji github here - replaces all emojis with spans emoji images for replacement are hosted at netlify (sourced from private repo)
0
all avatar
all
excaliVal
HTTP
[ ] 📄 Templates [x] 🔄 Update Excalidraw JSR Thanks pomdtr ! [ ] 🔗 Sync Excalidraw with Obsidian [ ] 🖼️ Gallery [ ] 📊 Multi Excalidraw
0
pomdtr avatar
pomdtr
lowdb_example
Script
Lowdb Example This val demonstrates the integration between valtown and lowdb . Read the Lodash section if you want to give superpowers to your DB.
4
blur avatar
blur
oracle
Email
Forked from stevekrouse/forwarder
0
koch avatar
koch
reminders
Cron
An interactive, runnable TypeScript val by koch
0
kaleidawave avatar
kaleidawave
savedNamedPlaygrounds
HTTP
For the future playground for the Ezno type checker: https://github.com/kaleidawave/ezno/pull/115 Can save an id for a content and recall content from an id (thus acting as a sort of compressor) Inspired by how the https://play.rust-lang.org/ shares playgrounds. (However uses a SQL-lite db hosted by Valtown rather than GitHub gists)
1
tmcw avatar
tmcw
xastscriptExample
Script
xastscript xastscript is a great way to safely generate XML from within JavaScript - it provides a sort of 'Domain Specific Language' for building XML trees, and then you can encode that into XML using xast-util-to-xml . For example, we at Val Town use xastscript and these utilities to generate our sitemap.xml file for Google to discover vals.
0
saolsen avatar
saolsen
use_example_rust_val
Script
Example of how to use a rust val. See This Gist for how to build rust vals. And https://www.val.town/v/saolsen/example_rust_val for the output val we are using.
0
pomdtr avatar
pomdtr
lowdb
Script
Val Town Adapter for lowdb @std/blob is used as a lowdb sync. See @pomdtr/lowdb_example for example usage.
5
nbbaier avatar
nbbaier
moccasinRodent
Script
An interactive, runnable TypeScript val by nbbaier
1
pomdtr avatar
pomdtr
valtownOpenAPI
HTTP
Val Town Typescript Spec This val return an up-to-date typescript version of the val.town openapi spec for usage with a feTS client. Usage Deno script import { createClient, type NormalizeOAS } from "npm:fets"; import openapi from "https://pomdtr-valtownOpenAPI.web.val.run/openapi.ts"; export const client = createClient<NormalizeOAS<typeof openapi>>({ endpoint: openapi.servers[0].url, });
2
pomdtr avatar
pomdtr
vanPlateExample
HTTP
Van Plate Example of building html using the mini-van lib. Access it at https://pomdtr-vanPlateExample.web.val.run
3