How amin-nepali/omnimail-central works
OmniMail Central is a local-first dashboard for combining read-only Gmail from multiple Google accounts. The main workflow links accounts through Google OAuth, stores account credentials in Firestore, then syncs recent Inbox, Spam, and Trash messages from Gmail for display, search, filtering, and detail viewing. The sampled server owns the API operations and transforms Gmail payloads through the message extractor; the browser calls those endpoints. The Vercel adapter delegates requests to the same server. Some planned capabilities are documented but their implementation was not sampled.
Main entry points: app.js Inbox dashboard · server.js API server · messages.js Message extraction · [...route].js Vercel API adapter
Components 14
Dashboard
- Inbox dashboard
public/app.js - Search and views
public/app.js - Message details
public/app.js - Workspace sign-in
public/app.js
API and access
- Vercel API adapter
api/[...route].js - API server
server.js
Mail workflow
- Google account linking
server.js - Connected accounts
server.js - Category sync
server.js - Message extraction
lib/messages.js
External services
- Gmail API
- Google OAuth
- Firestore accounts
Other components
- Operator
Connections 19
- Operator → Inbox dashboard: uses
README.md - Inbox dashboard → Workspace sign-in: signs in
public/app.js - Inbox dashboard → API server: requests
public/app.js - Inbox dashboard → Search and views: renders
public/app.js - Search and views → Message details: opens
public/app.js - Inbox dashboard → Google account linking: starts linking
public/app.js - Inbox dashboard → Category sync: requests sync
public/app.js - Vercel API adapter → API server: delegates to
api/[...route].js - API server → Google account linking: routes OAuth
server.js - Google account linking → Google OAuth: exchanges code
README.md - Google account linking → Firestore accounts: stores credentials
server.js - API server → Connected accounts: serves account requests
server.js - Connected accounts → Firestore accounts: reads and deletes
server.js - API server → Category sync: handles sync
server.js - Category sync → Firestore accounts: reads accounts
server.js - Category sync → Gmail API: lists and fetches
server.js - Category sync → Message extraction: normalizes messages
server.js - Message extraction → Inbox dashboard: returns message data
README.md - API server → Workspace sign-in: checks sessions
server.js