How cfradar/sheetfill works
Flipkart T-Shirt Listing Automation turns a draft listing workbook and product JSON into a completed .xlsm, while preserving macros and other package members. In the main workflow, a user uploads a sheet, the app detects designs, accepts or matches product JSON, previews generated rows, and downloads a rebuilt workbook. A separate keyword-agent capability plans marketplace/social research and synthesizes results with an LLM. The map also includes the reusable workbook-filling core and application state. Some subsystem links rely on README or source-index references; unsampled details are not assumed.
Main entry points: sheets.py Sheets API · service.py Research orchestrator · rows.py Row generation · writer.py Workbook writer
Components 27
Web workspace
- Workspace UI
frontend/src/App.tsx - Sheet upload
frontend/src/components/UploadStep.tsx - Design editor
frontend/src/workspace/Workspace.tsx - Keyword-agent UI
frontend/src/features/keyword-agent/components/KeywordAgentPage.tsx
Sheet workflow
- Sheets API
app/api/sheets.py - Sheet reader
app/services/sheet_reader.py - Design detection
app/services/design_detector.py - Bulk matcher
app/services/bulk_matcher.py - Workspace store
app/services/design_store.py - Design builder
app/services/builder.py - Workbook writer
app/services/writer.py
Workbook core
- Product and row models
src/flipkart_filler/models.py - JSON loader
src/flipkart_filler/json_loader.py - Value mapper
src/flipkart_filler/mapper.py - Row generation
src/flipkart_filler/rows.py - Text builders
src/flipkart_filler/text_builders.py - XLSX patcher
src/flipkart_filler/xlsx_patch.py
Keyword research
- Keyword API
app/keyword_agent/router.py - Research orchestrator
app/keyword_agent/service.py - Query planner
app/keyword_agent/agents/planner.py - Marketplace scraper
app/keyword_agent/agents/marketplace_scraper.py - Social scraper
app/keyword_agent/agents/social_scraper.py - Results analyst
app/keyword_agent/agents/analyst.py
Platform services
- MongoDB
Other components
- User
- OpenRouter
- Market and social sites
Connections 34
- User → Sheet upload: uploads sheet
- Sheet upload → Workspace UI: opens workspace
frontend/src/App.tsx - Workspace UI → Design editor: shows session
frontend/src/App.tsx - Workspace UI → Sheets API: HTTP requests
- Sheets API → Sheet reader: reads workbook
app/api/sheets.py - Sheets API → Design detection: detects designs
app/api/sheets.py - Design detection → Sheet reader: reads rows
app/services/design_detector.py - Sheets API → Workspace store: loads session
app/api/sheets.py - Sheets API → Bulk matcher: matches JSON
app/api/sheets.py - Sheets API → Design builder: builds preview rows
app/api/sheets.py - Sheets API → Workbook writer: rebuilds workbook
app/api/sheets.py - Design builder → Value mapper: maps values
app/services/builder.py - Design builder → Row generation: generates rows
app/services/builder.py - Row generation → Text builders: builds descriptions
src/flipkart_filler/rows.py - Row generation → Value mapper: uses mappings
src/flipkart_filler/rows.py - Workbook writer → XLSX patcher: patches workbook
app/services/writer.py - Workbook writer → Row generation: writes generated rows
app/services/writer.py - JSON loader → Product and row models: parses product
src/flipkart_filler/json_loader.py - Value mapper → Product and row models: maps product values
src/flipkart_filler/mapper.py - Row generation → Product and row models: creates row records
src/flipkart_filler/rows.py - XLSX patcher → Product and row models: uses row records
src/flipkart_filler/xlsx_patch.py - Workbook writer → User: provides download
- User → Keyword-agent UI: starts research
- Keyword-agent UI → Keyword API: API requests
- Keyword API → Research orchestrator: starts run
app/keyword_agent/router.py - Research orchestrator → Query planner: plans searches
app/keyword_agent/service.py - Research orchestrator → Marketplace scraper: scrapes products
app/keyword_agent/service.py - Research orchestrator → Social scraper: scrapes social
app/keyword_agent/service.py - Research orchestrator → Results analyst: synthesizes results
app/keyword_agent/service.py - Query planner → OpenRouter: requests planning
- Results analyst → OpenRouter: requests analysis
app/keyword_agent/agents/analyst.py - Research orchestrator → MongoDB: persists results
- Marketplace scraper → Market and social sites: collects listings
- Social scraper → Market and social sites: collects posts