{"id":49231308,"url":"https://github.com/nirjanadas/auto-gen-ai","last_synced_at":"2026-04-24T12:02:17.294Z","repository":{"id":328030870,"uuid":"1111425456","full_name":"nirjanadas/auto-gen-ai","owner":"nirjanadas","description":"AI-powered documentation generator that creates PRDs, landing page content, FAQs, and marketing copy from a short product brief using FastAPI, Streamlit, and OpenAI models.","archived":false,"fork":false,"pushed_at":"2025-12-11T22:36:47.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-13T01:46:28.996Z","etag":null,"topics":["ai","clean-architecture","documentation-generator","fastapi","openai","prompt-engineering","python","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nirjanadas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-06T22:57:20.000Z","updated_at":"2025-12-11T22:36:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nirjanadas/auto-gen-ai","commit_stats":null,"previous_names":["nirjanadas/productdoc-autosuite","nirjanadas/auto-gen-ai"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nirjanadas/auto-gen-ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirjanadas%2Fauto-gen-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirjanadas%2Fauto-gen-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirjanadas%2Fauto-gen-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirjanadas%2Fauto-gen-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirjanadas","download_url":"https://codeload.github.com/nirjanadas/auto-gen-ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirjanadas%2Fauto-gen-ai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","clean-architecture","documentation-generator","fastapi","openai","prompt-engineering","python","streamlit"],"created_at":"2026-04-24T12:02:11.958Z","updated_at":"2026-04-24T12:02:17.288Z","avatar_url":"https://github.com/nirjanadas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ AutoGen AI\n\n![AUTOGEN UI](assets/ui_preview.png)\n\nAI-powered product documentation generator with a modular FastAPI backend and a Streamlit frontend.\n\nAutoGen AI converts a short product brief into high-quality outputs:\n- Product Requirement Documents (PRDs)\n- Landing page content\n- FAQs\n- Marketing copy\n\nBuilt with OpenAI models, a clean modular architecture, user authentication, and per-user history tracking.\n\n---\n\n## 🚀 Features\n\n### 🔹 Streamlit Frontend\n- Clean UI for writing a short product brief  \n- Adjustable depth slider for level of detail  \n- History panel for last 10 generations  \n- Responsive layout for demo \u0026 usage\n\n### 🔹 FastAPI Backend\n**Endpoints**\n```bash\n/generate  # generate PRD, FAQ, landing page, marketing copy\n/signup    # register users\n/login     # authenticate users\n/history   # fetch recent generations\n```\n\n**Modular architecture**\n```text\nmain.py      -\u003e API routers\ndatabase.py  -\u003e SQLite + SQLAlchemy DB\nmodels.py    -\u003e ORM models\nprompts.py   -\u003e prompt templates\nutils.py     -\u003e helper utilities\n```\n\n### 🔹 User Authentication\n- Passwords hashed securely with `bcrypt`  \n- SQLite storage for users \u0026 generation history  \n- Simple token/session-based flow (demo-friendly)\n\n### 🔹 AI Integration\n- OpenAI GPT models for content generation  \n- Centralized prompt templates for consistent outputs  \n- Offline-safe demo fallback\n\n---\n\n## 📁 Project Structure\n\n```text\nauto_gen_ai/\n├── assets/\n│   └── ui_preview.png\n├── backend/\n│   ├── main.py\n│   ├── database.py\n│   ├── models.py\n│   ├── prompts.py\n│   ├── utils.py\n│   └── routers/\n├── frontend/\n│   ├── app.py\n│   └── requirements.txt\n├── productdoc.db\n├── .env.example\n├── .gitignore\n├── README.md\n└── LICENSE\n```\n\n---\n\n## 🧱 Clean Architecture (Visual Overview)\n\n```text\n───────────────────────────────────────────────────────────────────────────────\n┌──────────────────────────────────────────────────────────────────────────────┐\n│ PRESENTATION LAYER        (UI - Streamlit)                                   │\n│                                                                              │\n│   • frontend/app.py                                                          │\n└──────────────────────────────▲───────────────────────────────────────────────┘\n                               │\n───────────────────────────────│───────────────────────────────────────────────\n                               │\n┌─────────────────────────────────────────────────────────────────────────────┐\n│ APPLICATION / USE CASES LAYER                                               │\n│                                                                             │\n│   • backend/main.py     • backend/prompts.py     • backend/utils.py         │\n└──────────────────────────────▲──────────────────────────────────────────────┘\n                               │\n───────────────────────────────│───────────────────────────────────────────────\n                               │\n┌──────────────────────────────────────────────────────────────────────────────┐\n│ DOMAIN LAYER               (Business Entities)                               │\n│                                                                              │\n│   • backend/models.py                                                        │\n└──────────────────────────────▲───────────────────────────────────────────────┘\n                               │\n───────────────────────────────│───────────────────────────────────────────────\n                               │\n┌───────────────────────────────────────────────────────────────────────────────┐\n│ INFRASTRUCTURE LAYER                                                          │\n│                                                                               │\n│   • backend/database.py                                                       │\n└───────────────────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## ⚙️ Installation \u0026 Setup\n\n### 1. Clone the repository\n```bash\ngit clone https://github.com/nirjanadas/auto-gen-ai.git\ncd auto-gen-ai\n```\n\n### 2. Install dependencies\n```bash\npip install -r requirements.txt\n```\n\n### 3. Create a `.env` file\n```env\nBACKEND_URL=http://localhost:8000\nOPENAI_API_KEY=your_key_here\n```\n\n### 4. Run the backend\n```bash\ncd backend\nuvicorn main:app --reload --port 8000\n```\n\n### 5. Run the frontend\n```bash\ncd frontend\nstreamlit run app.py\n```\n\n---\n\n## 🔐 Authentication Flow\n- Users sign up with email \u0026 password  \n- Passwords are hashed with `bcrypt`  \n- Login returns a session token  \n- Per-user generation history is stored in SQLite\n\n---\n\n ## 🧠 Tech Stack\n\n\u003cdiv align=\"center\"\u003e\n\n### 🖥️ **Frontend**\n| Technology | Purpose |\n|-----------|----------|\n| 🎨 Streamlit | UI \u0026 user interaction |\n| 🐍 Python | Core language |\n\n### ⚙️ **Backend**\n| Technology | Purpose |\n|-----------|----------|\n| 🚀 FastAPI | API framework |\n| 🏗️ SQLAlchemy | ORM \u0026 database layer |\n| 🗄️ SQLite | Lightweight database |\n\n### 🤖 **AI**\n| Technology | Purpose |\n|-----------|----------|\n| 🔮 OpenAI GPT Models | Content generation |\n\n### 🔐 **Security**\n| Technology | Purpose |\n|-----------|----------|\n| 🔑 bcrypt | Password hashing |\n| 🧩 .env Config | Secure environment variables |\n\n\u003c/div\u003e\n\n\n\n---\n\n## 🤝 Contributions\nContributions welcome. For major changes, please open an issue to discuss.\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirjanadas%2Fauto-gen-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirjanadas%2Fauto-gen-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirjanadas%2Fauto-gen-ai/lists"}