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: v20View 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 using a screenshot service
- Displays screenshots in a gallery with titles and links
- Stores post data in SQLite database
/backend/- Server-side codeindex.ts- Main HTTP API handler (HTTP trigger)cron.ts- Scheduled job to fetch new posts (Cron trigger)
/frontend/- Client-side codeindex.html- Main HTML template with embedded JavaScript
- A cron job periodically fetches new "Show HN" posts from the Hacker News API
- For each post, it generates a screenshot URL using a screenshot service
- Post data and screenshot URLs are stored in a SQLite database
- The web interface displays these screenshots in a gallery format
- Uses the Hacker News API to fetch posts
- Uses the Microlink API for generating screenshots
- Stores data in SQLite for persistence
- Frontend built with HTML, JavaScript, and Tailwind CSS
- Backend API built with Hono
- The cron job will automatically run on a schedule to fetch and process new "Show HN" posts
- Visit the website to see the gallery of screenshots
- Use the pagination controls to browse through all captured screenshots