How cpeggy/poa works
Project type and purpose
• From the file tree and README, this is a small, monolithic Python web application (likely Flask or a similar micro‐framework) that serves a simple web UI and proxies user queries to three external services:
• Google Custom Search API (requires API Key + Search Engine ID)
• Google Programmable Search Engine
• Google Gemini API
• There is no separate front-end repo or SPA; the entire UI and back-end live in docs/app.py, and dependencies are listed in requirements.txt.
File structure
• Top level files:
• .gitignore (standard VCS ignore file)
• README.md (instructions for API key setup and app usage)
• requirements.txt (Python library dependencies)
• docs/app.py: contains the entire web application code (routes, views, config pages, API-calling logic).
• No dedicated “static” or “templates” folders, so templates may be inlined or in docs/.
• No database folder or config, so the app is likely stateless and relies on environment/config variables for API keys.
README for additional insights
• The README walks users through obtaining three API credentials and then instructs them to input them via the app’s “API Settings” page.
• There is no mention of persistent storage, caching layer, or other microservices.
Elements
• Clear labels for each component and sub-component
• User → Web App (HTTP Request)
• Web App → External APIs (API calls)
• External APIs → Web App (API responses)
• Web App → Browser (rendered HTML/JSON)
• Hosting environment / Web App (e.g., blue container)