{"id":48798428,"url":"https://github.com/matadcze/fullstack-agents","last_synced_at":"2026-04-14T00:31:32.893Z","repository":{"id":338294432,"uuid":"1113153271","full_name":"matadcze/fullstack-agents","owner":"matadcze","description":"  Production-Ready FastAPI + Next.js Template with Auth, Observability, and Agent Scaffold","archived":false,"fork":false,"pushed_at":"2026-02-13T19:22:34.000Z","size":609,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-14T02:28:42.067Z","etag":null,"topics":["agents","boilerplate-template","devops","fastapi","grafana","llm","nextjs","redis","template","typescript"],"latest_commit_sha":null,"homepage":"","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/matadcze.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":"2025-12-09T15:38:13.000Z","updated_at":"2026-02-13T19:22:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/matadcze/fullstack-agents","commit_stats":null,"previous_names":["matadcze/fullstack-agents"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/matadcze/fullstack-agents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matadcze%2Ffullstack-agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matadcze%2Ffullstack-agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matadcze%2Ffullstack-agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matadcze%2Ffullstack-agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matadcze","download_url":"https://codeload.github.com/matadcze/fullstack-agents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matadcze%2Ffullstack-agents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31776865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["agents","boilerplate-template","devops","fastapi","grafana","llm","nextjs","redis","template","typescript"],"created_at":"2026-04-14T00:31:32.315Z","updated_at":"2026-04-14T00:31:32.859Z","avatar_url":"https://github.com/matadcze.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# {{PROJECT_NAME}} Full-Stack Template\n\nReusable FastAPI + React (Next.js) starter with JWT auth, audit logging, async SQLAlchemy, Celery workers, Docker Compose, Prometheus, and Grafana dashboards.\n\n## What's Included\n- **Backend (FastAPI)**: Auth \u0026 audit routes, async SQLAlchemy + Alembic, Redis-backed rate limiting, Prometheus metrics, structured logging, Celery worker/beat scaffolding.\n- **Frontend (Next.js + TypeScript)**: Auth flows (login/register/profile), protected dashboard shell, typed API client, Tailwind styles.\n- **Agent scaffold**: Stub LLM provider with `/api/v1/agents/run` endpoint and frontend demo page to submit prompts.\n- **Ops**: Docker Compose for Postgres, Redis, backend, frontend, Prometheus, Grafana; health/readiness endpoints; Makefile helpers.\n\n## Using This Template\n1) Replace placeholders:\n   - `{{PROJECT_NAME}}` → human-readable name\n   - `{{PROJECT_NAME_SLUG}}` / `{{PROJECT_NAME_LOWER}}` → lowercase/slug used in container names and defaults\n\n2) Copy env files and fill in secrets:\n```\ncp backend/.env.example backend/.env\ncp frontend/.env.example frontend/.env\n```\n   - Set `DATABASE_URL`, `JWT_SECRET_KEY` (e.g. `python -c \"import secrets; print(secrets.token_urlsafe(32))\"`), and adjust any hostnames/ports.\n   - When using Docker/nginx, set `NEXT_PUBLIC_API_URL` to `https://localhost` in `frontend/.env` (nginx terminates TLS with the bundled self-signed cert). For local Next.js dev (`npm run dev`) that talks directly to the backend, override to `http://localhost:8000` in `frontend/.env.local`.\n   - For local Next.js runs, you can also place `NEXT_PUBLIC_*` values in `frontend/.env.local`.\n\n3) Local dev (no Docker):\n```\nmake backend-install\nmake frontend-install\ncd backend \u0026\u0026 uv run alembic upgrade head\nmake dev   # runs uvicorn + next dev\n```\n\n4) Full stack with Docker:\n```\ndocker compose up -d --build\n```\nServices: nginx entrypoint `:80` (proxies frontend + backend), backend `:8000`, frontend `:3000`, Prometheus `:9091`, Grafana `:3001` (admin/admin).\n\n## Developer Tooling\n- Git hooks: `make pre-commit-install` to add hooks (ruff/black/isort/mypy + frontend lint/format). Run on demand with `make pre-commit`.\n- Lint/format: `make lint` (backend + frontend) and `make format` to apply fixes. Backend type checks via `make backend-typecheck`.\n- Sample data: `make seed` loads fixture users (e.g., admin@example.com / ChangeMe123!) and basic audit events for local testing.\n- Frontend formatting uses Prettier; linting runs ESLint flat config in `frontend/eslint.config.mjs`.\n\n## Project Structure\n```\n.\n├── backend/          # FastAPI service, Alembic migrations, Celery worker\n├── frontend/         # Next.js app with auth flows\n├── prometheus/       # Prometheus scrape config\n├── grafana/          # Provisioning + dashboards\n├── docker-compose.yml\n└── Makefile\n```\n\n## Environment Variables\n- Canonical examples: `backend/.env.example` and `frontend/.env.example`\n- Key values: `DATABASE_URL`, `REDIS_URL`, `JWT_SECRET_KEY`, `NEXT_PUBLIC_API_URL`, `APP_NAME`, `LLM_PROVIDER`, `LLM_MODEL`, `LLM_API_KEY`\n- Docker Compose reads `backend/.env` for backend services and `frontend/.env` (with `NEXT_PUBLIC_API_URL=http://localhost`) for the nginx entrypoint.\n\n## Scaling \u0026 Sessions\n- **Backend workers**: The provided compose files run a single Uvicorn process. For horizontal scale, run multiple backend replicas behind nginx or a load balancer and set `UVICORN_WORKERS` (or switch to gunicorn+uvicorn workers) based on CPU cores. Keep migrations as a one-shot job to avoid race conditions when scaling.\n- **Celery**: Scale `celery-worker` replicas independently for background throughput. `celery-beat` should stay singleton.\n- **Sessions/state**: The app is stateless (JWT auth), so horizontal scaling is safe. Redis is used for rate limiting; if you add server-side sessions or websockets, plan for a shared store (Redis) and sticky sessions where needed.\n- **Redis persistence**: Persistence is disabled by default (see compose files). Enable AOF/RDB only if you need durable state beyond caching/rate-limit counters. For production durability, use a managed Redis or mount a volume with the desired persistence mode.\n\n## Testing\n- Backend: `make backend-test` (pytest sample health test) and `make backend-typecheck` (mypy)\n- Frontend: `make frontend-test` / `npm run test:e2e` (Playwright sample, adjust selectors as you extend UI)\n\n## Next Steps\n- Add your domains: extend `backend/src/domain` and `backend/src/api/v1`\n- Expand frontend pages/components for your use case\n- Wire CI/CD (lint, test, build images) for your target platform\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatadcze%2Ffullstack-agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatadcze%2Ffullstack-agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatadcze%2Ffullstack-agents/lists"}