Public
ViBench-VT: fresh instance for test plan 2
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.

Notes

A single-user notes application for quickly creating, editing, and viewing text notes.

Password: my-notes-are-mine

Features

  • Password gate protects all note data
  • Create, edit, and delete plain-text notes
  • Search notes by title or body
  • Autosave when leaving the editor
  • Stable URLs for each note

File structure

index.ts              ← Hono backend (serves frontend + API routes)
frontend/
  index.html          ← HTML shell (loads Twind + React)
  index.tsx           ← React entrypoint (mounts <App />)
  components/
    App.tsx           ← Root component (routing + password gate)
    PasswordGate.tsx  ← Password gate
    NotesList.tsx     ← Notes list with search
    NoteEditor.tsx    ← Note editor with autosave
  utils/
    note.ts           ← Title/preview/timestamp helpers

API routes

  • GET /api/notes - list all notes
  • POST /api/notes - create a new note
  • GET /api/notes/:id - get a single note
  • PATCH /api/notes/:id - update a note body
  • DELETE /api/notes/:id - delete a note

All data routes require the X-Password header with the correct password.