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.
stevekrouse avatar
stevekrouse
dateme
HTTP
Date Me Directory This is entry-point val for the source code for the Date Me Directory. Contributions welcome! This app uses Hono as the server framework and for JSX . The vals are stored in Val Town SQLite . Contributing Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. This script should do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya! Todos [ ] Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite [ ] Require an email (that isn't shared publicly) [ ] Verify the email address with a "magic link" [ ] Refactor Location to an array of Lat, Lon [ ] Geocode all the existing locations [ ] Add a geocoder map input to the form [ ] Allow selecting multiple location through the form [ ] Profile performance & speed up site, possibly add more caching [ ] Let people edit their forms [ ] Featured profiles
4
nbbaier avatar
nbbaier
draftReadme
Script
Forked from nbbaier/readmeGPT
0
wilt avatar
wilt
npmProxy
HTTP
// import tsBlankSpace from "npm:ts-blank-space";
0
iamseeley avatar
iamseeley
personalData
Script
An interactive, runnable TypeScript val by iamseeley
0
campsite avatar
campsite
githubPRAlert
HTTP
This val creates a GitHub webhook listener that posts pull request information to Campsite when a pull request is opened or closed. Campsite API docs: https://campsite.com/docs
0
stevekrouse avatar
stevekrouse
myspace
HTTP
Forked from jdan/myspace
0
stevekrouse avatar
stevekrouse
amaranthTakin
HTTP
Forked from stevekrouse/dateme
0
shegosthato avatar
shegosthato
portfolioSite
Script
@jsxImportSource https://esm.sh/react
1
vez avatar
vez
comments
HTTP
Comments (just add water) A self-contained comments system Val. Just fork this val and you have a complete (but extremely minimal) comment system! Call on the front-end using: const MY_FORKED_VAL_URL = "https://vez-comments.web.val.run"; const getComments = async () => { const response = await fetch(MY_FORKED_VAL_URL); const json = await response.json(); return json; }; const addComment = async (str) => { try { const response = await fetch(MY_FORKED_VAL_URL, { method: "POST", body: JSON.stringify(str), }); if (response.status >= 400 && response.status < 600) { /* error */ return false; } else { /* success */ return true; } } catch (e) { /* error */ return false; } }; Here's an example of a blog post where I used the val for the comment system: https://vezwork.github.io/polylab/dist/demo/bidirectionalParse/. Check out "view source"!
0
triptych avatar
triptych
bio
HTTP
Forked from stevekrouse/linkInBioTemplate
0
pomdtr avatar
pomdtr
valtownIdeas
HTTP
Forked from nbbaier/vtIdeasTemplate
0
odicho avatar
odicho
bbaasfe
Script
Forked from dglazkov/bbaasfe
0
pomdtr avatar
pomdtr
mdx
HTTP
title: mdx {frontmatter.title} Usage import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo"; import { mdx } from "https://esm.town/v/pomdtr/mdx"; const { author, name } = extractValInfo(import.meta.url); export default mdx(author, name);
1
jamiedubs avatar
jamiedubs
rssSummarizerTest
Script
uses this glif to summarize a given feed using code. planning to use this in other stuff
0
elliotbraem avatar
elliotbraem
getProfileProfilePage
HTTP
@jsxImportSource https://esm.sh/react
1
vogelino avatar
vogelino
AtelierHarfangToRSS
HTTP
Forked from vogelino/TanStackBlogToRSS
0