• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
owen

owen

test

Public
Like
test
Home
Code
1
README.md
Branches
2
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/20/2025
Viewing readonly version of develop branch: v1
View latest version
README.md

Hacker News "Show HN" Screenshot Gallery

This project automatically captures screenshots of "Show HN" products posted on Hacker News and displays them in a gallery format.

Features

  • Automatically fetches new "Show HN" posts from Hacker News
  • Takes screenshots of the linked websites
  • Displays screenshots in a gallery with titles and links
  • Stores post data and metadata in SQLite database

Project Structure

  • /backend/ - Server-side code
    • index.ts - Main HTTP API handler
    • cron.ts - Scheduled job to fetch new posts
    • /database/ - Database related code
  • /frontend/ - Client-side code
    • index.html - Main HTML template
    • index.js - Frontend JavaScript
    • style.css - CSS styles
  • /shared/ - Shared code between frontend and backend

How It Works

  1. A cron job periodically fetches new "Show HN" posts from the Hacker News API
  2. For each post, it captures a screenshot of the linked website
  3. Post data and screenshot URLs are stored in a SQLite database
  4. The web interface displays these screenshots in a gallery format
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.