# Tencent/libpag

The official rendering library for PAG (Portable Animated Graphics) files that renders After Effects animations natively across multiple platforms.

Repository: https://github.com/Tencent/libpag
Canonical: https://ross.abutalabs.com/products/libpag
Homepage: https://pag.io
Language: HTML
License: NOASSERTION
License Family: other
Topics: libpag, pag, animation, keyframes, after-effects
Last push: 2026-08-26T12:15:27+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 2171, "days_push": 7, "days_rel": 22, "gap_med": 14.5, "n_releases_24m": 25}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5768, forks 533 (observed 2026-08-28T04:09:29.410110+00:00)

## What it is
libpag is Tencent's official real-time rendering library for PAG (Portable Animated Graphics) files, a format exported from Adobe After Effects that supports both vector and raster animation. It renders AE animations natively across iOS, Android, OpenHarmony, macOS, Windows, Linux, and the Web, with runtime text/image replacement support.

## Use cases
- play after effects animations in a mobile app
- render animated stickers like lottie but with full AE feature support
- replace text and placeholder images in animation templates at runtime
- show designer-made UI animations efficiently on android and ios
- render pag files in a web page or wechat mini program
- batch-produce photo and video templates from AE animations

## When to choose
- you need to ship complex After Effects animations (including third-party plugin effects) to mobile, desktop, or web apps
- you need smaller files and faster decoding than JSON-based formats like Lottie
- you need runtime editing of text or images inside animation templates
- you need a battle-tested renderer used at massive scale (WeChat, QQ)

## When to avoid
- your animations are simple and already well-served by Lottie or CSS animations
- you need audio playback or video compositing out of the box - the community edition only renders visuals
- you need to load animation files directly from the network without downloading them first
- you need a DirectX 11 rendering backend on Windows

## Facets
- artifact type: library
- maturity: active
- function: animation, graphics, image-processing, video-processing, sdk
- domain: graphics, cross-platform, mobile-development, web-development, desktop-applications, media
- platform: windows, cross-platform, cpp, wasm
- tags: pag, after-effects, lottie-alternative, animated-graphics, rendering-engine, gpu-accelerated, designer-workflow, android, ios, macos, linux, web

## Member repositories
- Tencent/libpag (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:29.410110+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:52:55.356809+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/libpag (fetched 2026-08-28T04:09:29.410110+00:00, sha 5c5155f8ed65)
  - homepage: https://pag.io (fetched 2026-08-29T08:48:24.507268+00:00, sha 2cd75344c4a4)
  - site_page: https://pag.io/docs/home.html (fetched 2026-08-29T08:48:24.509915+00:00, sha 596aa7027f7c)
  - site_page: https://pag.io/docs/zh-CN/pag-spec.html (fetched 2026-08-29T08:48:24.512327+00:00, sha b2cdb0f73ee4)
  - site_page: https://pag.io/docs/zh-CN/ae-bmp-guide.html (fetched 2026-08-29T08:48:24.514244+00:00, sha 6c4f38df9971)
  - site_page: https://pag.io/docs/zh-CN/pag-edit.html (fetched 2026-08-29T08:48:24.515861+00:00, sha 6feebf2ffd0f)
  - site_page: https://pag.io/docs/zh-CN/profiler.html (fetched 2026-08-29T08:48:24.517368+00:00, sha 43c59fa34385)
  - site_page: https://pag.io/docs/zh-CN/install.html (fetched 2026-08-29T08:48:24.519001+00:00, sha af3903afa11a)
  - site_page: https://pag.io/docs/zh-CN/pag-export.html (fetched 2026-08-29T08:48:24.520731+00:00, sha b39214bd6c1c)
  - site_page: https://pag.io/docs/zh-CN/faq.html (fetched 2026-08-29T08:48:24.522339+00:00, sha 7a2316b7a7b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
