Images
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 main branch: v4View latest version
A minimal image hosting service that allows users to upload images and view the last 4 uploaded images.
- / - View the last 4 uploaded images (newest first)
- /add - Upload form for new images
- Automatic cleanup: images are deleted when there are 4 newer images
- Mobile and desktop friendly
- No frontend JavaScript required
- Built with Hono framework
- Uses SQLite for metadata storage
- Uses Val Town Blob storage for image files
- Images are stored as base64 in blob storage
- Supports common image formats (JPEG, PNG, GIF, WebP)
backend/index.ts- Main application entry pointbackend/database/- Database schema and queriesfrontend/- HTML templates and styles