How markmental/eternalibre-notes works
EternaLibre Notes is a self-hosted, SSR Markdown notebook. Users authenticate with TOTP, then browse, search, create, edit, move, and export notes; notes and virtual-folder membership are persisted as Markdown files. The graph includes the documented theme, preview, and browser interaction capabilities. Source excerpts establish the main rendering and authentication links, while some route handlers and note operations are unsampled, so their links are documented or left unverified rather than inferred from co-location.
Main entry points: routes.rs HTTP routes · pages.rs SSR pages and exports · main.rs Server startup · markdown.rs Markdown rendering
Components 15
Startup and HTTP
- Server startup
src/main.rs - HTTP routes
src/routes.rs
Authentication
- Terminal enrollment
src/setup.rs - TOTP and sessions
src/auth.rs - TOTP secret file
Notes and folders
- Note and folder operations
src/notes.rs - Markdown note files
Rendering and themes
- SSR pages and exports
src/pages.rs - Markdown rendering
src/markdown.rs - Code highlighting
src/syntax.rs - Theme catalog
src/themes.rs
Browser interface
- Menus and interactions
static/app.js
Other components
- Self-hosting user
- Notes user
- Web browser
Connections 17
- Self-hosting user → Server startup: starts server
README.md - Server startup → Terminal enrollment: runs enrollment
README.md - Terminal enrollment → TOTP and sessions: provisions TOTP
src/setup.rs - TOTP and sessions → TOTP secret file: reads and writes
README.md - Server startup → HTTP routes: starts HTTP service
- Notes user → Web browser: uses notes
README.md - Web browser → HTTP routes: sends requests
src/routes.rs - HTTP routes → TOTP and sessions: checks sessions
src/routes.rs - HTTP routes → Note and folder operations: handles note actions
src/routes.rs - Note and folder operations → Markdown note files: persists notes
README.md - HTTP routes → SSR pages and exports: renders responses
src/pages.rs - SSR pages and exports → Markdown rendering: renders note content
src/pages.rs - Markdown rendering → Code highlighting: highlights code
src/markdown.rs - Markdown rendering → Theme catalog: uses theme
src/markdown.rs - SSR pages and exports → Theme catalog: renders themed pages
src/pages.rs - SSR pages and exports → Menus and interactions: loads interactions
- Menus and interactions → HTTP routes: posts preview and moves
static/app.js