RepositoryTypeScript
livliv-dev

livliv-dev/player

A lightweight 2.5D character player for the web, with lip sync and webcam face tracking.

1.6ksao
171fork
1issue
42lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: vtuber

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: face-tracking

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: lip-sync

#1 Repository của tuần

LivLiv Player

A lightweight 2.5D character player for the web, with lip sync and webcam face tracking. A few lines of code put a character in a page, a stream overlay or an app.
Comes with 21 featured characters in different styles, ready to use.

English · 中文 · 日本語

Featured characters breathing, blinking, turning their heads and talking

  • WebGL2, no dependencies, about 34 KB gzipped for the core
  • Lip sync (microphone, audio, video) and webcam face tracking (MediaPipe), both in the browser, imported only when you need them
  • Plays LivLiv, VRM and PNGTuber characters through the same API
  • 21 featured characters in characters/, ready to use

Try it

  • Online: the examples run on livliv-dev.github.io/player.
  • Here: npm install && npm run build, serve this folder with any static server and open /example/demo.html (expressions, actions, microphone, camera; ?model=../characters/<id>/ picks another character). /example/png.html and /example/vrm.html show a PNGTuber and a VRM.
  • On livliv.ai: each character's page there plays it with the same renderer. Start at livliv.ai/discover.

Use it in your page

import { Player } from '@livliv/player'

const player = new Player(document.querySelector('canvas'))
await player.load('characters/k01/')   // a folder with model.json and textures/, or a .livliv file

player.setExpression('smile')          // ids are in player.expressions
player.act('nod')
player.params.mouthOpen = 0.6          // 0..1

Lip sync and face tracking:

import { createSpeech } from '@livliv/player/voice'
import { startFaceTracking } from '@livliv/player/tracking'   // needs @mediapipe/tasks-vision

const speech = createSpeech(player)
button.onclick = () => { speech.unlock(); speech.say('/reply.mp3') }

await startFaceTracking(player)

A VRM or a PNGTuber, on the same API:

import { BodyPlayer } from '@livliv/player/body'
import { VrmBody } from '@livliv/player/vrm'    // needs three and @pixiv/three-vrm
import { PngBody } from '@livliv/player/png'

const vrm = new BodyPlayer(canvasA, new VrmBody())
await vrm.load('/avatars/me.vrm')
const png = new BodyPlayer(canvasB, new PngBody())
await png.load({ closed: 'me-closed.png', open: 'me-open.png' })

The whole API is in API.md: options, params, expressions and actions, drivers, VRM and PNGTuber characters, the limits on untrusted files, the model package and the format version. The LivLiv package format (.livliv, model.json v4) is in FORMAT.md, with a JSON Schema in schema/; packages exported before v4 are described in FORMAT-v3.md and still play.

Not on npm yet: build it from this repository and import dist/index.js.

characters/ holds 21 characters made by LivLiv, ready to load(). They carry a small LivLiv mark in the bottom-right corner, which the player draws. They are not covered by the Apache License: use them free for personal, non-commercial projects with credit ("Characters: LivLiv (livliv.ai)"); don't sell them, use them commercially or train AI models on them. Nana is LivLiv's mascot. The terms are in characters/LICENSE.md.

idnameidnameidname
k01Senad01Yuiv01Aster
k02Eliod02Leov03Mira
char06Aoid03Nanav04Kai
char07Sorad03ftNana (refined)v05Lilith
s01Hanap01Kujirav06Usa
q02Mochip02Kujira Qv07Stella
q03Kotarop03Penw01Max

Characters of your own

You can bring in a PNGTuber's pictures, or a VRM (drawn with three.js); or make a character of your own from one picture on livliv.ai.

  • A PNGTuber: two pictures (mouth closed, mouth open), and two more with the eyes closed if you have them.
  • A VRM: from VRoid Studio or any tool that exports VRM 0.x or 1.0.
  • A LivLiv model: make one from a picture on livliv.ai, then download its model package from the character's page (Model package): a .livliv file. Pass it to load() as it is (a URL, or the File someone picked), or unzipped as a folder. Packages on the free plan carry the LivLiv mark, and the player draws it.

About the player and the characters

LivLiv Player and the .livliv format are LivLiv's own work. They use no Live2D software or Cubism SDK and do not read .moc3 or .cmo3 files. "Live2D" is a trademark of Live2D Inc.; LivLiv is not affiliated with it.

Making a character on livliv.ai uses AI. The player itself only plays: it calls no AI service and reads only the files you point it at. Face tracking runs Google's MediaPipe in the browser, and camera images stay on the device; API.md has the networking details.

The featured characters in this repository were made on LivLiv too, also with AI. Refined Nana (d03ft) also has swinging parts and head-turn keyforms added with LivLiv's own tools.

A package's meta.author and meta.license record who made it and on what terms: keep them and follow them. When you show a character made with LivLiv in public, say that AI was used to make it, and don't present it as hand-drawn or hand-rigged.

Embed without code

The same /live/<id> page has a transparent background and works as an OBS Browser Source.

Develop

git clone https://github.com/livliv-dev/player
cd player
npm install
npm run check          # types
npm run build          # dist/: index.js, tracking.js, voice.js, body.js, png.js, vrm.js (ES modules), chunks/ and types/
npm test               # unit and fuzz tests (Node 22.18 or newer, no browser)
npm run test:browser   # every featured character drawn in headless Chromium; once: npx playwright-core install chromium-headless-shell

src/runtime/ is the renderer and motion code livliv.ai runs; this repository is published from it. See CONTRIBUTING.md. Security reports: SECURITY.md.

Browser support

WebGL2 and ES2023: Chrome / Edge 97+, Firefox 104+, Safari 15.4+, on desktop and mobile.

License

The code is under the Apache License 2.0 (see also NOTICE). The featured characters have their own licence, characters/LICENSE.md. Neither licence covers the LivLiv name and logos.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
rotejin/Keshin2D

キャラクターの絵をブラウザで動かす 2D アバター。絵 1 枚から、自分のキャラクターのモデルも作れます

198
Nov 28, 2026
RepositoryTypeScript
livliv-dev/vtuber-stage

Your AI VTuber Studio: give a character a personality, and in minutes it's chatting with you or streaming live. Memory, real-time voice, Neuro SDK, face tracking, OBS output. In the browser or as a desktop app.

83
Dec 1, 2026
RepositorySwift
vcamapp/app

VTuber Camera, macOS app that shows your avatar using CoreMedia I/O's virtual camera.

285
Nov 25, 2026
RepositoryTypeScript
moeru-ai/airi

💖🧸 Self hosted, you-owned Grok Companion, a container of souls of waifu, cyber livings to bring them into our worlds, wishing to achieve Neuro-sama's altitude. Capable of realtime voice chat, Minecraft, Factorio playing. Web / macOS / Windows supported.

51.9k
Nov 30, 2026
RepositoryTypeScript
shinshin86/mesh-avatar-studio

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

2.6k
Nov 22, 2026
RepositoryTypeScript
pixiv/three-vrm

Use VRM on Three.js

2.3k
Dec 1, 2026
RepositoryTypeScript
Yun-0000/Anima

Anime characters that feel alive, right in your browser. Chat or just talk out loud: each one answers in their own voice, moves while they speak and reacts with gestures and expressions.

204
Nov 3, 2026
RepositoryC#
hecomi/uLipSync

MFCC-based LipSync plug-in for Unity using Job System and Burst Compiler

1.7k
Jan 6, 2026
Modelimage-to-video
avaturn-live/avtr-1

AVTR-1 AVTR-1 Is an open source real time avatar model. Given a portrait image and dual-stream audio (speech + listening track), it renders lip-synced speech and active listening at 25 fps on a single GPU. - 📄 Project page: https://avtr-1.avaturn.l...

♥0
3.1k
May 31, 2026