Google Drive API examples & templates
Use these vals as a playground to view and fork Google Drive API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
supersayan
getAllVideosInYoutubePlaylist
Get All Videos in a Youtube Playlist using the Youtube Data API v3 Reference: https://developers.google.com/youtube/v3/docs/playlistItems/list

stevekrouse
morningDiscEmails
// set by stevekrouse.morning_disc_collector at 2023-09-21T17:28:33.090Z
tmcw
octokitGraphQLExample
octokit/graphql This alternative driver for the GitHub API exposes it via GraphQL.
tmcw
blocks
Unfancy blocks In the old days, there was a website called bl.ocks.org which re-hosted content on GitHub Gists and displayed visualizations made in those gists. It wasn't shiny but it was well-crafted and for the little community that used it, it was very nice. This is a much worse, but very small, version of the same kind of program. This also shows you stuff from blocks. It displays readmes, with Titus's lovely micromark . It uses Ian's collected search index of bl.ocks.org to show you examples and thumbnails. It uses Alpine to pull together a little interface. And, of course, Val Town to make it all work.

stevekrouse
autoGPTPrompt
// fork from https://github.com/Torantulino/Auto-GPT/blob/master/scripts/data/prompt.txt
tmcw
litExample
lit Lit is kind of like Google's answer to React: it's a little more reliant on browser APIs like custom elements and the shadow DOM, a little less 'magic', like using JSX. This is an example of using Lit and rendering it straight to a string, which is something that's recently popular. It works pretty well, right off the bat: Lit provides nice ESM modules and a pretty smooth workflow!