How mathangi18/docmcp-knowledge works
Reguverse is an open medical-device regulatory knowledge base: its documented content spans EU MDR/IVDR, FDA, NMPA, and shared standards, with bilingual Markdown and JSON intended for browsing and DocMCP consumption. The tree also contains regulatory ingestion/maintenance scripts and separate community and learning Workers. Their visible workflow is HTTP request → authentication/routing → domain handlers → responses and, where shown, D1 or DingTalk. The supplied tree omits the documented content and site directories, so those capabilities are noted but not assigned invented paths; unsampled script behavior is not inferred.
Main entry points: src/index.ts Community API Router · src/index.ts Learning API Router · dingtalk.ts DingTalk Notifications · fetch_updates.py Update Fetching
Components 28
Regulatory Knowledge
- Regulatory Content
- Update Fetching
scripts/fetch_updates.py - Official Notices
scripts/official_notices.py - Tier Checks
scripts/tier2_checkers.py - Regulatory Pipeline
scripts/auto_regulatory_pipeline.py - Superseded Detection
scripts/detect_superseded_insights.py - FDA Full-Text Cleanup
scripts/clean_fda_fulltext.py - JSON to Markdown
scripts/json_to_markdown.py - EU Document Sync
scripts/sync_eu_documents.py - EU Full Text
scripts/eu_fulltext.py
Community Worker
- Community API Router
community-worker/src/index.ts - Community Authentication
community-worker/src/auth.ts - Feature Requests
community-worker/src/features.ts - Discussions
community-worker/src/discussions.ts - Priority Billboard
community-worker/src/billboard.ts - Comments
community-worker/src/comments.ts - DingTalk Notifications
community-worker/src/dingtalk.ts
Learning Worker
- Learning API Router
learn-worker/src/index.ts - Learning Authentication
learn-worker/src/auth.ts - Courses and Questions
learn-worker/src/courses.ts - Live Sessions
learn-worker/src/live.ts - Course Practice
learn-worker/src/practice.ts - Workshop Groups
learn-worker/src/workshop.ts
Worker Services
- Community D1
- Learning D1
Other components
- Maintainer
- Community User
- Learner or Host
Connections 32
- Maintainer → Update Fetching: maintains updates
README.md - Update Fetching → Official Notices: uses notices
scripts/fetch_updates.py - Update Fetching → Tier Checks: uses checks
scripts/fetch_updates.py - Regulatory Pipeline → Superseded Detection: checks supersession
scripts/auto_regulatory_pipeline.py - FDA Full-Text Cleanup → JSON to Markdown: uses conversion
scripts/clean_fda_fulltext.py - EU Document Sync → EU Full Text: uses full text
scripts/sync_eu_documents.py - EU Document Sync → JSON to Markdown: uses conversion
scripts/sync_eu_documents.py - Regulatory Content → JSON to Markdown: renders content
README.md - Community User → Community API Router: sends requests
- Community API Router → Community Authentication: verifies token
community-worker/src/index.ts - Community API Router → Feature Requests: routes features
community-worker/src/index.ts - Community API Router → Discussions: routes discussions
community-worker/src/index.ts - Community API Router → Priority Billboard: routes billboard
community-worker/src/index.ts - Community API Router → Comments: routes comments
community-worker/src/index.ts - Feature Requests → Community D1: reads and writes
community-worker/src/features.ts - Discussions → Community D1: reads and writes
community-worker/src/discussions.ts - Priority Billboard → Community D1: reads and writes
community-worker/src/billboard.ts - Comments → Community D1: reads and writes
community-worker/src/comments.ts - Feature Requests → DingTalk Notifications: notifies new requests
community-worker/src/features.ts - Discussions → DingTalk Notifications: notifies new discussions
community-worker/src/discussions.ts - Comments → DingTalk Notifications: notifies new comments
community-worker/src/comments.ts - DingTalk Notifications → Community D1: optional integration
- Learner or Host → Learning API Router: sends requests
- Learning API Router → Learning Authentication: verifies token
learn-worker/src/index.ts - Learning API Router → Courses and Questions: routes course requests
learn-worker/src/index.ts - Learning API Router → Live Sessions: routes live sessions
learn-worker/src/index.ts - Learning API Router → Course Practice: routes practice
learn-worker/src/index.ts - Learning API Router → Workshop Groups: routes workshop
learn-worker/src/index.ts - Courses and Questions → Learning D1: reads data
- Live Sessions → Learning D1: reads and writes
- Course Practice → Learning D1: reads and writes
- Workshop Groups → Learning D1: reads and writes