How codeyantra-technologies/devcaught works
DevCaught is a local-first developer inbox for capturing development email and webhooks, detecting useful OTP, link, and commerce references, and inspecting them in a dashboard. The main flow is a local app or SMTP client into the server runtime, normalization and parsing, SQLite persistence, HTTP APIs, and the inbox UI; test email and webhook capture are alternate entry points. The graph preserves the documented settings and message-inspection capabilities. Edges use README or excerpted source evidence; some UI/API wiring and unsampled subsystems are represented only where documented.
Main entry points: app.ts HTTP API · inboxService.ts Inbox service · runParsers.ts Detection runner · handlers.ts Message handlers
Components 23
Capture and runtime
- Server runtime
apps/server/src/runtime.ts - SMTP receiver
apps/server/src/smtp/receiver.ts
Normalization and detection
- Webhook normalizer
apps/server/src/ingest/normalizeWebhook.ts - Email normalizer
apps/server/src/ingest/normalizeEmail.ts - Inbox service
apps/server/src/ingest/inboxService.ts - Detection runner
packages/parsers/src/runParsers.ts - OTP detection
packages/parsers/src/otpParser.ts - Link detection
packages/parsers/src/linkParser.ts - Commerce detection
packages/parsers/src/commerceParser.ts
Persistence and API
- HTTP API
apps/server/src/http/app.ts - Message handlers
apps/server/src/http/handlers.ts - SQLite inbox
apps/server/src/store/sqlite.ts
Dashboard
- Test composer
src/components/inbox/TestEmailForm.tsx - Inbox dashboard
src/components/inbox/InboxPage.tsx - Message detail
src/components/inbox/MessageDetail.tsx - HTML preview
src/components/inbox/HtmlPreview.tsx - Listener settings
src/components/inbox/SettingsPage.tsx - Webhook setup
src/components/inbox/WebhookSetup.tsx - Dashboard API client
src/lib/api.ts - Dashboard routes
src/routes/index.tsx
Other components
- Local app
- SMTP client
- Webhook sender
Connections 26
- Local app → SMTP receiver: sends mail
- SMTP client → SMTP receiver: connects SMTP
- Server runtime → SMTP receiver: starts receiver
apps/server/src/runtime.ts - SMTP receiver → Inbox service: ingests mail
- Test composer → Message handlers: submits test
- Message handlers → Inbox service: ingests test
apps/server/src/http/handlers.ts - Webhook sender → HTTP API: posts webhook
- HTTP API → Webhook normalizer: normalizes request
apps/server/src/http/app.ts - HTTP API → Inbox service: ingests webhook
apps/server/src/http/app.ts - Server runtime → Email normalizer: provides normalizer
apps/server/src/runtime.ts - Inbox service → Detection runner: runs detections
apps/server/src/ingest/inboxService.ts - Detection runner → OTP detection: checks OTPs
packages/parsers/src/index.ts - Detection runner → Link detection: checks links
packages/parsers/src/index.ts - Detection runner → Commerce detection: checks commerce
packages/parsers/src/index.ts - Inbox service → SQLite inbox: stores message
apps/server/src/ingest/inboxService.ts - Server runtime → SQLite inbox: opens store
apps/server/src/runtime.ts - HTTP API → Message handlers: routes requests
apps/server/src/http/app.ts - Message handlers → SQLite inbox: reads and mutates
apps/server/src/http/handlers.ts - Inbox dashboard → Dashboard API client: loads inbox
- Dashboard API client → HTTP API: requests data
- Dashboard routes → Inbox dashboard: renders inbox
src/routes/index.tsx - Inbox dashboard → Message detail: shows details
- Message detail → HTML preview: previews HTML
- Listener settings → Dashboard API client: checks status
- Webhook setup → Dashboard API client: fetches status
src/components/inbox/WebhookSetup.tsx - Webhook setup → HTTP API: sends test request
src/components/inbox/WebhookSetup.tsx