How ericjy/markside works
Markside is a Chrome workspace for local Markdown: users open a file, navigate nearby files, read rendered content, review or edit it, and save changes. It also supports document and localhost reviews, readability checks, and link or hosted snapshots. The graph preserves these documented capabilities; relationships among unsampled UI and feature modules are omitted where the excerpts do not show their wiring.
Main entry points: content-app.tsx Content workspace · localhost-review.ts Localhost review · use-content-snapshots.ts Snapshot sharing · hosted-snapshot.ts Hosted snapshot
Components 29
File Workspace
- Content workspace
components/content-app.tsx - File loading
hooks/use-content-file-loading.ts - File navigation
components/file-tree.tsx - Markdown rendering
lib/markdown.ts - Frontmatter parsing
lib/frontmatter.ts - Source editor
components/raw-editor.tsx - Save and reload
hooks/use-content-save.ts - PDF export
lib/pdf-export.ts
Reviews
- Document review
hooks/use-content-review.ts - Review rules and anchors
lib/review.ts - Review highlighting
lib/review-dom.ts - Review panel
components/review-panel.tsx - Localhost review
lib/localhost-review.ts - Localhost review panel
components/localhost-review-panel.tsx - Review persistence
lib/review-index-storage.ts - Review index
lib/review-index.ts - Readability check
lib/readability.ts - Readability service
lib/readability-service.ts
Sharing and Export
- Snapshot sharing
hooks/use-content-snapshots.ts - Link snapshot
lib/link-snapshot.ts - Hosted snapshot
lib/hosted-snapshot.ts
Extension Features
- Extension background
background.ts - Extension popup
popup.tsx - Preferences
options.tsx
Other components
- Reader / editor
- Chrome browser
- Local Markdown files
- Snapshot recipient
- Coding agent
Connections 34
- Reader / editor → Chrome browser: opens file
- Chrome browser → Content workspace: loads workspace
- Content workspace → File loading: loads content
- File loading → Local Markdown files: reads file
- Content workspace → File navigation: offers navigation
- Content workspace → Markdown rendering: renders preview
- Markdown rendering → Frontmatter parsing: parses metadata
lib/readability.ts - Content workspace → Source editor: offers source editing
- Content workspace → Save and reload: saves edits
- Save and reload → Local Markdown files: writes file
- Content workspace → PDF export: exports PDF
- Reader / editor → Document review: adds review comments
- Document review → Review rules and anchors: resolves anchors
- Review highlighting → Review rules and anchors: uses anchor rules
lib/review-dom.ts - Content workspace → Review panel: presents review
- Reader / editor → Localhost review panel: reviews local app
- Localhost review panel → Localhost review: manages annotations
- Localhost review → Review rules and anchors: uses shared anchors
lib/localhost-review.ts - Localhost review → Review persistence: persists review
- Review persistence → Review index: updates index
lib/review-index-storage.ts - Reader / editor → Readability check: checks prose
- Readability check → Frontmatter parsing: parses document
lib/readability.ts - Readability service → Extension background: sends check request
lib/readability-service.ts - Extension background → Readability check: processes request
- Reader / editor → Snapshot sharing: shares snapshot
- Snapshot sharing → Link snapshot: creates link snapshot
- Snapshot sharing → Hosted snapshot: creates hosted snapshot
- Link snapshot → Snapshot recipient: opens encoded content
- Hosted snapshot → Snapshot recipient: opens encrypted copy
- Hosted snapshot → Chrome browser: uploads ciphertext
- Reader / editor → Extension popup: opens extension menu
- Extension popup → Review persistence: lists review index
- Reader / editor → Preferences: sets preferences
- Coding agent → Extension background: requests file opening