A self-updating web application with visual editing, authentication, and version control. Build and edit your website directly in the browser - no code required.
Click the remix button in Val.town to create your own copy of this project.
In your Val.town settings, add these environment variables:
ADMIN_EMAIL
- Your email address (required for authentication)APP_NAMESPACE
- Optional namespace for storage (defaults to "default")The val is already configured as an HTTP trigger. Just save and it's live at your Val.town URL.
Visit your Val.town URL (e.g., https://yourusername-yourval.web.val.run
) - you should see the Hyperclay starter template in read-only mode.
/auth/edit
(e.g., https://yourusername-yourval.web.val.run/auth/edit
)After authentication, return to your main URL. You should now see:
/versions
Your public URL is now ready to share! Others will see the read-only version while you can edit by authenticating.
Hyperclay is a platform for hosting and editing HTML applications. It provides code editing capabilities, multi-tenant support, and instant deployment - think of it as "Google Docs meets web hosting." Users can edit content directly in the browser without touching code.
This Val.town app provides a single-tenant implementation of Hyperclay so anyone can experience an HTML app with 0 effort:
<!-- Text editing --> <div persist edit-mode-input> Click to edit this text </div> <!-- Rich text editing --> <div persist edit-mode-rich> <h2>Format me</h2> <p>Bold, italic, lists, etc.</p> </div> <!-- Image editing --> <img persist edit-mode-image src="photo.jpg" />
Here are some ideas to get you started:
Create your portfolio or personal site. Edit your bio, update projects, change styling - all from your browser.
Build product landing pages that you can update instantly. Change headlines, update pricing, test different CTAs.
Maintain docs that stay current. Fix typos immediately, add new sections on the fly.
Write and publish posts directly on your site. No CMS needed.
Build and iterate on designs in real-time. Perfect for demos and user testing.
Val.town is a cloud platform for running JavaScript/TypeScript code instantly.
https://[username]-[valname].web.val.run
Val.town provides built-in blob storage:
ADMIN_EMAIL
environment variable matches exactlysession
)DEBUG=true
in environment variablessession
and isAdminOfCurrentResource=true
/save/app
are successful/auth/edit
ADMIN_EMAIL
environment variable is set correctlyOpen source - use freely on Val.town.
Need help? Check out DEV_GUIDE.md for development documentation or valtown.md for Val.town platform details.