covekit 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +15 -1
package/README.md CHANGED
@@ -137,3 +137,19 @@ new CoveKitRoom(client: CoveKitClient, events: CoveKitRoomEvents)
137
137
  * `sendWhiteboardUpdate(elements: any)`: Broadcasts real-time collaborative whiteboard updates to peers.
138
138
  * `kickParticipant(peerId: string)`: *[Host Only]* Evicts a participant from the room.
139
139
  * `endMeetingRoom()`: *[Host Only]* Terminates the meeting session for everyone.
140
+
141
+ ---
142
+
143
+ ## Authentication & Security
144
+
145
+ To prevent unauthorized access and protect your resources, CoveKit utilizes a two-tier authentication architecture:
146
+
147
+ 1. **Backend Server (Private - API Key)**:
148
+ Your backend server manages meeting room creation and participant authorization. Secure these API requests from your server to the Control Plane by sending your secret API key in the `X-API-Key` header.
149
+
150
+ > [!WARNING]
151
+ > **Never expose your `X-API-Key` in client-side code (browsers).** Doing so allows anyone to create rooms, fetch session logs, or abuse your account.
152
+
153
+ 2. **Client-Side SDK / Iframe (Public - Room IDs)**:
154
+ The client-side `covekit` SDK and the iframe embed only require the public `room` (publicId) and optionally a passcode. The client-side client handles WebRTC signaling and media stream loops using public, session-specific endpoints without exposing your secret API key.
155
+
package/package.json CHANGED
@@ -1,8 +1,22 @@
1
1
  {
2
2
  "name": "covekit",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
+ "description": "Official SDK for CoveKit Video Meetings, real-time media tracks, and collaborative whiteboard suites.",
5
+ "keywords": [
6
+ "webrtc",
7
+ "mediasoup",
8
+ "video-meetings",
9
+ "video-conferencing",
10
+ "whiteboard",
11
+ "realtime",
12
+ "covekit",
13
+ "sdk",
14
+ "embed",
15
+ "collaboration"
16
+ ],
4
17
  "main": "./dist/index.js",
5
18
  "types": "./dist/index.d.ts",
19
+ "license": "MIT",
6
20
  "files": [
7
21
  "dist"
8
22
  ],