How azaken1248/markdownviewer works
AzaDocs is a self-hosted Markdown library whose files remain ordinary files on disk, with SQLite holding application metadata. The main workflow is browsing or searching documents, opening a real document address, and editing it in place; adjacent capabilities include folder organization, uploads, accounts, sharing, saved links, and rich rendering/export. The README documents these product features, while the server excerpt and SOURCE INDEX expose selected wiring. Several client and route implementations were not sampled, so their internal call relationships are not asserted.
Main entry points: app.js Library reader · docs.js Document routes · server.js Express application · db.js Application metadata
Components 19
Browser library
- Library reader
public/js/app.js - Full-text search
public/js/app/search.js - In-place editing
public/js/app/page-edit.js
Document management
- Document routes
lib/routes/docs.js - Folder routes
lib/routes/folders.js - Document uploads
lib/routes/upload.js - Markdown files
Identity and sharing
- Account routes
lib/routes/auth.js - Authentication and roles
lib/auth.js - Application metadata
lib/db.js - Share routes
lib/routes/shares.js - Saved links
lib/links.js - Link previews
lib/link-preview.js
Rich content
- Markdown rendering
public/js/markdown-core.js - Flowchart builder
public/js/diagram-editor.js - Notebook execution
public/js/notebook-runtime.js - Document export
public/js/export.js
Server runtime
- Express application
server.js
Other components
- Library user
Connections 22
- Library user → Library reader: browses
README.md - Library reader → Document routes: opens documents
- Library reader → Full-text search: searches library
README.md - Full-text search → Document routes: requests search
- Library reader → In-place editing: edits in place
README.md - In-place editing → Document routes: writes changes
- Document routes → Markdown files: reads and writes
lib/routes/docs.js - Folder routes → Markdown files: moves directories
lib/routes/folders.js - Document uploads → Markdown files: stores documents
- Account routes → Authentication and roles: calls authentication
lib/routes/auth.js - Authentication and roles → Application metadata: queries accounts
lib/auth.js - Share routes → Application metadata: stores share metadata
- Saved links → Application metadata: stores link metadata
lib/links.js - Saved links → Link previews: fetches previews
lib/links.js - Library reader → Markdown rendering: renders content
README.md - Library reader → Flowchart builder: edits diagrams
README.md - Library reader → Notebook execution: runs notebook code
README.md - Library reader → Document export: exports documents
- Express application → Account routes: mounts routes
server.js - Express application → Document routes: mounts routes
server.js - Express application → Folder routes: mounts routes
server.js - Express application → Document uploads: mounts routes
server.js