How mayur-web03/sih works
CryptoTrace’s checked-in source is a React/TypeScript investigation frontend, despite the README describing a FastAPI backend. Investigators enter through the landing/login flow and work in a dashboard that brings together case data, transaction tracing, risk, cross-case analysis, evidence, reports, and freeze requests. The graph shows only relationships supported by the excerpts or SOURCE INDEX; backend implementation details described in the README are not represented as repository nodes.
Main entry points: dashboard.tsx Investigation dashboard · FundFlowGraphInner.tsx Fund-flow graph · format.ts Formatting utilities · index.tsx Landing page
Components 19
Entry and navigation
- Landing page
src/routes/index.tsx - Login page
src/routes/login.tsx
Investigation workspace
- Investigation dashboard
src/routes/dashboard.tsx - Trace activity log
src/components/investigation/TerminalLog.tsx
Analysis and evidence
- Fund-flow graph
src/components/investigation/FundFlowGraphInner.tsx - Graph data builder
src/lib/buildGraphData.ts - Evidence panel
src/components/investigation/EvidencePanel.tsx - Transaction block view
src/components/investigation/BlockView.tsx - Risk engine
src/services/risk/RiskEngine.ts - Risk badge
src/components/shared/RiskBadge.tsx - Cross-case network
src/components/network/CrossCaseNetworkGraph.tsx
Data and services
- Case management
src/services/casesApi.ts - Trace API client
src/services/api.ts - Freeze requests
src/services/freezeRequestsApi.ts - Investigation reports
src/services/reportsApi.ts - Sample investigation data
src/data/mock.ts - Formatting utilities
src/lib/format.ts
Other components
- Investigator
- Investigation API
Connections 21
- Investigator → Landing page: opens
src/routes/index.tsx - Landing page → Login page: navigates to
src/routes/index.tsx - Investigator → Investigation dashboard: uses
- Investigation dashboard → Case management: loads cases
src/routes/dashboard.tsx - Investigation dashboard → Trace API client: requests traces
src/routes/dashboard.tsx - Trace API client → Investigation API: calls API
src/services/api.ts - Investigation dashboard → Fund-flow graph: renders
src/routes/dashboard.tsx - Fund-flow graph → Graph data builder: builds graph
src/components/investigation/FundFlowGraphInner.tsx - Fund-flow graph → Evidence panel: renders
src/components/investigation/FundFlowGraphInner.tsx - Fund-flow graph → Transaction block view: renders
src/components/investigation/FundFlowGraphInner.tsx - Investigation dashboard → Risk engine: uses
src/routes/dashboard.tsx - Investigation dashboard → Risk badge: renders
src/routes/dashboard.tsx - Investigation dashboard → Cross-case network: renders
src/routes/dashboard.tsx - Investigation dashboard → Freeze requests: manages requests
src/routes/dashboard.tsx - Investigation dashboard → Investigation reports: requests reports
src/routes/dashboard.tsx - Investigation dashboard → Sample investigation data: reads sample data
src/routes/dashboard.tsx - Investigation dashboard → Trace activity log: renders
src/routes/dashboard.tsx - Fund-flow graph → Formatting utilities: formats labels
src/components/investigation/FundFlowGraphInner.tsx - Graph data builder → Formatting utilities: converts values
src/lib/buildGraphData.ts - Evidence panel → Formatting utilities: formats values
src/components/investigation/EvidencePanel.tsx - Transaction block view → Risk engine: calculates risk
src/components/investigation/BlockView.tsx