How shlok926/lattix-q works
Lattix-Q is an enterprise post-quantum migration and risk-assessment platform. Users enter through an authenticated dashboard to inspect cryptographic assets, scan code, explore classical/PQC algorithms, simulate quantum attacks, and review migration or compliance outputs. The API gateway exposes service routes; separate services implement cryptography, attacks, benchmarking, reports, scanning, and threat analysis. The analyst flow additionally manages conversational sessions and builds context-aware prompts. Service internals and several UI pages are unsampled, so their detailed calls are not inferred; README-documented service integrations are shown as dashed.
Main entry points: App.tsx Dashboard and labs · router.py Versioned API routes · main.py API gateway · useSession.ts Analyst session hook
Components 27
Web Portal
- Dashboard and labs
frontend/src/App.tsx - Frontend authentication
frontend/src/context/AuthContext.tsx - Asset inventory
frontend/src/pages/AssetInventory.tsx - Migration simulator
frontend/src/pages/MigrationSimulator.tsx - Batch scanner
frontend/src/pages/BatchScanner.tsx - Crypto workbench
frontend/src/pages/CryptoWorkbench.tsx
Gateway & Access
- API gateway
services/api-gateway/app/main.py - Versioned API routes
services/api-gateway/app/api/router.py - Login and tokens
services/api-gateway/app/api/v1/auth.py - Service configuration
services/api-gateway/app/config.py
Crypto & Quantum Labs
- Quantum attack lab
services/quantum-attack-service/app/main.py - Classical crypto APIs
services/classical-crypto-service/app/main.py - PQC algorithms
services/pqc-service/app/main.py
Migration & Assurance
- Performance benchmarks
services/benchmark-service/app/core/runner.py - Compliance reports
services/report-service/app/api/report.py - PDF export
services/report-service/app/core/pdf_export.py - Code scan and refactor
services/ai-service/app/api/v1/router.py
AI Threat Analyst
- Threat analyst UI
frontend/src/pages/ThreatAnalyst/index.tsx - Analyst session hook
frontend/src/hooks/useSession.ts - Analyst API client
frontend/src/api/analystApi.ts - Analyst state
frontend/src/store/analystStore.ts - Analyst API service
services/ai-analyst-service/app/api/analyst.py - Conversation management
services/ai-analyst-service/app/core/conversation_manager.py - Contextual prompt engine
services/ai-analyst-service/app/core/prompt_engine.py - Model client
services/ai-analyst-service/app/core/claude_client.py - Session store
services/ai-analyst-service/app/session/redis_store.py
Other components
- Enterprise user
Connections 26
- Enterprise user → Dashboard and labs: uses
README.md - Dashboard and labs → Frontend authentication: provides auth
frontend/src/App.tsx - Dashboard and labs → Asset inventory: routes to
frontend/src/App.tsx - Dashboard and labs → Migration simulator: routes to
frontend/src/App.tsx - Dashboard and labs → Batch scanner: routes to
frontend/src/App.tsx - Dashboard and labs → Crypto workbench: routes to
frontend/src/App.tsx - Dashboard and labs → Threat analyst UI: routes to
frontend/src/App.tsx - Frontend authentication → Login and tokens: authenticates via
- Dashboard and labs → API gateway: sends API requests
README.md - API gateway → Versioned API routes: mounts routes
services/api-gateway/app/main.py - API gateway → Service configuration: configures
services/api-gateway/app/main.py - Versioned API routes → Quantum attack lab: routes requests
README.md - Versioned API routes → Classical crypto APIs: routes requests
README.md - Versioned API routes → PQC algorithms: routes requests
README.md - Versioned API routes → Performance benchmarks: routes requests
README.md - Versioned API routes → Compliance reports: routes requests
README.md - Versioned API routes → Code scan and refactor: routes requests
README.md - Threat analyst UI → Analyst session hook: uses session
- Analyst session hook → Analyst API client: requests sessions
frontend/src/hooks/useSession.ts - Analyst session hook → Analyst state: updates state
frontend/src/hooks/useSession.ts - Analyst API client → Analyst API service: calls service
- Analyst API service → Conversation management: delegates conversation
- Conversation management → Session store: stores sessions
services/ai-analyst-service/app/core/conversation_manager.py - Conversation management → Contextual prompt engine: builds prompts
- Contextual prompt engine → Model client: supplies prompt
- Compliance reports → PDF export: exports PDF
services/report-service/app/api/report.py