@videosdk.live/server-sdk
v0.1.1
Published
Server-side TypeScript SDK for the VideoSDK.
Downloads
275
Readme
@videosdk.live/server-sdk
Server-side TypeScript SDK for the VideoSDK REST APIs: rooms, sessions, recordings, HLS, livestreams, transcodings, SIP, AI agents, and local auth-token signing.
Zero runtime dependencies, fully typed, ESM + CJS. Node.js 18+.
Documentation
Full guides and the complete API reference live at docs.videosdk.live/server-sdk/introduction.
Installation
npm install @videosdk.live/server-sdkQuick start
import { VideoSDK } from "@videosdk.live/server-sdk";
const client = new VideoSDK({
apiKey: process.env.VIDEOSDK_API_KEY!,
secret: process.env.VIDEOSDK_SECRET!,
});
// Create a room
const room = await client.rooms.create({ geoFence: "us002" });
console.log(room.roomId);
// List its sessions (a Page is async-iterable across all pages)
const sessions = await client.sessions.list({ roomId: room.roomId });
for await (const session of sessions) console.log(session.id);Get your API key and secret from the VideoSDK dashboard.
License
MIT
