Skip to content

Markdown document viewer — product requirements

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.


AudienceNeed
Product / businessRead specs and operating docs on tablet/phone
EngineersArchitecture docs with Mermaid, code blocks, internal links
Consultants / foundersLocal project libraries, investor packs, playbooks
LynCareOS (internal)Hosted docs portal at docs.lyncareos.com

4. Surfaces (one engine, three deployments)

Section titled “4. Surfaces (one engine, three deployments)”
SurfaceAuthContent source
Web portalCloudflare Access + GoogleHosted library/*.md (LynCareOS)
iOS / Android appApp Store / Play purchaseLocal folders, zip import, iCloud/Drive (v2)
Optional self-hostedCustomer Access / SSOCustomer’s static bundle

IDRequirementPriority
REQ-MDV-01Render GitHub-Flavoured Markdown: tables, fenced code, blockquotes, task listsP0
REQ-MDV-02Render Mermaid diagrams; tap to expand; pinch-zoom on mobileP0
REQ-MDV-03Calm Care–grade typography: warm neutrals, Plus Jakarta Sans + Inter, comfortable measureP0
REQ-MDV-04Auto-generated TOC from h2/h3; sticky mini-TOC; scroll spyP0
REQ-MDV-05Syntax-highlighted code blocks with copy buttonP1
REQ-MDV-06Dark mode parityP1
REQ-MDV-07Remember scroll position per documentP1
REQ-MDV-08Full-text search across libraryP2
REQ-MDV-09Print / export PDF stylingP2
REQ-MDV-10prefers-reduced-motion respectedP1
IDRequirementPriority
REQ-MDV-11Project = folder of related .md files + manifestP0
REQ-MDV-12Sidebar library tree; recent + bookmarksP0
REQ-MDV-13Resolve relative .md links within projectP0
REQ-MDV-14Whitelist / manifest prevents path traversalP0
REQ-MDV-15Parse YAML front matter (title, version, updated)P1
REQ-MDV-16Import zip archive as projectP1
REQ-MDV-17Obsidian vault import (wikilinks optional v2)P2
REQ-MDV-18Git clone / pull (read-only)P3

5.3 Hosted portal (REQ-MDV-19–22) — LynCareOS today

Section titled “5.3 Hosted portal (REQ-MDV-19–22) — LynCareOS today”
IDRequirementPriority
REQ-MDV-19spec-viewer.html loads markdown via same-origin fetchDone (portal)
REQ-MDV-20doc-manifest.json whitelistDone (portal)
REQ-MDV-21Cloudflare Pages deploy scriptDone (portal)
REQ-MDV-22Cloudflare Access + Google email allowlistDone (ops guide)

5.4 Native app (REQ-MDV-23–28) — store product

Section titled “5.4 Native app (REQ-MDV-23–28) — store product”
IDRequirementPriority
REQ-MDV-23Capacitor shell sharing web rendererP1
REQ-MDV-24Open local folder (platform file picker)P1
REQ-MDV-25Offline-first; no account required for local filesP0
REQ-MDV-26App Store + Google Play distributionP1
REQ-MDV-27One-time purchase or modest subscription (TBD)P1
REQ-MDV-28Separate consumer brand from LynCareOS clinical productP1

IDRequirement
REQ-MDV-NFR-01Open 2,000-line spec < 3s parse on mid-range phone
REQ-MDV-NFR-02Mermaid lazy-render below fold
REQ-MDV-NFR-03WCAG AA contrast for prose and UI chrome
REQ-MDV-NFR-04No telemetry without explicit opt-in (store app)
REQ-MDV-NFR-05Shared @lyncare/doc-viewer package — single parser/renderer

  1. Phase A (current): LynCareOS portal — viewer, build, Pages, Access
  2. Phase B: Extract shared viewer package; improve mobile prose + Mermaid zoom
  3. Phase C: Capacitor app — local folder import
  4. 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

MetricTarget
LynCareOS 01-ARCHITECTURE.md readable on iPhoneMermaid renders; TOC usable
Portal deployOwner can open docs.lyncareos.com with Google
Store v14.5+ rating on reading UX (qualitative beta)