Meeting Notebook is an Electron sample for the Recall.ai Desktop Recording SDK. It detects meetings, records with the user's permission, and turns live transcripts into a local notebook. An optional assistant generates notes and answers questions from finalized transcript passages.
Building your own app? Start with electron/dsdk/. It contains the reusable recorder and the logic for permission checks, recording attempts, upload recovery, and safe shutdown. Use electron/controller.ts as the example for your own business logic. That is where Meeting Notebook decides what to do with a meeting and its events.
Use Node 22.12+ on an Apple Silicon Mac.
npm ci
cp .env.sample .envFill in the git-ignored .env or set these variables in the launch environment. Nonempty launch variables take precedence. Restart the app after changing keys.
| Variable | Purpose |
|---|---|
RECALL_API_KEY |
Workspace key for recording and transcription. |
RECALL_REGION |
The workspace's Recall region. A fresh profile defaults to us-west-2. |
OPENAI_API_KEY |
Optional key for the meeting assistant. |
Run npm run dev, open Settings, and grant Accessibility, microphone, and screen capture. The sample's recording notice requires chat compliance messaging enabled for your Recall workspace. For Google Meet Raw Media, use Chrome as your default browser, enable Raw Media for the workspace, and run the Google Meet setup action before joining a call.
Join a supported meeting, choose Record, and check the capture mode, notice status, and live transcript. Stop recording and wait for upload processing before opening playback. The app sends captured media to your Recall workspace for processing. Cloud media defaults to seven-day retention. The notebook saves settings, notes, and transcripts locally. Development data lives under the ignored test-results/dev-profile directory.
Video capture is on by default. For audio-only recordings with transcription, turn off Capture video under Settings → Recording preferences, save, and grant System audio permission. Audio-only mode requires macOS 14.2 or later on Apple Silicon.
To use the optional assistant, set OPENAI_API_KEY and enable it for the meeting. It sends finalized transcript text, the meeting goal, and earlier AI notes to OpenAI. It generates notes and answers using transcript citations. The default model is gpt-6-luna, and the model is configurable in Settings → Meeting assistant.
| Part of the sample | What it does |
|---|---|
electron/dsdk/ |
Put this folder in your Electron main process and import from index.ts. DesktopRecorder uses the installed @recallai/desktop-sdk package. It owns native commands, attempt state, and the difference between capture ending and upload finishing. The folder also provides realtime decoding and partial/final transcript merging. |
electron/controller.ts |
Write your app's behavior here. The notebook listens to recorder events, updates its roster and live transcript, schedules late-join notices, and decides when a saved transcript replaces live text. It also supplies the permissions required for the notebook's capture mode and chooses when to poll. |
electron/recall.ts and electron/main.ts |
Supply an upload implementation and wire up the recorder's host. The sample builds its recording configuration in recall.ts and uses direct Recall calls from Electron's main process. Swap the adapter here if you use a server. |
electron/ipc.ts, electron/preload.ts, and electron/store.ts |
Expose app commands to the renderer and persist the state your product needs. This sample saves settings, transcripts, and notes locally. |
- Do something when a meeting ends or an upload completes. Add a method to
NotebookControllerand call it from the appropriateonRecorderEvent()case inelectron/controller.ts. Usecapture-endedfor work that can start as soon as recording ends. For work that needs a saved transcript or playback URL, add anupload-completedcase and check whether the artifact is ready. SeesyncNotebook()andplayback()for examples of checking artifact availability. - Change what Recall captures or add a Recall API call. Edit
recordingConfig()inelectron/recall.tsto change media, transcription, retention, or realtime subscriptions. Add Recall HTTP operations tocreateNotebookRecallApi()in the same file. If the controller needs to call the new operation, add it toRecallPortso a backend adapter can provide it too. - Add a button that runs a main-process action. Define the action in the controller, register its handler in
electron/ipc.ts, and expose it throughelectron/preload.tsfor the UI insrc/.
Change DesktopRecorder when you need to change the SDK lifecycle itself, such as how Start, Stop, or interrupted uploads are handled.
Install @recallai/desktop-sdk in your host app. The recorder accepts your upload implementation through UploadPort. The sample's controller constructor shows how to extend an attempt with notebook-specific fields. The example below uses the base recording attempt.
import {
DesktopRecorder,
createRecorderState,
type RecorderSettings,
type RecorderState,
type RecordingAttempt,
type UploadPort,
} from './electron/dsdk';
function createRecorder(
uploads: UploadPort<RecorderSettings>,
canUseUploads: () => boolean,
onChange: (state: RecorderState<RecorderSettings, RecordingAttempt>) => void,
) {
const state = createRecorderState<RecorderSettings, RecordingAttempt>(
{ region: 'us-west-2', preferRawMedia: true },
[],
);
return new DesktopRecorder({
uploads,
state,
createAttempt: (attempt) => attempt,
requireUploadAccess: () => {
if (!canUseUploads()) throw new Error('Connect your recording service before starting.');
},
canReadUpload: canUseUploads,
requiredPermissions: () => ['accessibility', 'microphone', 'screen-capture'],
changed: () => onChange(state),
});
}Use your workspace's region and choose the permissions for the capture you request. The example checks Accessibility, microphone, and screen capture for video. The notebook's requiredPermissions callback asks for System audio in place of screen capture when video is off. Use permission(...) in response to a setup action and render the latest observed permission state. Raw Media setup is a separate, platform-specific action before the call because it can restart the meeting app or browser. Read the actual capture mode from capture-started.attempt.rawMedia.
- Subscribe to recorder events and call
connect(). The renderer can show detected meetings from recorder state and send a Start command with the selected window ID. - Call
start(windowId)after the user chooses to record. The recorder checks readiness before allocating an upload and starts the native SDK with the token returned for that attempt. Usecapture-startedto show that recording is active. - Handle
realtimeevents in your controller. Register the callbacks you want in the upload configuration. This sample uses Recall's low-latency English transcription and subscribes to partial and final transcript events. - Call
control(attemptId, 'stop')for an explicit Stop. When the meeting window closes naturally, the SDK handles the stop. Usecapture-endedfor capture-side cleanup andupload-completedto check the artifact you need. Playback or a saved transcript can become available separately. - Use
needsUploadRefresh(attempt)andrefreshUpload(attemptId)to reconcile upload state. On quit, ask the user and calldrainForShutdown()if recording or uploads are still active. Keep status refreshes running while it drains, checkmayHaveActiveCloudCapture()for an interrupted Raw Media session, then callshutdown()before closing Electron. See the sample quit flow.
The sample has no separate server. Electron's main process reads API keys from the environment and calls Recall and OpenAI directly. The renderer receives service readiness and setup messages. You can replace either adapter independently in electron/main.ts. Keep the corresponding provider key on the server for each adapter you move.
- Recording. Implement
RecallPortagainst your backend. The server authenticates your user, chooses the workspace and recording configuration, and creates the Recall upload. Return the upload ID and per-attempt token to the desktop. Keep the selected region aligned with the recorder. Provide upload status and authorized playback or transcript access through the adapter. The controller consumesRecordingArtifacts. - Upload recovery. Use the attempt ID to correlate creation on your backend. Implement
reconcileCreateif the server can look up the attempt after a lost response. Returnpendingwhile the outcome is unknown. Only returnabsentonce creation has been ruled out, including any in-flight request. The recorder blocks a repeat create for that window while the original outcome is uncertain. - Optional assistant. Implement
AssistantPortto send finalized transcript context and questions to your server. Pass through the abort signal and return notes or answers with segment IDs for citations. Supply disclosure text for the destination and use of the transcript.electron/openai.tsis the direct OpenAI implementation. The assistant has no role in recording or Recall transcription. - Access and UI. Each adapter supplies
access()with readiness and optional user-facing guidance. Keep your app session in the main process. When access changes, callcontroller.changed()to publish an updated view.
| Command | What it checks or produces |
|---|---|
npm run check |
Formatting, credential-free regression tests, types, and production bundles. |
npm run test:native |
Native SDK initialization, permission reporting, and Settings in an isolated profile. Build first. |
npm run package |
Produces a local macOS arm64 app bundle under release/. |
Verify signing, notarization, and first-run recording in a packaged build before distributing it. See Recall's event reference and safe shutdown guide for the SDK behavior behind the sample.