How bitsfront/bitsfront-mvp works
Purpose and Entry Points
This is a React/TypeScript security-intelligence dashboard, organized as a single-page client application with many operational views: threat monitoring, incidents, exposure, governance, reporting, and asset intelligence. The browser entry chain is index.html → src/main.tsx → src/App.tsx. A separate server.ts suggests an optional server-side runtime or local integration boundary.
Application Shell and Navigation
src/App.tsx is the likely orchestration point for application state, screen selection, authentication gating, and composition of dashboard modules. Identity and access UI are separated into src/components/LoginView.tsx, src/components/AuthModal.tsx, and src/components/LockScreen.tsx; these form the primary user-session boundary before protected operational views are shown.
Operational Dashboard Domains
The component layer is partitioned by security workflow rather than generic UI primitives:
• Command, overview, and live status: src/components/AICommandCenter.tsx, src/components/OverviewDashboard.tsx, src/components/ActiveMonitoring.tsx.
• Threat and breach intelligence: src/components/ThreatIntelligenceFeeds.tsx, src/components/BreachIntelligence.tsx, src/components/DarkWebMonitoring.tsx.
• Incident handling and response: src/components/IncidentsView.tsx, src/components/TriageView.tsx, src/components/ResponseView.tsx.
• Asset, people, and exposure analysis: src/components/DigitalAssetInventory.tsx, src/components/PeopleIntelligence.tsx, src/components/ExposureView.tsx.
• Governance and reporting: src/components/GovernanceEndpoints.tsx, src/components/ReportingView.tsx, src/components/RegulatoryOverviewDashboard.tsx.
These views are likely selected from the shell and consume shared local, Firebase-backed, or AI-derived data.
Data and Intelligence Inputs
The repository contains bundled datasets that can seed or drive dashboard visualizations: src/data/breachData.ts, src/data/incidentData.ts, src/data/threatFeedsData.ts, src/data/sampleAssets.ts, and src/data/vulnerabilities.json. This establishes a local-data boundary: UI components can render meaningful security scenarios without requiring live external feeds. Domain typing begins with src/types/asset.ts.
External-Service Boundaries
Firebase is the principal persistence/authentication integration, isolated in src/lib/firebase.ts, with access controls represented by firestore.rules and DRAFT_firestore.rules. The repository also includes Firebase deployment/configuration artifacts: firebase-applet-config.json and firebase-blueprint.json.
Generative-AI integration is isolated behind src/services/geminiService.ts; AI-facing screens such as src/components/CognitionEngine.tsx and src/components/AIAgentsInventory.tsx should depend on that service boundary rather than call providers directly.
Reporting and Output
PDF/report export capability is encapsulated in src/lib/pdfExport.ts, separating document generation from operational screens such as src/components/ReportingView.tsx and src/components/PostMortemView.tsx. This is an important output boundary for regulatory or incident-response workflows.
Runtime and Delivery Shape
The frontend is a Vite-based React application, indicated by vite.config.ts, src/main.tsx, and index.html, with Bun/npm lockfiles (bun.lock, package-lock.json) supporting JavaScript package execution. Client environment values are expected through .env.example; Firebase and Gemini credentials/configuration should remain outside the UI components and flow through their respective integration modules.
Main entry points: App.tsx Application Shell · breachData.ts Bundled Security Data · DigitalAssetInventory.tsx Asset & Exposure · firebase.ts Firebase Adapter
Components 18
Runtime
- Browser HTML
index.html - React Bootstrap
src/main.tsx - Optional Server · Local or server-side integration boundary.
server.ts
App Shell & Access
- Application Shell · Selects screens and gates operational views.
src/App.tsx - Session Access UI · Login, modal, and lock-screen experiences.
src/components/LoginView.tsx
Security Operations
- Command & Monitoring · Command center, overview, and active monitoring.
src/components/AICommandCenter.tsx - Threat Intelligence · Threat feeds, breach intelligence, and dark-web monitoring.
src/components/ThreatIntelligenceFeeds.tsx - Incident Response · Incident, triage, and response workflows.
src/components/IncidentsView.tsx - Asset & Exposure · Asset inventory, people intelligence, and exposure analysis.
src/components/DigitalAssetInventory.tsx - Governance Views · Governance, reporting, and regulatory dashboards.
src/components/GovernanceEndpoints.tsx - AI Intelligence Views · Cognition engine and AI-agent inventory.
src/components/CognitionEngine.tsx
Data & Integrations
- Bundled Security Data · Local breach, incident, feed, asset, and vulnerability scenarios.
src/data/breachData.ts - Asset Types
src/types/asset.ts - Firebase Adapter · Central Firebase integration boundary.
src/lib/firebase.ts - Firestore Rules
firestore.rules - Gemini Service · Isolates generative-AI provider access.
src/services/geminiService.ts
Reporting
- Reporting Screens · Reporting and post-mortem operational output.
src/components/ReportingView.tsx - PDF Export · Encapsulates report export.
src/lib/pdfExport.ts
Connections 20
- Browser HTML → React Bootstrap: loads
- React Bootstrap → Application Shell: mounts
- Application Shell → Session Access UI: gates session
- Application Shell → Command & Monitoring: selects
- Application Shell → Threat Intelligence: selects
- Application Shell → Incident Response: selects
- Application Shell → Asset & Exposure: selects
- Application Shell → Governance Views: selects
- Application Shell → AI Intelligence Views: selects
- Session Access UI → Firebase Adapter: authenticates via
- Firebase Adapter → Firestore Rules: enforced by
- Command & Monitoring → Bundled Security Data: renders data
- Threat Intelligence → Bundled Security Data: renders feeds
- Incident Response → Bundled Security Data: renders incidents
- Asset & Exposure → Bundled Security Data: renders assets
- Asset & Exposure → Asset Types: uses
- AI Intelligence Views → Gemini Service: requests intelligence
- Governance Views → Reporting Screens: opens reports
- Reporting Screens → PDF Export: exports
- Optional Server → Firebase Adapter: optional integration