How grammyjs/link-checker works
Main Components Identification
The system should be represented with these key components:
a) Input Sources
• Website Documentation (Markdown files)
• TSDoc/JSDoc Documentation
• GitHub Repository Content
b) Core Processing Components
• Link Parser
• Link Validator
• Issue Detector
• Auto-fixer
• GitHub API Integration
c) Output Handlers
• Issue Reporter
• Fix Applier
Component Relationships
Input Sources → Link Parser → Link Validator → Issue Detector → Output Handlers
• ↕
• GitHub API Integration
Detailed Component Breakdown
a) Input Sources (Blue):
• Markdown Files Processor (website.ts)
• TSDoc Processor (tsdoc.ts)
• File System Interface (deps/std/*)
b) Core Processing (Green):
• Link Parser
• Markdown Parser (deps/markdown-it/*)
• DOM Parser (deps/deno_dom.ts)
• Link Validator (group_links.ts)
• URL Validator
• Anchor Validator
• Extension Validator
c) GitHub Integration (Purple):
• Octokit App Integration (deps/octokit_app.ts)
• Content API Handler
• Rate Limiting Handler
d) Issue Management (Orange):
• Issue Detector (issues.ts)
• Auto-fixer
• Cache Manager (Debug Mode)
e) CLI Interface (Gray):
• Website CLI (website_cli.ts)
• TSDoc CLI (tsdoc_cli.ts)
Additional Elements
Supporting elements:
• Error handling flows
• Configuration options from CLI
• Environment variable dependencies
• File system interactions