How recallai/meeting-direct-connect works
Project type and purpose
• This is a full-stack sample app demonstrating “botless” direct connect to Recall.ai for real-time media and event streaming from Zoom RTMS and Google Meet.
• The user interacts with a simple web UI; the backend manages OAuth, webhook endpoints, and a WebSocket bridge to Recall.ai.
File structure
• Top level: configuration files (.env.example, package.json, tsconfig.json), frontend assets (public/), and backend source (src/).
• public/index.html + public/style.css: single-page UI.
• src/index.ts: HTTP server + WebSocket server + webhook handlers.
• src/types.ts: shared type definitions.
• No separate “frontend” or “backend” repo—both live in one codebase.
README insights
• The app:
• Hosts a web UI at localhost:<PORT> (or via Ngrok).
• Exposes webhook endpoints (/zoom-webhook, /oauth-callback/zoom, etc.).
• Opens a WebSocket to Recall.ai’s Bot API to receive real-time events.
• Bridges those events over WebSocket to the browser.
• External integrations: Zoom RTMS app (OAuth + webhook), Google Meet Media API (OAuth + REST), Ngrok for public tunneling.
Main components and their interactions
a. Frontend UI (Browser)
• HTTP GET for HTML/CSS/JS
• WebSocket client to backend for real-time logs
• HTTP POST (or form submissions) to backend to initiate connections
b. Backend Node.js/TypeScript Server
• Serves static assets
• Offers REST endpoints for OAuth callbacks and meeting-connect requests
• Receives Zoom RTMS webhooks
• Manages a WebSocket client connection to Recall.ai Bot API
• Broadcasts Recall.ai events via its WebSocket server to the browser
c. External Services
• Recall.ai Bot API (WebSocket-based streaming)
• Zoom RTMS (OAuth v2, webhook event delivery)
• Google Meet Media API (OAuth v2, REST)
• Ngrok (tunneling local ports to a public URL)
d. Configuration & Environment
• .env holds RECALL_API_KEY, Zoom credentials, port, etc.
• eslint.config.mjs, tsconfig.json for code quality and compilation
Architectural patterns & principles
• Separation of concerns: UI layer vs. real-time event broker layer
• Event-driven webhook handling for Zoom
• WebSocket duplex channels for real-time streaming to Recall.ai and the browser
• Single codebase for ease of small-scale samples; can evolve into microservices if needed