meetcap-core
v0.4.0
Published
Shared types and IPC contract for meetcap (meeting detection + recording in Electron)
Maintainers
Readme
meetcap-core
Shared TypeScript types and the IPC contract for meetcap-main and meetcap-renderer. Dependency-free — safe to import from any process.
Install
npm install meetcap-coreWhat's inside
- Types —
MeetingInfo,MeetingRule,DetectionResult,DetectorEvent,RecordingResult,PermissionStatus,MeetcapBridge. IPC— the single source of truth for channel names shared by main and renderer.exposeMeetcapBridge(meetcap-core/preload) — wire the whole IPC surface ontowindow.meetcapin one call.
Preload usage
// preload.ts
import { contextBridge, ipcRenderer } from 'electron'
import { exposeMeetcapBridge } from 'meetcap-core/preload'
exposeMeetcapBridge(contextBridge, ipcRenderer) // → window.meetcapwindow.meetcap then exposes detectOnce, onDetectorEvent, listWindows, mediaAccess, openRecording / writeRecordingChunk / closeRecording, enableLoopbackAudio, disableLoopbackAudio — consumed by meetcap-renderer.
License
MIT
