TTttpkUnpacker

ttpkUnpacker

A Python unpacker for Douyin (TikTok China) mini-program TPKG packages (.pkg/.ttpkg.js): one-click project structure with ttss/ttml extraction — the Douyin counterpart to WeChat wxapkg tools.

Input📄File</>Code
Output</>Code
Updated: 2026-09-11 geek-bigniu
Download / Access
Web N/A
Windows N/A
macOS N/A
iOS N/A
Android N/A
Huawei N/A
Linux N/A
github.com/geek-bigniu/ttpkUnpacker
TTttpkUnpacker
ttpkUnpacker
A Python unpacker for Douyin (TikTok China) mini-program TPKG packages (.pkg/.ttpkg.js): one-click project structure with ttss/ttml extraction — the Douyin counterpart to WeChat wxapkg tools.
Get StartedLearn More

Try it now

GPT-4o
Full Playground →

What is ttpkUnpacker?

ttpkUnpacker targets Douyin mini-programs rather than WeChat: it handles packages whose header starts with TPKG, supporting both .pkg and .ttpkg.js files. With a single command it generates the project structure and extracts ttss (styles) and ttml (markup) files, with partial sjs parsing. It is written in Python and only needs the esprima package (`pip install esprima`); the CLI takes an input file or folder and an output folder, and can batch-process every .pkg in a directory. The README documents how to obtain packages from a rooted Android device (or emulator) using MT Manager under the Douyin launchcache path, identifying the newest app by .meta. Note it currently does not support Douyin mini-GAMES. A Gitee mirror is provided for users in China. For authorized learning and research only.

4.5
Rating
Free
Pricing
5+
Platforms
0
Saves

Pros

  • Fills the niche of Douyin (not WeChat) package unpacking.
  • Very simple CLI with minimal dependencies.
  • Batch-processes a whole folder of packages.
  • Documents how to pull packages from a device.
  • Free and open source (GPL-3.0).

Cons

  • Narrow scope: Douyin mini-programs only, no mini-GAME support.
  • sjs parsing is partial and unfinished.
  • Requires a rooted device/emulator to obtain packages.
  • Less actively polished than the major WeChat tools.

Compare with Alternatives

FeaturettpkUnpackerMediaCrawlerwedecodeKillWxapkg
Rating0.04.40.00.0
PricingFreeFreeFreeFree
Starting FromFree
API
Free Tier
Mobile App
View full comparison →

Who is it for

D

Douyin ecosystem devs

Study how Douyin mini-program packages are structured.

S

Security researchers

Audit an authorized Douyin mini-program.

R

Reverse engineers

Extract styles and markup from TPKG packages.

L

Learners

Compare Douyin TPKG vs WeChat wxapkg formats.

B

Batch analysts

Unpack many captured .pkg files in one run.

Developer
geek-bigniu
Platforms
Web N/A
Windows N/A
macOS N/A
iOS N/A
Android N/A
Huawei N/A
Linux N/A
Languages
中文, English
Updated
2026-09-11

FAQ

Douyin mini-program TPKG packages (.pkg/.ttpkg.js), not WeChat wxapkg.