test
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.
Viewing readonly version of develop branch: v1View latest version
This project automatically captures screenshots of "Show HN" products posted on Hacker News and displays them in a gallery format.
- 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
/backend/- Server-side codeindex.ts- Main HTTP API handlercron.ts- Scheduled job to fetch new posts/database/- Database related code
/frontend/- Client-side codeindex.html- Main HTML templateindex.js- Frontend JavaScriptstyle.css- CSS styles
/shared/- Shared code between frontend and backend
- A cron job periodically fetches new "Show HN" posts from the Hacker News API
- For each post, it captures a screenshot of the linked website
- Post data and screenshot URLs are stored in a SQLite database
- The web interface displays these screenshots in a gallery format