How cjinhuo/text-search-engine works
Component Relationships
• Input text and search target → Core Engine
• Core Engine → Search Results (ranges)
• Search Results → React Components
• Build System → Different Distribution Formats
Detailed Component Breakdown
Core Engine:
┌─ Core Search Engine ─────────────────┐
• ┌─────────────┐ ┌──────────────┐ │
• Pure Search │ → │ Boundary │ │
• ┘ └──────────────┘ │
• ┌─────────────┐ ┌──────────────┐ │
• Search API │ → │ Utils │ │
• ┘ └──────────────┘ │
• ┘
React Integration:
┌─ React Components ──────────────────┐
• ┌─────────────────┐ ┌─────────────┐│
• HighlightWithTarget│ │HighlightWithRanges││
• ┘ └─────────────┘│
• ┘
Integration Points
External integration possibilities:
• Chrome Extension usage
• Web Applications
• Node.js Applications
Data Flow
• Input text flow
• Search pattern flow
• Result ranges flow
• Rendering flow