Public
Like
NoteByPGC
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.
A beautiful note-sharing website with 3D graphics and smooth UI animations. Only the admin can create notes, but anyone can view shared notes with the proper links.
- π Admin-Only Creation: Only the admin can create new notes using a protected password
- ποΈ Admin-Only Deletion: Only the admin can delete notes using the same protected password
- π Public Viewing: Anyone can view notes if they have the link
- π Password Protection: Optional password protection for private notes
- π¨ 3D Graphics: Smooth 3D animations and visual effects
- π± Responsive Design: Works on all devices
- β¨ Smooth UI: Beautiful animations and transitions
- π Unique Links: Each note gets its own shareable URL
- Creating Notes: Only the admin (with password "Random@2001") can create new notes
- Sharing Notes: Each note gets a unique URL that can be shared with anyone
- Viewing Notes: Anyone with the link can view public notes
- Password Protection: Notes can optionally be password-protected for extra security
βββ backend/
β βββ index.ts # Main Hono server
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ routes/
β βββ notes.ts # Note API endpoints
βββ frontend/
β βββ index.html # Main HTML template
β βββ index.tsx # React app entry point
β βββ components/
β β βββ App.tsx # Main app component
β β βββ Scene3D.tsx # 3D graphics component
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
POST /api/notes- Create a new note (admin only, requires admin password)GET /api/notes/:id- Get a note (public access)POST /api/notes/:id/verify- Verify password for protected note (public access)POST /api/notes/:id/delete- Delete a note (admin only, requires admin password)
- Backend: Hono + SQLite
- Frontend: React + Three.js for 3D graphics
- Styling: TailwindCSS + custom CSS
- Database: SQLite for note storage
- Authentication: Simple password-based admin authentication