How udyalakvivek/notepad works
Personal Paste is a no-login Django notepad: a visitor creates a random-link note, edits it in the browser with autosave and polling, and can optionally protect it with a password, restore history, and manage one attachment. The graph follows routing into view handlers and their model-backed operations, with the browser editor as the API client. README documents several editor capabilities and attachment expiry whose full implementations were not sampled; those links are shown only where the excerpts or README support them.
Main entry points: urls.py URL routing · models.py Notes · note.js Editor client · views.py Content autosave
Components 15
Web interface
- Editor client
myapp/static/myapp/note.js - Editor page
myapp/templates/myapp/note.html - Themes and styles
myapp/static/myapp/note.css
Note application
- URL routing
myapp/urls.py - Note handlers
myapp/views.py - Link creation
myapp/views.py - Content autosave
myapp/views.py - Password access
myapp/views.py - Version history
myapp/views.py - Attachment management
myapp/views.py
Persistence
- Notes
myapp/models.py - Note history
myapp/models.py - Uploaded files
myapp/models.py
Other components
- Visitor
- Configured database
Connections 24
- Visitor → URL routing: opens routes
README.md - URL routing → Link creation: routes root
myapp/urls.py - URL routing → Note handlers: routes note page
myapp/urls.py - URL routing → Content autosave: routes content API
myapp/urls.py - URL routing → Password access: routes access API
myapp/urls.py - URL routing → Version history: routes history API
myapp/urls.py - URL routing → Attachment management: routes file APIs
myapp/urls.py - Link creation → Notes: creates note
myapp/views.py - Note handlers → Notes: loads note
myapp/views.py - Note handlers → Editor page: renders editor
README.md - Editor page → Editor client: loads client
README.md - Editor page → Themes and styles: uses styles
README.md - Editor client → Content autosave: saves and polls
README.md - Content autosave → Notes: reads and updates
myapp/views.py - Content autosave → Version history: snapshots changes
myapp/views.py - Version history → Note history: reads and writes
myapp/views.py - Editor client → Password access: sets and unlocks
myapp/static/myapp/note.js - Password access → Notes: reads and updates
myapp/views.py - Editor client → Version history: loads and restores
README.md - Editor client → Attachment management: uploads and deletes
myapp/static/myapp/note.js - Attachment management → Notes: updates metadata
myapp/views.py - Attachment management → Uploaded files: stores attachment
myapp/models.py - Notes → Configured database: persists records
- Note history → Configured database: persists versions