How yashodhar-exe/byte-guard works
Byte Guard is a digital risk protection prototype for investigating possible brand impersonation across social profiles, app listings, and web sources. Analysts configure brands and trusted official assets, launch scans, inspect findings and evidence, and review findings; the product explicitly does not take down or contact third-party accounts. The React app supports either a synthetic demo workspace or a Supabase-backed workspace, with a Supabase Edge Function responsible for live scan orchestration. The scan implementation and migrations were not excerpted, so their internal data-flow details are not expanded here.
Main entry points: App.tsx App and routes · workspace.tsx Workspace state · supabase.ts Supabase client · auth.tsx Authentication
Components 17
Application
- App and routes
src/App.tsx - Authentication
src/components/auth.tsx - Application shell
src/components/layout.tsx - Shared UI
src/components/ui.tsx
Workspace and brands
- Workspace state
src/data/workspace.tsx - Demo workspace
src/data/demo-data.ts - Brand assets
src/pages/brands.tsx - Workspace settings
src/pages/settings.tsx
Monitoring and review
- Source monitoring
src/pages/monitor.tsx - Risk dashboard
src/pages/dashboard.tsx - Findings review
src/pages/findings.tsx - Heuristic detection
src/detection/engine.ts
Live scan backend
- Supabase client
src/lib/supabase.ts - Live scan orchestrator
supabase/functions/scan-brand/index.ts - Workspace schema
supabase/migrations
Other components
- Analyst
- Discovery providers
Connections 19
- Analyst → App and routes: uses
README.md - App and routes → Authentication: routes to
src/App.tsx - App and routes → Workspace state: provides
src/App.tsx - App and routes → Application shell: renders
src/App.tsx - App and routes → Risk dashboard: routes to
src/App.tsx - App and routes → Brand assets: routes to
src/App.tsx - App and routes → Source monitoring: routes to
src/App.tsx - App and routes → Findings review: routes to
src/App.tsx - App and routes → Workspace settings: routes to
src/App.tsx - Authentication → Supabase client: authenticates with
src/components/auth.tsx - Workspace state → Demo workspace: loads
src/data/workspace.tsx - Workspace state → Supabase client: reads and writes
src/data/workspace.tsx - Brand assets → Workspace state: creates assets
src/pages/brands.tsx - Source monitoring → Workspace state: reads scans
src/pages/monitor.tsx - Risk dashboard → Workspace state: reads summary
src/pages/dashboard.tsx - Findings review → Workspace state: reviews findings
src/pages/findings.tsx - Workspace state → Live scan orchestrator: invokes
src/data/workspace.tsx - Supabase client → Workspace schema: uses project data
README.md - Live scan orchestrator → Discovery providers: uses adapters
README.md