How sujay-pravin/swiftgist works
Purpose and Runtime Shape
SwiftGist is a two-tier meeting-audio intelligence application. A React/Vite browser client uploads recordings and displays processed meeting artifacts; a Python FastAPI service persists meeting state and runs asynchronous transcription and AI extraction. Primary launch points are backend/main.py and frontend/src/main.tsx.
Frontend Application Shell
frontend/src/App.tsx composes the meeting workspace: history navigation, upload initiation, audio playback, and result panels. frontend/src/api/client.ts is the browser/backend boundary, using the configured VITE_API_BASE_URL. frontend/src/hooks/useMeetings.ts centralizes client-side meeting retrieval, selection, upload/process state, and deletion behavior.
Meeting Workspace and Interaction
The selected meeting is rendered through a coordinated UI: frontend/src/components/MeetingsSidebar.tsx exposes persisted history; frontend/src/components/AudioPlayer.tsx plays the source recording; and frontend/src/components/KeyPointsPanel.tsx, frontend/src/components/ActionItemsPanel.tsx, and frontend/src/components/EventsPanel.tsx present AI-generated structured data. frontend/src/hooks/useAudioPlayer.ts is the audio synchronization boundary, allowing timestamped key points to seek within the recording.
Upload and API Boundary
frontend/src/components/UploadModal.tsx submits supported audio files to the backend. FastAPI routing in backend/routes/meetings.py owns the meeting HTTP lifecycle: upload/create, listing and retrieval, status/result access, and deletion. backend/main.py configures the service application and mounts these routes, forming the backend entry boundary used by the frontend.
Asynchronous AI Processing Pipeline
Upload returns before intelligence is ready; backend background processing advances a persisted meeting through transcription and summarization. backend/services/transcription.py sends audio to Groq Whisper Large V3 Turbo and produces transcript content with segment-level timestamps. backend/services/summarization.py submits the transcript to Google Gemini/Gemma to extract key points, assigned/prioritized action items, and calendar events.
Persistence and Domain Model
backend/models.py defines the persisted meeting and structured intelligence domain shape shared conceptually with the frontend types in frontend/src/types/meeting.ts. backend/database.py establishes database access and storage lifecycle. This is the durable boundary between request handling/background work and later history/result reads.
Infrastructure and External Dependencies
The backend requires Python 3.10+, FastAPI dependencies from backend/requirements.txt, and environment-driven credentials/configuration in backend/config.py and backend/.env.example. It integrates with Groq for speech-to-text and Google AI for structured summarization. The frontend requires Node 18+, builds/runs with Vite (frontend/package.json), and receives its backend endpoint through frontend/.env.example. The README identifies Render free-tier deployment constraints and practical upload limits.
Main entry points: App.tsx Meeting workspace · transcription.py Transcription stage · meetings.py Meeting HTTP lifecycle · database.py Database access
Components 17
Browser Client
- React/Vite entry
frontend/src/main.tsx - Meeting workspace
frontend/src/App.tsx - Meeting state · Retrieval, selection, upload state, and deletion.
frontend/src/hooks/useMeetings.ts - Backend API client · Uses VITE_API_BASE_URL.
frontend/src/api/client.ts - Audio upload
frontend/src/components/UploadModal.tsx - Meeting history
frontend/src/components/MeetingsSidebar.tsx - Playback and seeking · Synchronizes timestamped results with source audio.
frontend/src/hooks/useAudioPlayer.ts - Intelligence panels · Key points, action items, and events.
frontend/src/components/KeyPointsPanel.tsx - Meeting types
frontend/src/types/meeting.ts
FastAPI Service
- Service entry · Configures and mounts meeting routes.
backend/main.py - Meeting HTTP lifecycle · Upload, history, status/results, and deletion.
backend/routes/meetings.py - Meeting domain model · Meeting state and structured intelligence artifacts.
backend/models.py - Database access
backend/database.py - Transcription stage · Produces transcript segments with timestamps.
backend/services/transcription.py - Extraction stage · Extracts key points, action items, and events.
backend/services/summarization.py
AI Providers
- Groq Whisper · Whisper Large V3 Turbo.
- Google AI · Gemini/Gemma summarization.
Connections 21
- React/Vite entry → Meeting workspace: renders
- Meeting workspace → Meeting state: uses
- Meeting workspace → Audio upload: opens
- Meeting workspace → Meeting history: renders
- Meeting workspace → Playback and seeking: coordinates
- Meeting workspace → Intelligence panels: renders
- Meeting state → Backend API client: requests
- Audio upload → Backend API client: uploads audio
- Intelligence panels → Playback and seeking: seeks by timestamp
- Meeting types → Meeting state: shapes state
- Backend API client → Meeting HTTP lifecycle: meeting HTTP API
- Service entry → Meeting HTTP lifecycle: mounts
- Meeting HTTP lifecycle → Database access: reads and writes
- Meeting HTTP lifecycle → Transcription stage: starts asynchronously
- Transcription stage → Groq Whisper: transcribes audio
- Transcription stage → Extraction stage: passes transcript
- Extraction stage → Google AI: extracts intelligence
- Transcription stage → Database access: persists transcript/status
- Extraction stage → Database access: persists results/status
- Meeting domain model → Database access: defines stored records
- Meeting domain model → Meeting types: conceptual contract