Version: 1.0
Last Updated: 2026-06-08
Status: Requirements — future product (shared engine with LynCareOS docs portal)
Cross-references: knowledge/README.md · 03-DESIGN-SYSTEM.md
LynCareOS docs portal is dogfood for this product. The rendering core (parser, prose styles, Mermaid, TOC, link resolver) should be extracted into a shared package when the portal stabilises.
Markdown viewers on iOS and Android are poor at:
- Long-document navigation (TOC, scroll memory)
- Mermaid and diagram rendering
- Table readability on small screens
- Cross-document linking (documentation libraries, not single files)
- Typography and calm reading UX
Families and professionals increasingly carry specifications, playbooks, and architecture docs as Markdown. No store app treats Markdown as a first-class documentation library.
A beautiful documentation library for Markdown — offline-capable, diagram-aware, designed for discovery and deep reading.
Not in scope v1: collaborative editing, WYSIWYG authoring, Notion-style databases.
| Audience | Need |
|---|
| Product / business | Read specs and operating docs on tablet/phone |
| Engineers | Architecture docs with Mermaid, code blocks, internal links |
| Consultants / founders | Local project libraries, investor packs, playbooks |
| LynCareOS (internal) | Hosted docs portal at docs.lyncareos.com |
| Surface | Auth | Content source |
|---|
| Web portal | Cloudflare Access + Google | Hosted library/*.md (LynCareOS) |
| iOS / Android app | App Store / Play purchase | Local folders, zip import, iCloud/Drive (v2) |
| Optional self-hosted | Customer Access / SSO | Customer’s static bundle |
| ID | Requirement | Priority |
|---|
| REQ-MDV-01 | Render GitHub-Flavoured Markdown: tables, fenced code, blockquotes, task lists | P0 |
| REQ-MDV-02 | Render Mermaid diagrams; tap to expand; pinch-zoom on mobile | P0 |
| REQ-MDV-03 | Calm Care–grade typography: warm neutrals, Plus Jakarta Sans + Inter, comfortable measure | P0 |
| REQ-MDV-04 | Auto-generated TOC from h2/h3; sticky mini-TOC; scroll spy | P0 |
| REQ-MDV-05 | Syntax-highlighted code blocks with copy button | P1 |
| REQ-MDV-06 | Dark mode parity | P1 |
| REQ-MDV-07 | Remember scroll position per document | P1 |
| REQ-MDV-08 | Full-text search across library | P2 |
| REQ-MDV-09 | Print / export PDF styling | P2 |
| REQ-MDV-10 | prefers-reduced-motion respected | P1 |
| ID | Requirement | Priority |
|---|
| REQ-MDV-11 | Project = folder of related .md files + manifest | P0 |
| REQ-MDV-12 | Sidebar library tree; recent + bookmarks | P0 |
| REQ-MDV-13 | Resolve relative .md links within project | P0 |
| REQ-MDV-14 | Whitelist / manifest prevents path traversal | P0 |
| REQ-MDV-15 | Parse YAML front matter (title, version, updated) | P1 |
| REQ-MDV-16 | Import zip archive as project | P1 |
| REQ-MDV-17 | Obsidian vault import (wikilinks optional v2) | P2 |
| REQ-MDV-18 | Git clone / pull (read-only) | P3 |
| ID | Requirement | Priority |
|---|
| REQ-MDV-19 | spec-viewer.html loads markdown via same-origin fetch | Done (portal) |
| REQ-MDV-20 | doc-manifest.json whitelist | Done (portal) |
| REQ-MDV-21 | Cloudflare Pages deploy script | Done (portal) |
| REQ-MDV-22 | Cloudflare Access + Google email allowlist | Done (ops guide) |
| ID | Requirement | Priority |
|---|
| REQ-MDV-23 | Capacitor shell sharing web renderer | P1 |
| REQ-MDV-24 | Open local folder (platform file picker) | P1 |
| REQ-MDV-25 | Offline-first; no account required for local files | P0 |
| REQ-MDV-26 | App Store + Google Play distribution | P1 |
| REQ-MDV-27 | One-time purchase or modest subscription (TBD) | P1 |
| REQ-MDV-28 | Separate consumer brand from LynCareOS clinical product | P1 |
| ID | Requirement |
|---|
| REQ-MDV-NFR-01 | Open 2,000-line spec < 3s parse on mid-range phone |
| REQ-MDV-NFR-02 | Mermaid lazy-render below fold |
| REQ-MDV-NFR-03 | WCAG AA contrast for prose and UI chrome |
| REQ-MDV-NFR-04 | No telemetry without explicit opt-in (store app) |
| REQ-MDV-NFR-05 | Shared @lyncare/doc-viewer package — single parser/renderer |
- Phase A (current): LynCareOS portal — viewer, build, Pages, Access
- Phase B: Extract shared viewer package; improve mobile prose + Mermaid zoom
- Phase C: Capacitor app — local folder import
- Phase D: Store listing, monetisation, consumer brand
- Markdown editing
- Real-time collaboration
- Cloud sync account (optional v2)
- LynCareOS PHI or production API access from viewer app
| Metric | Target |
|---|
LynCareOS 01-ARCHITECTURE.md readable on iPhone | Mermaid renders; TOC usable |
| Portal deploy | Owner can open docs.lyncareos.com with Google |
| Store v1 | 4.5+ rating on reading UX (qualitative beta) |