whatisgithub

What is wechat-group-stats?

punk2898/wechat-group-stats — explained in plain English

Analysis updated 2026-05-18

93PythonAudience · generalComplexity · 3/5Setup · hard

In one sentence

A macOS Python tool that decrypts your local WeChat chat history and shows member activity stats in a browser dashboard.

Mindmap

mindmap
  root((wechat-group-stats))
    What it does
      Decrypts local WeChat DB
      Per-member activity stats
    Tech stack
      Python
      wechat-decrypt
      Local web server
    Features
      Activity tiers
      Sortable dashboard
      JSON export
    Setup
      Compile C decrypt tool
      Re-sign WeChat app
      macOS only
    Audience
      Personal data users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

See how active each member of a WeChat group has been over the past 1, 3, and 6 months

USE CASE 2

Sort and search group members in a browser dashboard by activity tier

USE CASE 3

Export group activity data as JSON for use in another script

USE CASE 4

Let an AI agent skill walk through the full setup and analysis automatically

What is it built with?

Pythonwechat-decryptmacOS

How does it compare?

punk2898/wechat-group-statsagricidaniel/claude-shortsxzf-thu/mega-asr
Stars939393
LanguagePythonPythonPython
Setup difficultyhardmoderatehard
Complexity3/53/54/5
Audiencegeneraldeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires compiling a C decrypt tool and re-signing the WeChat app, macOS only, personal data use only.

The README does not state a license.

So what is it?

WeChat stores your local chat history in an encrypted database file. This Python tool decrypts that database (on macOS only) and produces activity statistics for every member of a group chat, showing how many messages each person has sent in total and over the past one, three, and six months. Members are automatically sorted into activity tiers based on their message frequency: super active, active, occasional, low frequency, dormant, and inactive. A small local web server then displays all of this in a browser-based dashboard with a dark theme. The table is sortable and searchable, and has a refresh button so you can pull fresh data without restarting anything. The analysis can also be exported as a JSON file for use in other scripts or automated tasks. The decryption step relies on a separate open-source project called wechat-decrypt, which extracts the encryption key from WeChat's memory while the app is running. That step requires WeChat to be re-signed with a loose code signature on macOS, which is a one-time setup. After that initial setup, the daily workflow is just running the web server and clicking refresh in the browser. Setup takes several steps: cloning the decryption dependency, compiling a small C program it includes, re-signing the WeChat application, then cloning this project and running the analysis script. The README walks through each command explicitly. The tool is described as intended for personal data only, meaning your own chat history. It works on macOS only because the key extraction step depends on a macOS-specific system interface. If WeChat updates its encryption, the key extraction and re-signing steps need to be repeated. An optional Hermes Agent skill is also included, which can guide a conversational AI agent through the full setup and analysis flow automatically.

Copy-paste prompts

Prompt 1
Walk me through setting up wechat-decrypt and re-signing WeChat on macOS for this tool
Prompt 2
Run the analysis script on my WeChat chat history and export the results as JSON
Prompt 3
Explain what the activity tiers mean and how they are calculated
Prompt 4
Help me troubleshoot the re-signing step if WeChat updates its encryption

Frequently asked questions

What is wechat-group-stats?

A macOS Python tool that decrypts your local WeChat chat history and shows member activity stats in a browser dashboard.

What language is wechat-group-stats written in?

Mainly Python. The stack also includes Python, wechat-decrypt, macOS.

What license does wechat-group-stats use?

The README does not state a license.

How hard is wechat-group-stats to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is wechat-group-stats for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.