How vasundhara-331/zyra-srs-generation-module works
ZYRA is a web-based IEEE 830 SRS authoring tool. A user supplies project details, then completes template-driven sections manually or uses Ollama-powered autofill or full-draft generation; the wizard exports the resulting specification as JSON, PDF, or DOCX. The README documents standardized structured requirements and local Phi-3 inference. Some wizard implementation is excerpted, so the graph shows only supported API calls and export paths; unshown UI-to-template wiring is not inferred.
Main entry points: SRS-Wizard.tsx SRS wizard · generate-full/route.ts Full draft endpoint · autofill/route.ts Autofill endpoint · page.tsx Home entry
Components 14
SRS authoring
- SRS wizard
src/components/SRS-Wizard.tsx - IEEE 830 template
src/constants/srs-template.ts - Project details
src/components/SRS-Wizard.tsx - Section answers
src/components/SRS-Wizard.tsx
AI generation
- Autofill endpoint
src/app/api/autofill/route.ts - Full draft endpoint
src/app/api/generate-full/route.ts - Ollama Phi-3
Document export
- PDF and DOCX builder
src/utils/document-generator.ts - Download endpoint
src/app/api/download/route.ts - Server Downloads folder
Web application
- Home entry
src/app/page.tsx - Technical guide
src/app/guide/page.tsx - Root layout
src/app/layout.tsx
Other components
- SRS author
Connections 19
- SRS author → Home entry: opens
- Home entry → SRS wizard: renders
- SRS author → SRS wizard: enters details
- SRS wizard → Autofill endpoint: requests suggestions
- Autofill endpoint → Ollama Phi-3: generates text
- Ollama Phi-3 → Autofill endpoint: returns text
- Autofill endpoint → SRS wizard: returns suggestion
- SRS wizard → Full draft endpoint: requests full draft
- Full draft endpoint → IEEE 830 template: gets required fields
- Full draft endpoint → Ollama Phi-3: generates draft
- Ollama Phi-3 → Full draft endpoint: returns JSON
- Full draft endpoint → SRS wizard: returns answers
- SRS wizard → PDF and DOCX builder: builds PDF or DOCX
- PDF and DOCX builder → Download endpoint: sends encoded file
- SRS wizard → Download endpoint: sends JSON export
- Download endpoint → Server Downloads folder: writes file
- SRS author → Technical guide: opens guide
- Home entry → Root layout: renders within
- Technical guide → Root layout: renders within