You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next.js 16 frontend for the DeepMail email threat intelligence platform. Provides
a web interface for uploading email files, viewing analysis results, and managing
authentication tokens.
Leaflet canvas, marker render, hop path polylines, zoom controls
src/components/map/IpMarker.tsx
IpMarker
Risk-colored marker node with tooltip
src/components/map/IpSidebar.tsx
IpSidebar
Selected-node detail pane + report navigation
src/components/map/HopTimeline.tsx
HopTimeline
Received-chain slider/playback UI
src/app/analysis/[emailId]/map/page.tsx
MapPage
Fetches report and composes map + sidebar + timeline
Tech Stack
Framework: Next.js 16 with App Router
Language: TypeScript
Styling: CSS Modules + global CSS (Dracula theme)
Package Manager: Bun
Development
# Install dependencies
bun install
# Run development server
bun run dev
# Run lint
bun run lint
# Build for production
bun run build
# Run E2E tests
bun run test:e2e
# Run backend contract schema tests
bun run test:contract
Contract Safety
src/lib/contracts/results.ts contains runtime payload validation for /results/:email_id
Map page parses report payload through contract schema before rendering
Contract tests live in tests/contract/results.contract.test.ts