{"id":51318452,"url":"https://github.com/bhargavi35/codebase-archaeologist-backend","last_synced_at":"2026-07-01T10:04:03.101Z","repository":{"id":365877573,"uuid":"1274107996","full_name":"bhargavi35/codebase-archaeologist-backend","owner":"bhargavi35","description":"A high-performance, asynchronous FastAPI orchestration layer designed to drive semantic discovery, map software structural dependencies, and execute real-time code vector transformations.","archived":false,"fork":false,"pushed_at":"2026-06-19T10:05:11.000Z","size":166,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-19T10:25:39.317Z","etag":null,"topics":["chromadb","fastapi","genai","python3","uvicorn"],"latest_commit_sha":null,"homepage":"https://codebase-archaeologist-backend.onrender.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bhargavi35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-06-19T07:24:51.000Z","updated_at":"2026-06-19T10:08:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bhargavi35/codebase-archaeologist-backend","commit_stats":null,"previous_names":["bhargavi35/codebase-archaeologist-backend"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bhargavi35/codebase-archaeologist-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargavi35%2Fcodebase-archaeologist-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargavi35%2Fcodebase-archaeologist-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargavi35%2Fcodebase-archaeologist-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargavi35%2Fcodebase-archaeologist-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhargavi35","download_url":"https://codeload.github.com/bhargavi35/codebase-archaeologist-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhargavi35%2Fcodebase-archaeologist-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35001655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chromadb","fastapi","genai","python3","uvicorn"],"created_at":"2026-07-01T10:04:02.145Z","updated_at":"2026-07-01T10:04:03.096Z","avatar_url":"https://github.com/bhargavi35.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐍 Codebase Archaeologist Production Engine — Backend API\n\nA high-performance, asynchronous FastAPI orchestration layer designed to drive semantic discovery, map software structural dependencies, and execute real-time code vector transformations.\n\n📂 **Live API Interactive Docs:** [https://codebase-archaeologist-backend.onrender.com/docs](https://codebase-archaeologist-backend.onrender.com/docs)\n\n---\n\n## ✨ Key Capabilities\n\n* **🌐 Memory-Buffered GitHub Ingestion:** Securely clones public GitHub ZIP archives directly into short-lived system memory, bypassing local disk clutter, to parse and map source file modules on the fly.\n* **🧠 Free-Tier Cloud Optimized Indexing:** Utilizes a high-speed `chromadb` Ephemeral Memory Client to instantiate in-RAM data collections, bypassing the need for paid cloud disk space while ensuring zero-leak data flushes.\n* **🔮 AST-Inspired Import Extractor:** Employs advanced regex parsing arrays to scan incoming code files, pull relative/aliased paths, and construct an interactive network link matrix.\n* **📡 Real-Time SSE Response Streaming:** Implements Server-Sent Events (SSE) via FastAPI's `StreamingResponse` to push real-time, token-by-token answer responses directly to the client dashboard.\n* **🛡️ Defensive Quota Boundaries:** Enforces protective file capping constraints (maximum 15 concurrent source files mapped) and traps rate-limiting failures to pass down unified `ERROR_QUOTA_EXHAUSTED` tokens gracefully.\n\n---\n\n## 🛠️ Technical Stack \u0026 Architecture\n\n* **Language/Framework:** Python 3.11+, FastAPI, Uvicorn\n* **AI \u0026 Embeddings:** Google GenAI SDK (`gemini-embedding-2`, `gemini-2.5-flash`)\n* **Vector Database:** ChromaDB (In-Memory Ephemeral Client mapping configuration)\n* **HTTP Infrastructure:** HTTPX (Asynchronous network connection routing)\n\n---\n\n## 🚀 Local Deployment \u0026 API Testing\n\n1. **Clone the repository:**\n   ```bash\n   git clone [https://github.com/bhargavi35/codebase-archaeologist-backend.git](https://github.com/bhargavi35/codebase-archaeologist-backend.git)\n   cd codebase-archaeologist-backend\nSet up a virtual environment:\n\nBash\npython -m venv venv\n# On Windows:\n.\\venv\\Scripts\\activate\nInstall production dependencies:\n\nBash\npip install -r requirements.txt\nInject Your AI Key Secret:\nConfigure a .env file or export the key variable directly to your environment:\n\nBash\nexport GEMINI_API_KEY=\"your_google_ai_studio_key_here\"\nFire up the Uvicorn worker:\n\nBash\nuvicorn main:app --reload\nAccess the live interactive Swagger UI testing playground at http://127.0.0.1:8000/docs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhargavi35%2Fcodebase-archaeologist-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhargavi35%2Fcodebase-archaeologist-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhargavi35%2Fcodebase-archaeologist-backend/lists"}