Back to APIs list

Hacker News API examples & templates

Use these vals as a playground to view and fork Hacker News API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
Skyfall
qkiii
Skyfall
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
ardentVioletSwordfish
rahul97
ardentVioletSwordfish
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
dateme_form_react
stevekrouse
dateme_form_react
Remix of: stevekrouse/date_me_form
Script
ChatGPTTextDefinitionUserscript
xsec
ChatGPTTextDefinitionUserscript
Remix of: willthereader/ChatGPTTextDefinitionUserscript
Script
getSubscribers
petermillspaugh
getSubscribers
Val Town email subscriptions: read from SQL tables Cousin Val to @petermillspaugh/emailSubscription — see docs there.
Script
glifbux
jamiedubs
glifbux
this is the fake, zero-security economy for glif chatbots https://glif.app it is the poorest man's blockchain see also our imaginary NFT marketplace: https://www.val.town/v/jamiedubs/glifinventory
HTTP
drumMachine
sedson
drumMachine
Freesound Drum Machine Freesound is an amazing sample library with thousands of user-uploaded sounds. Many of them are amazing and useful sound effects. Many others are hilarious and silly home recordings. This toy lets you (try to) make music from that chaos.
HTTP
generateframeImage
michaelwschultz
generateframeImage
MOVED TO: https://www.val.town/x/michaelwschultz/frame Gathers information and returns an image of this val Why I'm using this val for my 3-color e-ink display run by a Raspberry Pi Zero W. The Pi runs a cron job that tell's it to fetch this url twice a day and render it to the display. Works like a charm. Right now I'm not displaying much but I'm going to keep iterating on what type of information I want to display. How I'll post more info on my set up here later if you want to try something similar. But I assume this workflow could be used for lot's of different projects that don't have a ton of compute or where you don't want to learn how to actually draw things to a screen like all the e-ink display libraries.
HTTP
maroonQuelea
davidturnbull
maroonQuelea
An interactive, runnable TypeScript val by davidturnbull
HTTP
preciousMoccasinPython
vawogbemi
preciousMoccasinPython
An interactive, runnable TypeScript val by vawogbemi
Script
jamz
all
jamz
@jsxImportSource https://esm.sh/react
HTTP
SharzPearls
sharz
SharzPearls
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
neighborhoodOrderApp
zlpkhr
neighborhoodOrderApp
@jsxImportSource https://esm.sh/react
HTTP
lovelyYellowXerinae
mikehiggins
lovelyYellowXerinae
// Expanded stopwords list with additional web-specific terms
Script
loopyLettersBirds
alexwein
loopyLettersBirds
Remix of: alexwein/loopyLetters
HTTP
slamBotPost
dupontgu
slamBotPost
// Replace with your actual access token and Mastodon instance URL
Cron