valtownGeocities
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: v35View latest version
A modernized custom website publisher that allows you to store and serve HTML websites via Val Town. Originally designed to work with Glif for AI-generated websites, but now supports any HTML content!
- Large HTML Support: Now handles very large HTML files (up to 10MB)
- Better Error Handling: Comprehensive validation and user-friendly error messages
- Modern UI: Clean, responsive web interface with real-time feedback
- Admin Features: List, view, and delete published websites
- Improved API: RESTful endpoints with proper HTTP status codes
- Legacy Compatibility: Maintains backward compatibility with existing URLs
Visit the main URL to access the modern web interface:
https://your-val-url.web.val.run/
# POST HTML content curl -X POST "https://your-val-url.web.val.run/site?key=my-site" \ -H "Content-Type: text/html" \ -d "<html><body><h1>Hello World!</h1></body></html>" # POST JSON with HTML curl -X POST "https://your-val-url.web.val.run/site?key=my-site" \ -H "Content-Type: application/json" \ -d '{"data": "<html><body><h1>Hello World!</h1></body></html>"}'
# View in browser https://your-val-url.web.val.run/site?key=my-site # Get JSON response https://your-val-url.web.val.run/site?key=my-site&format=json
| Method | Endpoint | Description |
|---|---|---|
GET | / | Web interface (admin panel) |
GET | /site?key=<key> | View published website |
POST | /site?key=<key> | Publish HTML content |
GET | /admin/list | List all published websites |
DELETE | /admin/site?key=<key> | Delete a website |
- Large File Support: Handle HTML files up to 10MB
- Key Validation: Secure key format validation (alphanumeric, hyphens, underscores)
- Content Processing: Automatic cleanup of common formatting issues
- Metadata Tracking: Track creation/update times and file sizes
- Legacy Support: Backward compatible with old URL patterns
- Modern UI: Responsive web interface with TailwindCSS
You can still use this with Glif for AI-generated websites:
- Run a Glif that generates HTML: https://glif.app/@jamiedubs/glifs/clqecfqdd000tc3vk4i208jl3
- The Glif will POST the generated HTML to your valtownGeocities instance
- Access your website at:
https://your-val-url.web.val.run/site?key=YOURKEYHERE
βββ backend/
β βββ index.ts # Main Hono application
βββ frontend/
β βββ index.html # Modern web interface
βββ main.tsx # Entry point (HTTP trigger)
βββ README.md # This file