{"id":43486932,"url":"https://github.com/edubertin/projeto_codex","last_synced_at":"2026-02-03T09:13:15.538Z","repository":{"id":335390745,"uuid":"1145564788","full_name":"edubertin/projeto_codex","owner":"edubertin","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-30T02:39:53.000Z","size":187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-30T14:27:38.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/edubertin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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-01-29T23:54:52.000Z","updated_at":"2026-01-30T02:39:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/edubertin/projeto_codex","commit_stats":null,"previous_names":["edubertin/projeto_codex"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/edubertin/projeto_codex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubertin%2Fprojeto_codex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubertin%2Fprojeto_codex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubertin%2Fprojeto_codex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubertin%2Fprojeto_codex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edubertin","download_url":"https://codeload.github.com/edubertin/projeto_codex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubertin%2Fprojeto_codex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29039350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T08:41:49.363Z","status":"ssl_error","status_checked_at":"2026-02-03T08:40:19.255Z","response_time":96,"last_error":"SSL_read: 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":[],"created_at":"2026-02-03T09:13:14.542Z","updated_at":"2026-02-03T09:13:15.524Z","avatar_url":"https://github.com/edubertin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodoOne Starter Pack\n\n![CI](https://github.com/edubertin/projeto_codex/actions/workflows/ci.yml/badge.svg)\n![Secret Scan](https://github.com/edubertin/projeto_codex/actions/workflows/secret-scan.yml/badge.svg)\n![Python](https://img.shields.io/badge/Python-3.11%2B-blue)\n![License](https://img.shields.io/badge/License-MIT-green)\n\n**NodoOne Starter Pack** is a production-ready FastAPI + LangChain kit with Postgres + pgvector RAG, Redis cache, observability, and CI. Designed to be the base for multiple applications.\n\n## Screenshot\n![NodoOne Starter Pack UI](assets/images/image.png)\n\n## What you get\n- FastAPI app with Swagger/ReDoc\n- LangChain + OpenAI ready\n- Postgres + pgvector RAG (ingest + query)\n- Redis cache for RAG queries\n- Static UI to validate LLM + RAG\n- API versioning (`/v1/...`) with legacy route\n- Health and readiness endpoints\n- Prometheus metrics (`/metrics`)\n- Optional OpenTelemetry tracing\n- Per-route rate limiting (v1 routes)\n- Structured logs + request-id\n- Dockerized with non-root user + healthcheck\n- CI + secret scan (Gitleaks)\n- Dependabot updates\n\n## Tech Stack\n- Python 3.11\n- FastAPI + Uvicorn\n- LangChain + OpenAI\n- Postgres + pgvector\n- Redis\n- Docker + Docker Compose\n\n## Project Structure\n```\n.\n├─ main.py\n├─ settings.py\n├─ static/\n│  ├─ index.html\n│  └─ index2.html\n├─ tests/\n│  └─ test_health.py\n├─ docker-compose.yml\n├─ Dockerfile\n├─ requirements.txt\n├─ requirements-dev.txt\n├─ .env.example\n├─ .pre-commit-config.yaml\n├─ .gitleaks.toml\n└─ README.md\n```\n\n## Quickstart (Docker)\n1. Copy `.env.example` to `.env` and set `OPENAI_API_KEY`.\n2. Run:\n\n```bash\ndocker compose up --build\n```\n\nOpen `http://localhost:8000/`.\n\n## Local Development\n```bash\npip install -r requirements.txt -r requirements-dev.txt\npytest\n```\n\n## API Endpoints\n- `/` Static page\n- `/v1/hello` LLM response (versioned)\n- `/v1/ingest` Ingest texts into the vector DB\n- `/v1/query` Query similar chunks from the vector DB\n- `/api/hello` Legacy route (deprecated)\n- `/api/dashboard` Cache + RAG status\n- `/docs` Swagger\n- `/redoc` ReDoc\n- `/metrics` Prometheus metrics\n- `/health` Healthcheck\n- `/ready` Readiness\n\n## RAG Quick Test (UI)\n1. Start with Docker: `docker compose up --build`\n2. Open `http://localhost:8000/`\n3. Use the RAG section to ingest a few lines and query\n\n## Configuration\nEnvironment variables (see `.env.example`):\n- `OPENAI_API_KEY`\n- `MODEL` (default: `gpt-4o-mini`)\n- `EMBEDDING_MODEL` (default: `text-embedding-3-small`)\n- `TEMPERATURE`\n- `REQUEST_TIMEOUT`\n- `MAX_RETRIES`\n- `ALLOWED_ORIGINS`\n- `DATABASE_URL`\n- `RAG_COLLECTION`\n- `ENABLE_RATE_LIMIT`\n- `RATE_LIMIT_PER_MINUTE`\n- `REDIS_URL`\n- `CACHE_TTL_SECONDS`\n- `ENABLE_METRICS`\n- `ENABLE_TRACING`\n- `OTEL_SERVICE_NAME`\n- `OTEL_EXPORTER_OTLP_ENDPOINT`\n\n## Observability\n- Metrics: scrape `http://localhost:8000/metrics` with Prometheus.\n- Tracing: set `ENABLE_TRACING=true` and `OTEL_EXPORTER_OTLP_ENDPOINT` (OTLP/HTTP).\n\n## Security\n- Never commit secrets. Use `.env` (gitignored).\n- Run `pre-commit install` to enable local secret scanning.\n- CI runs secret scanning on each push/PR.\n\n## Contributing\nSee `.github/CONTRIBUTING.md`.\n\n## License\nMIT. See `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedubertin%2Fprojeto_codex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedubertin%2Fprojeto_codex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedubertin%2Fprojeto_codex/lists"}