A Next.js app that takes Fireflies meeting webhooks, extracts decisions and risks, drafts Linear issues with OpenAI and posts summaries to Slack. Corsair wires the three services together.
Brieflane is a small ops app that ingests meeting data from Fireflies, pulls the summary and transcript, analyzes decisions and risks, drafts Linear issues, and can post summaries or issues to Slack. Corsair is the central orchestrator. It wires Fireflies, Linear and Slack together and the app exposes the webhook endpoint that starts the flow.
Corsair is a developer SDK that connects third-party services through one API. You register plugins once, and Corsair handles auth, credential encryption and method routing for each service.
- Draft Linear issues: issues are drafted from meeting content.
- Decisions and risks: extracted and saved for each meeting run.
- Slack posting: summaries or issues can be posted to Slack through the Corsair Slack plugin.
- Fallback content: a default summary and transcript lets you test without paid Fireflies access.
- AI chat agent: a chat panel for meeting, Slack and Linear actions, using the OpenAI Agents flow through Corsair's MCP adapter.
- Local storage: a SQLite database (
corsair.db) holds runs, drafts and logs.
| Layer | Tool |
|---|---|
| Framework | Next.js, React, tRPC |
| Integrations | Corsair with the Fireflies, Linear and Slack plugins |
| Meetings | Fireflies |
| Issues | Linear |
| Messaging | Slack |
| LLM | OpenAI (OpenAI Agents SDK) |
| Database | SQLite (better-sqlite3) |
- Node.js 18 or later
- A Fireflies account
- A Linear API key
- A Slack bot token and signing secret, if you use Slack
- An OpenAI API key
- A value for
CORSAIR_KEK - ngrok and Postman (or any HTTP client) to test the webhook locally
git clone https://github.com/Studio1HQ/brieflane.git
cd brieflane
npm installCreate a .env file in the project root (see .env.example).
| Variable | Description |
|---|---|
FIREFLIES_API_KEY |
Fireflies API key. See Fireflies credentials. |
FIREFLIES_WEBHOOK_SECRET |
Fireflies webhook secret. |
LINEAR_API_KEY |
Linear API key. See Linear credentials. |
SLACK_BOT_TOKEN |
Slack bot token (xoxb-...). See Slack credentials. |
SLACK_SIGNING_SECRET |
Slack signing secret. |
OPENAI_API_KEY |
OpenAI key. Without it the app skips AI analysis and draft issues are not created. |
CORSAIR_KEK |
A secure value used by Corsair for credential encryption. |
Create the SQLite tables, then start the app:
node setup-app-tables.cjs
npm run devThe app runs at http://localhost:3000. To test the webhook:
- In Fireflies, upload a meeting recording or join a real meeting. Open it from My Meetings and copy the meeting ID from the URL.
- Expose the local server with
ngrok http 3000. - Send a
POSTrequest (for example from Postman) tohttps://<your-ngrok-url>/api/webhookwith the headerContent-Type: application/jsonand a raw JSON body:
{
"eventType": "Transcription",
"meetingId": "your_meeting_id_here",
"clientReferenceId": "test-session"
}Replace meetingId with the ID you copied. clientReferenceId can be any name. A 200 OK means the webhook was processed. The generated data then appears in the app.
- Webhook: Fireflies sends meeting data to
/api/webhook. - Fetch: the Corsair Fireflies plugin fetches the transcript and summary.
- Fallback: if the transcript or summary is unavailable (for example on a free Fireflies plan), the app uses the default summary and transcript defined in
src/app/api/webhook/route.ts. Edit it to test other scenarios. - Analyze: if
OPENAI_API_KEYis set, the OpenAI Agents flow through Corsair's MCP adapter generates a short meeting title, draft Linear issues, decisions and risks. - Persist: meeting runs, decisions, risks and draft issues are stored in
corsair.db. - Slack: summaries or issues can be posted through the Corsair Slack plugin.
Key files:
src/server/corsair.ts: bootstraps Corsair and registers the Fireflies, Linear and Slack plugins.src/app/api/webhook/route.ts: accepts webhook payloads, fetches data, falls back if needed, runs AI generation and stores results.src/app/api/chat/route.ts: the AI agent for chat-based actions.setup-app-tables.cjs: creates the SQLite tables.
Troubleshooting:
- If the transcript fetch fails and the fallback is used, check your Fireflies plan and API access.
- If draft issues are missing, check that
OPENAI_API_KEYis set. - If Slack messages do not appear, check that the Slack app is installed and has the required permissions.
- Corsair overview: the hosted SDK.
- Corsair introduction: getting started.
- Corsair plugins: registering plugins.
- OpenAI Agents via Corsair MCP adapter: how the AI agent is wired.
- Corsair: the SDK used here.
Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Corsair.
Browse more open-source examples at github.com/Studio1HQ.
studio1hq.com · Technical content, docs, video and DevRel for devtools


