How tp-shivha-shakthiy/trace works
TRACE is a developer-intelligence application whose main workflow syncs GitHub activity asynchronously, stores normalized data in PostgreSQL, infers technical domains, and serves developer profiles to a React SPA. The graph includes OAuth/session handling and sync-job status alongside that workflow. Some service internals and frontend API calls were not excerpted, so those links rely on README documentation; unsampled subsystem paths use their exact tree paths.
Main entry points: routes_auth.py OAuth routes · ingestion.py Ingestion service · api.ts API client · jobs.py Job worker
Components 22
Web experience
- React SPA
frontend/src/App.tsx - Developer search
frontend/src/pages/Home.tsx - Profile view
frontend/src/pages/Developer.tsx - API client
frontend/src/api.ts - Profile components
frontend/src/components.tsx
API and identity
- OAuth routes
app/api/routes_auth.py - Sync routes
app/api/routes_sync.py - Developer routes
app/api/routes_developers.py - Identity routes
app/api/routes_me.py - Sessions
app/services/sessions.py - OAuth service
app/services/oauth.py
Ingestion pipeline
- Job worker
app/services/jobs.py - GitHub activity
app/services/github_activity.py - GitHub client
app/github.py - Event normalizers
app/normalizers.py - Ingestion service
app/services/ingestion.py
Profile intelligence
- Domain inference
app/services/domains.py - Profile service
app/services/profiles.py
Persistence
- PostgreSQL
- Data models
app/models.py - Schema setup
app/schema.py
Other components
- Developer
Connections 29
- Developer → React SPA: uses
- React SPA → Developer search: renders
frontend/src/App.tsx - React SPA → Profile view: renders
frontend/src/App.tsx - Developer search → API client: requests
frontend/src/pages/Home.tsx - Profile view → API client: requests
frontend/src/pages/Developer.tsx - Profile view → Profile components: renders
frontend/src/pages/Developer.tsx - API client → Developer routes: calls API
- API client → Sync routes: calls API
- Developer → OAuth routes: signs in
- OAuth routes → OAuth service: exchanges code
app/api/routes_auth.py - OAuth routes → Sessions: creates session
app/api/routes_auth.py - OAuth routes → Job worker: enqueues sync
app/api/routes_auth.py - Developer → Sync routes: requests sync
- Sync routes → Job worker: enqueues job
app/api/routes_sync.py - Job worker → Ingestion service: runs ingestion
app/services/jobs.py - Ingestion service → GitHub activity: fetches bundle
app/services/ingestion.py - GitHub activity → GitHub client: fetches data
app/services/github_activity.py - GitHub client → Event normalizers: normalizes data
- GitHub client → Developer: reads GitHub
app/github.py - Ingestion service → Domain inference: classifies repos
app/services/ingestion.py - Ingestion service → PostgreSQL: upserts data
- Job worker → PostgreSQL: records jobs
app/services/jobs.py - Profile service → PostgreSQL: reads profiles
- Developer routes → Profile service: gets profile
app/api/routes_developers.py - Identity routes → Profile service: gets profile
app/api/routes_me.py - Profile service → Domain inference: builds signals
app/services/profiles.py - PostgreSQL → Data models: stores
app/models.py - Schema setup → PostgreSQL: initializes schema
- OAuth service → Developer: authenticates via GitHub