People Gator helps researchers and annotators find people in digitized library documents and connect identities to evidence. The Vue application brings scanned pages, detected faces and OCR mentions together for search, annotation and review; the API stores those relationships with their provenance and processing actor.
| Capability | Description |
|---|---|
| Search and filtering | Search people, faces, pages and documents through the API and browser app using text and existing face vectors. Combine modalities with reciprocal-rank fusion and filter results by evidence, assignment state, document, library and processing metadata. |
| Browsing and evidence review | Browse registered documents and scans in the browser app, view page images and OCR overlays, and inspect a person's linked faces and mentions. |
| Identity annotation | Edit identities and aliases; assign, reassign and verify evidence links through the API and browser app; merge identities with the required administrator scope. |
| Data ingestion | Ingest sources, faces, model-specific vectors, OCR mentions and page assets through typed APIs, including batch operations. |
| Authentication and integrations | Attribute changes to JWT users or registered API keys. Optionally connect an embedding service or OpenRouter translation service through the API. |
| Development and previews | Develop and review with deterministic synthetic data, repeatable migrations, automated tests and isolated pull-request previews. |
| Component | Technologies |
|---|---|
| Browser application | Vue 3, TypeScript, Vue Router, TanStack Vue Query, Vite, Tailwind CSS 4, shadcn-vue/Reka UI |
| API | Python 3.14, FastAPI, Pydantic, uv, async SQLAlchemy/asyncpg, Alembic |
| Data | PostgreSQL 16, pgvector, pg_trgm, unaccent; local or S3 object storage |
| Contracts and tests | OpenAPI-generated TypeScript SDK, Vitest, pytest |
| Deployment | Docker Compose, Traefik, GitHub Actions, GHCR; optional OpenTelemetry/LGTM |
An optional Weaviate adapter remains in the API. PostgreSQL is the development, CI and preview path and provides the transactional behavior described here.
people-gator-app/ Browser app, generated SDK and frontend tests
└── src/
├── App.vue Application shell
├── main.ts Browser entry point
├── client/ OpenAPI-generated TypeScript SDK
├── components/
│ ├── custom/ Application components
│ └── ui/ shadcn-vue UI primitives
├── composables/ Shared reactive helpers and media object URLs
├── lib/ Shared utilities and evidence-link helpers
├── query/ API transport, authentication, queries and mutations
├── router/ Routes and navigation
├── viewmodels/ Screen state, filters and annotation logic
├── views/ Screens and page workspaces
└── __tests__/ Frontend contract and component tests
people-gator-api/ API package, migrations, backend tests and focused docs
└── src/people_gator_api/
├── app.py FastAPI entry point and application lifecycle
├── settings.py Runtime configuration
├── cli/ Database, schema and seed commands
├── filesystem/ Storage contract and local/S3 adapters
├── media/ Page layouts, images, OCR spans and face crops
├── persistence/ Database contract and repositories
│ ├── postgres/ PostgreSQL models, queries and transactions
│ └── weaviate/ Optional Weaviate adapter
├── routes/
│ └── v1/ Versioned resource endpoints and dependencies
├── schemas/ Validated request, response and filter types
├── seeding/ Deterministic synthetic preview fixtures
├── services/ Authentication, shared clients and external services
└── utils/ Logging, telemetry, hashing and other helpers
docs/ Project and operator guides
deploy/people-gator-deploy/ Deployment utility: PR previews, staging, releases
.github/workflows/ CI: tests, image publication, preview/staging/release deploys
compose.dev.yaml Development stack with Compose Watch
compose.live-preview.yaml Existing shared live-preview deployment
compose.prod.yaml Production stack (API, frontend, database) behind external Traefik
AGENTS.md Required implementation workflow and feature conventions
flowchart LR
Browser[Vue application] --> Proxy[Traefik / HTTP routing]
Proxy --> API[FastAPI routes and services]
API --> Contracts[Database repositories]
Contracts --> DB[(PostgreSQL + pgvector)]
API --> Files[Filesystem contract]
Files --> Storage[(Local files or S3)]
API -. optional .-> External[Embedding / translation services]
Routes validate schemas and access scopes. Repositories own queries, identity rules and mutations; media services resolve assets through the filesystem contract. The frontend uses the generated client through query composables and viewmodels. See Architecture for the current boundaries.
Start with Start here, then follow
Development to install pinned dependencies, start a local
pgvector store, migrate and seed it, and run both applications. Node must satisfy
^22.18.0 || >=24.12.0; CI uses Node 24. Python 3.14 is required.
Synthetic fixtures and the development-only test / test account let you
exercise the app without project data or external AI credentials.
For Docker deployments, use Deployment and the
deployment entry point. The CI workflow type-checks/tests the
frontend, tests backend contracts and migrations, runs the seed twice, validates
the deployment utility, publishes same-repository builds to GHCR and deploys PR
previews, staging from main and v* release tags in the same run with
people-gator-deploy. Read its
host prerequisites before enabling them.
| Guide | Topic |
|---|---|
| Vision | Users, current scope and proposed roadmap |
| Architecture | Modules, access rules, search, annotations and frontend |
| Database | PostgreSQL tables, relationships and ingestion |
| Search filters | API filters, ranking and UI state |
| Start here | First steps and code navigation without project data |
| Development | Local environment and disposable test stores |
| Testing strategy | Current coverage, test selection, execution and future priorities |
| Data maintenance | Reviewed audits, repairs and recovery |
| Deployment | Docker, CI/CD and configuration reference |
| Observability | Logs, traces, metrics and dashboard queries |
| Contributing, agent instructions | Issue → branch → commits → PR workflow, PR template and review evidence (including desktop/mobile screenshots) |