How gc2000/smarttender-ai works
SmartTender AI turns a buyer’s natural-language purchasing request into an editable, domain-specific tender, then supports review, export, and project management. App.tsx owns the main workflow and project state; Gemini-backed analysis and drafting use configurable templates and clauses. The README documents Word/Markdown export, status tracking, autosave, and responsive layout, though sampled excerpts do not show every implementation detail. Dashed links mark those documented but unsampled capabilities; the graph otherwise follows visible calls and rendering relationships.
Main entry points: App.tsx Workflow coordinator · configManager.ts Configuration access · AnalysisPanel.tsx Analysis and editor · geminiService.ts Draft generation
Components 16
Tender workflow
- Workflow coordinator
App.tsx - Chat display
components/ChatBubble.tsx - Analysis and editor
components/AnalysisPanel.tsx - Tender domain types
types.ts
Tender generation
- Requirement analysis
services/geminiService.ts - Draft generation
services/geminiService.ts - SME review
services/geminiService.ts - Domain templates
config/tenderTemplates.ts - Standard clauses
config/clauseLibrary.ts
Project management
- Saved projects
components/SavedTendersList.tsx - Project persistence
services/tenderStorage.ts
Configuration
- Configuration access
services/configManager.ts - Configuration editor
components/ConfigEditor.tsx
Other components
- Buyer
- Google Gemini
- Browser LocalStorage
Connections 24
- Buyer → Workflow coordinator: describes needs
README.md - Workflow coordinator → Chat display: renders messages
App.tsx - Workflow coordinator → Requirement analysis: analyzes conversation
App.tsx - Workflow coordinator → Draft generation: requests review draft
App.tsx - Workflow coordinator → SME review: requests SME review
App.tsx - Workflow coordinator → Analysis and editor: renders analysis
App.tsx - Analysis and editor → Draft generation: generates tender
components/AnalysisPanel.tsx - Analysis and editor → Standard clauses: displays clauses
components/AnalysisPanel.tsx - Requirement analysis → Google Gemini: sends analysis
services/geminiService.ts - Draft generation → Google Gemini: generates content
services/geminiService.ts - SME review → Google Gemini: requests review
services/geminiService.ts - Requirement analysis → Configuration access: loads template
services/geminiService.ts - Draft generation → Configuration access: loads template and clauses
services/geminiService.ts - SME review → Configuration access: loads review rules
services/geminiService.ts - Configuration access → Domain templates: uses defaults
services/configManager.ts - Configuration access → Standard clauses: uses defaults
services/configManager.ts - Workflow coordinator → Configuration editor: opens settings
App.tsx - Configuration editor → Configuration access: reads and saves
components/ConfigEditor.tsx - Workflow coordinator → Saved projects: renders project list
App.tsx - Workflow coordinator → Project persistence: saves projects
App.tsx - Project persistence → Browser LocalStorage: reads and writes
services/tenderStorage.ts - Workflow coordinator → Analysis and editor: edits and exports draft
README.md - Workflow coordinator → Project persistence: autosaves projects
README.md - Workflow coordinator → Analysis and editor: tracks review status
README.md