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

metamaker-card-kit-live

v1.1.10

Published

## 下载安装

Downloads

50

Readme

黑镜 AI 助手,推流服务 SDK

下载安装

npm install metamaker-card-kit-live

进入 node_moduleslibs 下的 decoder.js , decoder.wasm , 拷贝到 Web 服务目录下。

一般来说,使用 Vite 或者别的构建工具创建的项目 , 对应放到 public 目录下

获得 TOKEN

TOKEN 如何生成

创建项目

在你的项目中,你需要引入Meta2DProject类,并使用你的 token 来创建项目。

import { Meta2D, Project } from "metamaker-card-kit-live";

let token = ""; /** 补充您的token */
let project;

async function main() {
  project = await Project.create(token);
  console.log(`project`, project);
}
main();

创建 Video 容器

设置 Video 的宽高,并将其添加到你的 HTML 容器中。

注意:无法自定义视频的宽高比,所以设置 Video 容器时,需要将容器的宽高比设置的和视频的宽高比一致。

let meta2d = Meta2D.fromProject(project, {
  container: document.querySelector("#video-wrap"),
  width: window.innerWidth
});

播放

你可以通过调用play方法来播放预设的动画。

meta2d.play("xiaojing_ai");

说话

你可以通过调用speak方法来让角色说话。

meta2d.speak("你好,我是小安,请问有什么可以帮到您的?");

打断

你可以通过调用interrupt方法来打断当前的说话或播放。

meta2d.interrupt();

清理

你可以通过调用destroy方法来清理资源。

meta2d.destroy();

例子

详细例子可以下载并查看 example 文件夹