How to build interactive web characters with LivLiv Player
GitHub Open Source
Render interactive 2.5D characters on the web with lip-sync and face tracking in a 30KB package.
Repository snapshot
- Repository: livliv-dev/player
- Language: TypeScript
- License: Apache-2.0
- Stars: 1 569
- Forks: 161
Daily open-source picks: GitHub Open Source on Telegram
What it is\n\nLivLiv Player is a lightweight, dependency-free 2.5D character renderer designed for the web. It provides a unified API to load and animate characters, supporting multiple formats including VRM, PNGTuber, and the project's own .livliv format. At its core, the library is built on WebGL2, which allows it to maintain a small footprint of approximately 30KB gzipped while handling complex animations like swaying, crouching, and head-turning.\n\n## Why it matters\n\nCharacter integration on the web often requires heavy, proprietary SDKs that can significantly bloat your bundle size. LivLiv Player solves this by providing a modular approach: the core renderer is minimal, and features like face tracking (via MediaPipe) are imported only when needed. This makes it a practical choice for stream overlays or interactive web apps where performance and load times are critical.\n\n## Key features\n\n- Supports VRM, PNGTuber, and custom LivLiv character formats via a single API.\n- Includes built-in lip sync and webcam-based face tracking using MediaPipe.\n- Ships as a ~30KB gzipped core library with zero external dependencies.\n- Handles full-body character physics like swaying and crouching natively.\n- Provides 25 pre-made characters ready for immediate integration.\n\n## Quick start\n\nInstall the package via npm:\n\n``sh\nnpm install @livliv-dev/player\n`\n\nThen, initialize the player in your JavaScript:\n\n`js\nimport { Player } from '@livliv-dev/player'\n\nconst player = new Player(document.querySelector('canvas'))\nawait player.load('characters/k01/')\nplayer.setExpression('smile')\n``\n\n## Who should try it\n\nThis tool is ideal for frontend developers who need to integrate avatars into web-based projects without the overhead of massive game engines or complex proprietary SDKs. It is particularly well-suited for stream overlays, interactive web widgets, or applications where you need to display a character that reacts to user input or audio.\n\n## Verdict\n\nLivLiv Player is a pragmatic, lightweight solution for web-based character animation. It avoids the bloat of larger frameworks while offering enough flexibility to handle common formats like VRM and PNGTuber. While you are responsible for sourcing or creating your own character assets, the API is straightforward enough that it should not be a barrier to entry for most web developers.
Continue exploring
Get the next pick in Telegram: Follow GitHub Open Source
Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.