How nikunjbhutada184-sketch/msme-analyzer works
MSME Analyzer turns a business idea into Maharashtra district-level competition results. A user submits a query in the React dashboard; the FastAPI endpoint delegates matching to a TF-IDF matcher, which aggregates matching registrations by district and returns summaries and descriptions for display. A separate preprocessing step extracts business descriptions from CSV data and caches them as Parquet for the matcher. The repository also contains a Leaflet map component, but the sampled dashboard does not import it, so its integration is not shown. Edges reflect sampled calls or documented data handling.
Main entry points: matcher.py MSME matcher · Dashboard.tsx Search dashboard · main.py Analysis API · data_processor.py Dataset preprocessing
Components 12
Analysis interface
- Search dashboard
frontend/src/components/Dashboard.tsx - App shell
frontend/src/App.tsx - Competition map
frontend/src/components/MapChart.tsx
API layer
- Analysis API
backend/main.py
Matching and analysis
- MSME matcher
backend/matcher.py - TF-IDF matching
backend/matcher.py - District aggregation
backend/matcher.py
Data preparation
- Dataset preprocessing
backend/data_processor.py - Processed data cache
backend/matcher.py
Other components
- Business user
- MSME CSV dataset
- CARTO map tiles
Connections 12
- Business user → Search dashboard: enters query
frontend/src/components/Dashboard.tsx - App shell → Search dashboard: renders
frontend/src/App.tsx - Search dashboard → Analysis API: requests analysis
frontend/src/components/Dashboard.tsx - Analysis API → MSME matcher: calls match
backend/main.py - Analysis API → MSME matcher: loads data
backend/main.py - MSME matcher → TF-IDF matching: computes similarity
backend/matcher.py - MSME matcher → District aggregation: aggregates matches
backend/matcher.py - Search dashboard → Analysis API: receives results
frontend/src/components/Dashboard.tsx - MSME CSV dataset → Dataset preprocessing: provides source data
README.md - Dataset preprocessing → Processed data cache: writes cache
backend/data_processor.py - Processed data cache → MSME matcher: loads cached data
backend/matcher.py - Competition map → CARTO map tiles: loads tiles
frontend/src/components/MapChart.tsx