Overview
Monolex’s Research Viewer displays multi-threaded ASURA research sessions, while GitTab manages 14 specialized Git visualization tools through dynamic imports. Frontmatter parsing extracts machine-readable metadata from human-authored documents, enabling automated processing and intelligent categorization.WikiResearchViewer: ASURA Display
Research Folder Detection
WikiResearchViewer identifies ASURA research sessions by analyzing folder structure:threadCount: 3 (unique letters A, B, C)chapterCount: 4 (all chapter-N files)hasSynthesis: true (FINAL-SYNTHESIS.md exists)status: “synthesized”
Thread Extraction Algorithm
/chapter-\d+-([A-Z])-/ captures thread letter from filenames.
Status Determination
- If
FINAL-SYNTHESIS.mdexists →synthesized - Else if not in
/wip/directory →archived - Otherwise →
in-progress
GitTab: 14 Viewer Management
Viewer Button Architecture
GitTab manages 14 specialized Git viewers through dynamic imports and tab reuse:| Button | Viewer Type | Module Path |
|---|---|---|
| git-dashboard-btn | git-dashboard | git/git-dashboard |
| git-commit-search-btn | git-commit-search | misc/git-commit-search-viewer |
| git-branch-diagram-btn | git-branch-diagram | misc/git-branch-diagram-viewer |
| git-blame-btn | git-blame | git/git-blame-viewer |
| git-diff-btn | git-diff | misc/git-diff-viewer |
| git-heatmap-btn | git-heatmap | git/git-heatmap-viewer |
| git-timeline-btn | git-operation-timeline | misc/git-operation-timeline-viewer |
| git-reflog-btn | git-reflog | git/git-reflog-viewer |
| git-stash-btn | git-stash | misc/git-stash-viewer |
| git-remote-btn | git-remote-status | misc/git-remote-status-viewer |
| git-ownership-btn | git-ownership | git/git-ownership-map |
| git-impact-btn | git-impact | git/git-impact-analyzer |
| git-merge-btn | git-merge-conflict | git/git-merge-conflict-viewer |
| git-hunk-btn | git-hunk | git/git-hunk-viewer |
Dynamic Import Pattern
- Lazy loading: viewers load only when opened
- Code splitting: reduces initial bundle size
- Object lookup: O(1) viewer resolution
Virtual Path Tab Reuse
Viewer Lifecycle
Batch API Performance
Frontmatter Parsing
YAML Metadata Extraction
Frontmatter parsing extracts machine-readable metadata from document headers:{ status: "ready", title: "Feature Implementation", ... }
Regex Pattern
^- Anchor to document start (frontmatter must be first)---\n- Opening delimiter([\s\S]*?)- Capture group (any character including newlines, non-greedy)\n---- Closing delimiter
Colon-in-Value Handling
Status Field with Default
status field, defaults to 'in-progress'.
Extended Document Types
Document Transformation Pipeline
Status Value Domains
| Viewer | Cardinality | Source | Values |
|---|---|---|---|
| OnIt | 2 | Path location | wip, graduated |
| Prepare | N | YAML frontmatter | ready, in-progress, blocked, etc. |
| Research | 3 | File existence + path | synthesized, in-progress, archived |
| Prove | 4 | Content + gap count | proven, refuted, partial, pending |
THE CENTER
Known Limitation: Multiline YAML Values
The frontmatter parser does not support multiline YAML values using Workaround: Use single-line values or comma-separated lists.Impact: Minor - most frontmatter uses simple key:value pairs.
| or > notation.