tlottie is a fast, Web Worker-based renderer for Lottie and TGS animations, backed by a Rust/WASM engine and shipping adapters for React, SolidJS, Vue, Svelte, Web Components, and vanilla JS.

Stars

6

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It renders animations entirely off the main thread using OffscreenCanvas, boasts 23–73% faster frame times than rlottie/thorvg, includes built-in TGS (Telegram sticker) decompression, and offers a skeleton loading feature with a bundled CLI for generating outline SVGs.

Who it is for

  • Frontend developers building performant Lottie/TGS animations in web apps
  • Developers working with multiple frameworks who want a single consistent animation library
  • Developers of Telegram sticker viewers or apps needing lightweight animated sticker support
  • Performance-conscious teams looking to eliminate UI thread jank from animations

Use cases

  • Embedding high-performance Lottie animations in React, Vue, Solid, Svelte, or vanilla JS projects
  • Displaying Telegram stickers (.tgs) with automatic gzip decompression
  • Showing a skeleton shimmer placeholder while an animation loads, using the tlottie-outline CLI to generate the mask SVG
  • Rendering multiple animations on a page without blocking the UI thread using a shared worker pool

Strengths

  • Off-main-thread rendering via Web Workers and OffscreenCanvas eliminates UI jank
  • Underlying tlottie Rust/WASM engine benchmarks 23–73% faster frame times than rlottie/thorvg
  • Native .tgs support with browser-native DecompressionStream, no extra dependencies
  • Small framework adapter sizes (3–4 KB gzipped each) and a compressed WASM binary (~131 KB brotli)

Considerations

  • Requires OffscreenCanvas and DecompressionStream (Chrome/Edge/Firefox/Safari modern only); no fallback for older browsers
  • Raw WASM binary is ~418 KB, though compressed transfer size is much smaller (~131 KB brotli); some CDNs must serve with correct Content-Encoding
  • No explicit support for React Native or other non-web environments

README quick start

Quick start

Description

Fast, Web Worker–based Lottie and TGS (Telegram sticker) renderer, backed by the tlottie Rust/WASM engine. Ships adapters for React, SolidJS, Vue, Svelte, Web Components, and Vanilla JS.

Related repositories

Similar projects matched by category, topics, and programming language.

react
Featured
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web DevelopmentFrontend Frameworks
246,741
TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
yetone
Featured
yetone GitHub avatar

kill-ai-slop

Kill AI Slop is a multilingual field guide and agent skill that catalogues 33 common AI-generated design tells with interactive before-after demos, and provides a tool to scan and fix web projects.

AI & Machine LearningAI Agents
805