npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

newprod-rtc-ui-sdk

v0.0.12

Published

A meeting UI SDK based on Vue and LiveKit.

Readme

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

SDK 使用指南

1. 依赖说明

本 SDK 依赖 Vue 3、Pinia 和 Element Plus。在使用前,请确保您的项目中已安装这些依赖。

2. 安装与运行

  1. 打包 SDK:在 SDK 目录下运行 npm run buildnpm pack
  2. 主应用安装:在主应用目录下运行 npm install <path-to-sdk-tgz>

发包

1、npm run build 生成dist文件 2、npm pack 生成.tgz文件

3、引入 npm install D:/project/newprod-rtc/Code/Frontend/newprod-rtc-ui-sdk/newprod-rtc-ui-sdk-0.0.2.tgz 4、npm run dev 启动项目看效果

5、如果sdk更新了 要重新打包 需要npm uninstall newprod-rtc-ui-sdk 然后再走一遍 3 4

打成sdk给别的项目使用时 也可以直接使用livekit暴露的事件

import { init, meetingService, RoomEvent } from 'newprod-rtc-ui-sdk';

3. 接入方式

方式一:完整 UI 模式(包含首页、创建会议等)

适用于三方没有后端,需要使用 SDK 全套功能。

import { init } from 'newprod-rtc-ui-sdk';
import 'newprod-rtc-ui-sdk/style.css';

init('#meeting-container', {
  baseUrl: 'https://your-backend-api.com', // 后端接口地址
  livekitUrl: 'wss://your-livekit-server.com' // LiveKit 地址
});

方式二:API 直接入会模式(推荐)

适用于三方已有后端生成 Token,直接进入视频会议室。

import { init, joinMeetingWithToken } from 'newprod-rtc-ui-sdk';
import 'newprod-rtc-ui-sdk/style.css';

// 1. 仅初始化环境,不进入页面
init('#meeting-container');

// 2. 调用方法直接加入会议(会自动跳转到会议室界面)
joinMeetingWithToken({
  token: 'YOUR_JWT_TOKEN',
  livekitUrl: 'wss://your-livekit-server.com',
  userName: '张三',
  roomTitle: '周会'
});

4. 监听事件

您可以直接通过 meetingService 获取 LiveKit 房间实例并监听事件。

import { meetingService, RoomEvent } from 'newprod-rtc-ui-sdk';

const room = meetingService.getRoom();
if (room) {
  room.on(RoomEvent.ActiveSpeakersChanged, (speakers) => {
    console.log('正在说话:', speakers);
  });
}