Backend API for the Funnel audio note summarizer app built with Deno.
- Deepgram Integration Guide - How we use Deepgram for real-time transcription
- Deepgram Sequence Diagram - Visual flow of the transcription process
- Recording Flow - Overall recording and processing flow
-
Copy
.env.exampleto.envand add your API keys:cp .env.example .env
-
Add your API keys to
.env:OPENAI_API_KEY- For Whisper audio transcriptionANTHROPIC_API_KEY- For Claude text summarization
Run the development server with auto-reload:
deno task devTranscribes audio files using OpenAI Whisper.
Request:
- Method:
POST - Content-Type:
multipart/form-data - Body:
audiofield with audio file (mp3, mp4, wav, m4a) - Max file size: 25MB
Response:
{ "transcript": "The transcribed text...", "duration": 123.45 }Generates bullet point summary using Anthropic Claude.
Request:
- Method:
POST - Content-Type:
application/json - Body:
{ "transcript": "The text to summarize..." }Response:
{ "bulletSummary": [ "First key point", "Second key point", "Action item or task" ] }- Create a new project on Deno Deploy
- Set environment variables in the project settings:
OPENAI_API_KEYANTHROPIC_API_KEY
- Deploy using GitHub integration or Deno Deploy CLI
Run in production:
deno task startdeno task dev- Run development server with watch modedeno task start- Run production serverdeno task fmt- Format codedeno task lint- Lint codedeno task check- Type checkdeno task precommit- Run all checks before committing