How 1nsharma/urlmind works
URLMIND accepts a public URL and returns an evidence-labelled architecture intelligence report, with interactive diagrams, sitemap, technology audit, workflow, explainer, and grounded Q&A. Its principal path runs from URL entry through server analysis, URL classification and public-source extraction, then AI report generation and presentation. Comparison, saved reports, exports, and URL-prefix routing are additional product branches. Some UI and API wiring is supported only by the source index or README; those uncertain links are omitted or shown dashed.
Main entry points: IntelligenceWorkspace.tsx Intelligence workspace · analyzer.ts Report pipeline · page.tsx App coordinator · crawler.ts Public URL extractor
Components 30
URL Entry
- URL input
components/UrlAnalyzerLanding.tsx - App coordinator
app/page.tsx - URL prefix routing
app/[...url]/page.tsx - Analyze endpoint
app/api/analyze/route.ts - Compare endpoint
app/api/compare/route.ts - Chat endpoint
app/api/chat/route.ts
Analysis Engine
- Report pipeline
lib/analyzer.ts - URL classifier
lib/classifier.ts - Public URL extractor
lib/crawler.ts - Social metadata adapter
lib/adapters/social.ts - Report cache
lib/cache.ts - Gemini analysis
lib/gemini.ts
Intelligence Views
- Intelligence workspace
components/IntelligenceWorkspace.tsx - Architecture map
components/ArchitectureMap.tsx - Mermaid diagram
components/MermaidDiagram.tsx - Sitemap view
components/SitemapView.tsx - Technology audit
components/TechStackView.tsx - Workflow view
components/WorkflowView.tsx - Narrated explainer
components/ExplainerPlayer.tsx - Grounded Q&A
components/AskUrlChat.tsx - Diagram export
components/ExportView.tsx
Additional Capabilities
- Architecture comparison
components/CompareView.tsx - Graph comparison logic
lib/graphLayout.ts - Saved maps
components/SavedMapsView.tsx - CSV stack import
lib/csvImporter.ts - Showcase presets
lib/showcasePresets.ts
Other components
- URL analyst
- Public URL sources
- Jina Reader
- Platform oEmbed
Connections 33
- URL analyst → URL input: submits URL
README.md - URL input → App coordinator: requests analysis
app/page.tsx - App coordinator → Analyze endpoint: posts URL
app/page.tsx - URL prefix routing → URL classifier: validates URL
app/[...url]/page.tsx - Analyze endpoint → Report pipeline: runs pipeline
app/api/analyze/route.ts - Compare endpoint → Report pipeline: analyzes URLs
app/api/compare/route.ts - Compare endpoint → Graph comparison logic: computes diff
app/api/compare/route.ts - Compare endpoint → Gemini analysis: requests synthesis
app/api/compare/route.ts - Report pipeline → URL classifier: validates and classifies
lib/analyzer.ts - Report pipeline → Public URL extractor: extracts evidence
lib/analyzer.ts - Report pipeline → Report cache: reads and writes
lib/analyzer.ts - Report pipeline → Gemini analysis: generates report
lib/analyzer.ts - Report pipeline → Showcase presets: loads preset
lib/analyzer.ts - Public URL extractor → URL classifier: classifies and fingerprints
lib/crawler.ts - Public URL extractor → Social metadata adapter: extracts social evidence
lib/crawler.ts - Public URL extractor → Public URL sources: fetches public content
README.md - Public URL extractor → Jina Reader: falls back to reader
lib/crawler.ts - Social metadata adapter → Platform oEmbed: requests metadata
README.md - App coordinator → Intelligence workspace: opens report
app/page.tsx - Intelligence workspace → Architecture map: renders map
components/IntelligenceWorkspace.tsx - Intelligence workspace → Sitemap view: renders sitemap
components/IntelligenceWorkspace.tsx - Intelligence workspace → Technology audit: renders audit
components/IntelligenceWorkspace.tsx - Intelligence workspace → Workflow view: renders workflow
components/IntelligenceWorkspace.tsx - Intelligence workspace → Narrated explainer: renders explainer
components/IntelligenceWorkspace.tsx - Intelligence workspace → Grounded Q&A: renders Q&A
components/IntelligenceWorkspace.tsx - Architecture map → Mermaid diagram: renders diagram
components/ArchitectureMap.tsx - Grounded Q&A → Chat endpoint: sends questions
- Chat endpoint → Gemini analysis: answers questions
app/api/chat/route.ts - Architecture comparison → Compare endpoint: requests comparison
- App coordinator → Architecture comparison: opens comparison
app/page.tsx - App coordinator → Saved maps: opens saved maps
app/page.tsx - URL input → CSV stack import: imports stack CSV
components/UrlAnalyzerLanding.tsx - Intelligence workspace → Diagram export: offers export view
components/IntelligenceWorkspace.tsx