hyperclay-test-app
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.
In your Val.town environment, set:
ADMIN_EMAIL
- Your email address (required)APP_NAMESPACE
- Optional namespace for multiple deployments (defaults to "default")
The index.ts
file is already configured as an HTTP trigger. Just save and it's live!
- Visit your Val.town URL - You should see the Hyperclay starter template
- Visit
/auth/edit
- Enter your admin email - Check your email - Click the magic link
- Return to main page - You should now see edit controls
Once authenticated:
- Content with
edit-mode-contenteditable
becomes editable - Elements with
edit-mode-show
become visible - Auto-save works with Ctrl+S
- Visit
/versions
to see change history
- Public users see read-only version
- Only you (admin email) can edit
- Changes are immediately visible to all users
That's it! You now have a fully functional Hyperclay-compatible self-updating page.
- Customize the
DEFAULT_HTML
template - Add your own content with Hyperclay attributes
- Share your public URL with others
- Use
/auth/view
to switch back to read-only mode
Get started with a template: