| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Domain: Developer / API · Suite: Developer Productivity Suite · Accent: #60a5fa
🚀 Quick Start · ✨ Features · 🎛️ Customization · 🧠 LLM Providers · 🧪 Testing · 🧯 Troubleshooting
Api Doc Generator is a standalone, browser-based AI workflow app for Developer / API. It turns structured inputs, uploaded files, and project-specific settings into reviewable outputs using a deterministic local engine plus optional local/cloud LLM enhancement.
Core job: Code/OpenAPI/schema → publishable developer documentation.
Designed for: Domain operator, business owner, analyst, or team member who needs this workflow executed reliably.
Why use it:
UX profile: Developer Workbench
Workflow layout: Code/schema/log intake → analysis → diff/tests/docs → implementation checklist
Empty state: Paste code, schema, logs, or upload source files. Real repository actions require Git/CI connectors.
These are the main fields exposed by the GUI and /api/run. Required fields are enforced before execution.
| Field | Type | Required | Default | Purpose |
|---|---|---|---|---|
| code Code |
text | Yes | — | Affects input: Code. |
| openapi OpenAPI |
text | Yes | — | Affects input: OpenAPI. |
| schema schema |
select | Yes | — | Affects input: schema. |
| work_brief Work brief / source text / URL / instructions |
textarea | Yes | — | Paste the material, URL, description, or instruction needed for this project. |
This project is not a generic prompt box. The customization controls are connected to workflow behavior, validation, output shape, and export format.
| Field | Type | Required | Default | Purpose |
|---|---|---|---|---|
| execution_mode Execution mode |
select | No | Production | Controls strictness, depth, and output format for this project workflow. |
| audience_level audience level |
select | No | general | Affects customization: audience level. |
| framework framework |
select | No | auto detect | Affects customization: framework. |
| language_examples language examples |
select | No | English | Affects customization: language examples. |
| auth_scheme auth scheme |
text | No | — | Affects customization: auth scheme. |
| version_style version style |
select | No | — | Affects customization: version style. |
| public_private_endpoints public/private endpoints |
textarea | No | — | Affects customization: public/private endpoints. |
| code_style code style |
select | No | — | Affects customization: code style. |
| output_format output format |
select | No | Markdown | Affects customization: output format. |
| language language |
select | No | English | Affects customization: language. |
| privacy_mode privacy mode |
select | No | cloud allowed | Affects customization: privacy mode. |
| confidence_threshold Confidence threshold |
slider | No | 75 | Items below this confidence are escalated to the human review queue. |
You can run the project with the local deterministic engine, or enhance the output with a configured LLM provider.
| Provider Type | Examples | Best For |
|---|---|---|
| Local OpenAI-compatible | Ollama, LM Studio, vLLM | Private files, offline/local workflows, cost control |
| Cloud OpenAI-compatible | OpenAI, OpenRouter, custom gateway | General high-quality generation and structured output |
| Anthropic | Claude models | Long-context reasoning and document-heavy workflows |
| Google Gemini | Gemini models | Multimodal or Google ecosystem workflows |
| Mistral | Mistral API | Fast European cloud models |
| Azure OpenAI | Azure deployments | Enterprise-controlled cloud deployment |
| AWS Bedrock | Bedrock-hosted models | AWS enterprise environments |
| Use Case | Recommendation |
|---|---|
| Drafting | fast cloud or local instruct model |
| Reasoning | strong reasoning model |
| Private documents | local model via Ollama/LM Studio/vLLM |
| Vision/PDF pages | vision-capable model when image pages are used |
cd api-doc-generatorchmod +x run_gui.sh
./run_gui.shSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\run_gui_windows.ps1http://127.0.0.1:9102
Use this when you want full control instead of the run scripts.
cd api-doc-generator
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt
cp .env.example .env # Windows: copy .env.example .env
uvicorn app.main:app --host 127.0.0.1 --port 9102The project can be configured through the GUI settings screen or .env/environment variables.
| Variable | Purpose |
|---|---|
| AI_SUITE_HOST | Host to bind the local app, usually 127.0.0.1. |
| AI_SUITE_PORT | Port for this project GUI, default 9102. |
| AI_SUITE_DB | SQLite database path for job history. |
| AI_SUITE_SECRET_KEY | Secret used for local encryption/signing. Set this in production. |
| OPENAI_API_KEY | Enables OpenAI-compatible cloud calls. |
| ANTHROPIC_API_KEY | Enables Anthropic/Claude calls. |
| GEMINI_API_KEY | Enables Google Gemini calls. |
| OPENROUTER_API_KEY | Enables OpenRouter model routing. |
| MISTRAL_API_KEY | Enables Mistral cloud models. |
| AZURE_OPENAI_ENDPOINT | Azure OpenAI endpoint URL. |
| AZURE_OPENAI_API_KEY | Azure OpenAI key. |
| AZURE_OPENAI_DEPLOYMENT | Azure deployment name. |
| OLLAMA_BASE_URL | Local Ollama OpenAI-compatible base URL. |
| LMSTUDIO_BASE_URL | Local LM Studio OpenAI-compatible base URL. |
| VLLM_BASE_URL | Local vLLM OpenAI-compatible base URL. |
The export system is designed for reviewable deliverables. For regulated or business-critical work, export drafts should be reviewed before sending to clients, customers, patients, employees, authorities, or production systems.
Configured integrations in this standalone folder:
Important: this project does not simulate live data. If a workflow needs live Shopify, ATS, ERP, tax, customs, medical, security, market, map, analytics, or repository data, it must be connected with valid credentials and real API access. Missing connectors should produce clear setup errors rather than invented results.
Recommended operating rules:
Run the local smoke test:
python tests/test_single_project.pyRun a health check after starting the server:
curl http://127.0.0.1:9102/api/healthExpected result: the API returns ok: true and identifies this project.
| Method | Endpoint | Use |
|---|---|---|
| GET | / | Opens the browser GUI. |
| GET | /api/health | Health check for deployment and uptime monitoring. |
| GET | /api/projects | Returns the local project configuration. |
| GET | /api/projects/{slug} | Returns the project plugin metadata. |
| GET | /api/providers | Lists configured providers and local/cloud options. |
| POST | /api/providers | Saves provider settings/API keys. |
| POST | /api/upload | Uploads source files for extraction or context. |
| POST | /api/run | Runs the project workflow. |
| GET | /api/jobs | Lists previous runs and job history. |
| GET | /api/jobs/{job_id} | Reads one completed job. |
| GET | /api/jobs/{job_id}/export/{fmt} | Exports a job as md, json, docx, or pdf. |
| GET | /api/project-local-status | Verifies local project registration and implementation status. |
curl -X POST http://127.0.0.1:9102/api/run \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"work_brief": "Paste the source material or task details here"
},
"customization": {
"execution_mode": "Production"
},
"provider": "rule_engine"
}'api-doc-generator/
├─ app/ # FastAPI backend, schemas, DB, providers, exports
├─ static/ # Browser GUI assets
├─ plugins/ # Project plugin JSON metadata
├─ data/ # SQLite DB, uploads, exports
├─ tests/ # Smoke tests
├─ project_config.json # Project-specific inputs, controls, UX, workflow
├─ PROJECT_IMPLEMENTATION.md # Implementation details and domain notes
├─ requirements.txt # Python dependencies
├─ run_gui.sh # macOS/Linux/WSL launcher
├─ run_gui_windows.ps1 # Windows PowerShell launcher
└─ README.md # This file
For local/private deployment, run with uvicorn behind a reverse proxy if needed. For production:
Example production-style command:
AI_SUITE_HOST=0.0.0.0 AI_SUITE_PORT=9102 uvicorn app.main:app --host 0.0.0.0 --port 9102| Problem | Fix |
|---|---|
| python not found | Install Python 3.10+ and ensure it is on PATH. |
| PowerShell blocks the script | Run Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass. |
| Port already in use | Set another port: AI_SUITE_PORT=9200 ./run_gui.sh. |
| Provider fails | Verify API key, base URL, selected model, and account quota. |
| Local model fails | Start Ollama/LM Studio/vLLM before running the workflow. |
| PDF/DOCX export fails | Reinstall requirements and confirm optional export dependencies installed. |
| Upload extraction is incomplete | Use cleaner source files or paste the important text into work_brief. |
You can extend this project by editing:
| Area | Status |
|---|---|
| Standalone folder GUI | ✅ Implemented |
| FastAPI backend | ✅ Implemented |
| Project-specific config | ✅ Implemented |
| Local deterministic workflow | ✅ Implemented |
| Local/cloud LLM routing | ✅ Implemented |
| Uploads and exports | ✅ Implemented |
| Job history | ✅ Implemented |
| Real external connectors | ⚠️ Requires valid credentials/API setup |
| Fake/simulated live data | ❌ Not allowed |
Use the license included in this folder. If no explicit license is present, treat the code as private until you choose one.
| Back | FazBrowse Home | New Git URL |