How spibyc/plm works
PLM is a self-hosted product lifecycle, engineering, inventory, supplier, and controlled-document database. The main workflow spans part and revision management, purchasing and receipt, inventory lots, released BOMs, production builds, and serial traceability; controlled documents form a parallel revision-and-approval workflow. The graph includes the browser/API boundary, domain services, persistence, and the documented file store. Some backend routes and services were not sampled, so their internal links are omitted or marked unverified rather than inferred.
Main entry points: main.py FastAPI application · api.ts API client · inventory.py Inventory routes · items.py Items and revisions
Components 28
Web client
- PLM browser app
frontend/src/main.tsx - Session state
frontend/src/lib/auth.tsx - API client
frontend/src/lib/api.ts - Parts and revisions
frontend/src/pages/PartDetail.tsx - Lots and stock
frontend/src/pages/Lots.tsx - Purchasing and genealogy
frontend/src/pages/Traceability.tsx - Document register
frontend/src/pages/Documents.tsx
API and identity
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/api/routes/auth.py - Actor and permission checks
backend/app/api/deps.py - Item routes
backend/app/api/routes/items.py - Inventory routes
backend/app/api/routes/inventory.py - Traceability routes
backend/app/api/routes/traceability.py - Document routes
backend/app/api/routes/documents.py - Authentication service
backend/app/services/auth.py
Engineering data
- Items and revisions
backend/app/services/items.py - Part data models
backend/app/models/items.py - Controlled documents
backend/app/services/documents.py
Inventory and traceability
- Inventory operations
backend/app/services/inventory.py - Locations
backend/app/services/locations.py - Purchasing and production
backend/app/services/traceability.py - Traceability models
backend/app/models/traceability.py
Quality controls
- Audit trail
backend/app/services/audit.py - Electronic signatures
backend/app/services/signatures.py - Controlled file storage
backend/app/services/files.py
Other components
- Staff or viewer
- PostgreSQL
- Content-addressed filestore
Connections 36
- Staff or viewer → PLM browser app: uses
README.md - PLM browser app → Session state: provides session
frontend/src/main.tsx - Session state → API client: calls
frontend/src/lib/auth.tsx - Parts and revisions → API client: requests data
frontend/src/pages/PartDetail.tsx - Lots and stock → API client: requests data
frontend/src/pages/Lots.tsx - Purchasing and genealogy → API client: requests data
frontend/src/pages/Traceability.tsx - Document register → API client: requests data
- API client → FastAPI application: sends API requests
README.md - FastAPI application → Authentication routes: registers
backend/app/main.py - FastAPI application → Item routes: registers
backend/app/main.py - FastAPI application → Inventory routes: registers
backend/app/main.py - FastAPI application → Traceability routes: registers
backend/app/main.py - FastAPI application → Document routes: registers
backend/app/main.py - Authentication routes → Authentication service: delegates
backend/app/api/routes/auth.py - Authentication routes → Actor and permission checks: resolves actor
backend/app/api/routes/auth.py - Item routes → Items and revisions: delegates
backend/app/api/routes/items.py - Inventory routes → Inventory operations: delegates
backend/app/api/routes/inventory.py - Inventory routes → Locations: uses locations
backend/app/api/routes/inventory.py - Traceability routes → Purchasing and production: delegates
backend/app/api/routes/traceability.py - Document routes → Controlled documents: delegates
- Authentication service → Audit trail: records events
backend/app/services/auth.py - Items and revisions → Inventory operations: uses inventory
backend/app/services/items.py - Items and revisions → Audit trail: records changes
backend/app/services/items.py - Inventory operations → Audit trail: records changes
backend/app/services/inventory.py - Inventory operations → Electronic signatures: uses signatures
backend/app/services/inventory.py - Items and revisions → Electronic signatures: uses signatures
backend/app/services/items.py - Item routes → Controlled file storage: uses file service
backend/app/api/routes/items.py - Inventory routes → Controlled file storage: uses file service
backend/app/api/routes/inventory.py - Items and revisions → Part data models: uses models
backend/app/services/items.py - Purchasing and production → Traceability models: uses models
- Controlled documents → PostgreSQL: persists records
- Item routes → PostgreSQL: reads and writes
backend/app/api/routes/items.py - Inventory routes → PostgreSQL: reads and writes
backend/app/api/routes/inventory.py - Controlled file storage → Content-addressed filestore: stores files
- FastAPI application → PostgreSQL: uses PostgreSQL
README.md - FastAPI application → Content-addressed filestore: uses filestore
README.md