wechatpay's documented file layout omits the preload script and the whole source directory
A WeChat Pay bill analysis tool: an Electron-based app for visualizing and analyzing your bills.
At a glance
- What is it?
- A desktop app that parses a WeChat Pay bill export and draws six views of your spending, with a privacy story that leans on local processing and two layers of contribution protection. The privacy story is sound. The file layout in the readme is not the repository, and the manifest contains three scripts the readme never mentions.
- Who is it for?
- wechatpay fits someone who wants to see where their money went without uploading a year of transactions to anyone, and it does not fit anyone who needs multi year analysis without manual work. Three things to check first.
- Can I use it commercially?
- The repository metadata does not identify a licence. Check the project’s published terms and any component-specific licences before reuse.
- Is it still maintained?
- Yes. The repository last received commits 180 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- run-liyi/wechatpay1,324 ★ · -18
| Repository | 2026-09-21 | 2026-11-24 |
|---|---|---|
| run-liyi/wechatpay | 1.3k | 1.3k |
-18 Stars in the last 64 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The documented structure omits the preload script, a source directory and a bundler
The readme prints a project structure as an indented tree, and it does not match the repository.
The tree names seven entries: a main process file, the interface markup, a stylesheet, a renderer script, the manifest, the readme, and a sample directory holding one spreadsheet and a note. It also describes the interface as plain HTML, CSS and JavaScript.
The repository root has none of that shape. There is a preload script, a separate chart theme file, a bundler configuration, a TypeScript configuration, a source directory, a test directory, a build directory, an assets directory, a scripts directory, a registry configuration file, and three documentation files whose names are in Chinese.
The preload script is the omission that matters most, because in an Electron application that file is where the boundary between the interface and the operating system is defined. A reader following the documented structure would not know it exists.
The plain JavaScript claim is contradicted by the manifest as well, which has a build step for the interface, a dev script that starts a bundler, a typecheck script that runs the TypeScript compiler in no-emit mode, and TypeScript and Vite as development dependencies.
So the readme describes a smaller and simpler application than the one in the tree, and the two descriptions differ on the one file that carries a security boundary.
One export at a time, a one year cap, and a sixteen row header the parser guesses at
The limitations are in the readme, mostly as an answer to a question rather than as a section.
The first is file count. The current version analyses one file per run, and the suggested workaround is to merge several periods in a spreadsheet tool and import the combined file.
That matters because of the second limitation, which is on WeChat's side. An export covers at most a year of transactions. So a user with three years of history has to merge by hand before they can look at a trend, and the merge is done in a tool whose behaviour differs from the one doing the analysis.
The export itself has one setting that decides whether the file is readable at all. Choosing the personal reconciliation purpose produces a spreadsheet; choosing the proof material purpose produces a stamped PDF, which the file says the tool cannot parse. The readme marks that choice as important, with a tick for one option and a cross for the other.
There is a fourth detail worth knowing: the first sixteen rows or so of the export are header and explanatory lines, and the tool detects and skips them. That is a row count heuristic against a file format the tool does not control, so it is the kind of assumption that breaks quietly if the format shifts.
And the delivery route is worth reading for its own sake: the archive arrives by email within a day, encrypted, with the password delivered through a separate in-app notification.
The commit hook is opt-in, and it is the layer that actually catches a bill
The privacy section makes three claims about runtime behaviour and then adds a fourth paragraph about contribution safety, and the fourth is the interesting one.
The runtime claims are that the application runs entirely locally, uploads nothing to a server, collects and transmits no personal information, and processes and stores all bill data on your own machine.
For contributors there are two defences. The first is the ignore rules: spreadsheet and CSV files are ignored in the root and in subdirectories, with only the sample directory exempted, and the local data directories and exported reports are ignored too.
The second is a pre-commit scanner. It intercepts bill files outside the sample directory, and it also intercepts staged content that contains recognisable WeChat bill header features, phone numbers, or identity card numbers. So it is not only a filename check; it reads what you are about to commit.
The gap is that the hook is not active by default. There are two documented ways to enable it, a symlink into the git hooks directory or pointing the hooks path at a directory inside the project, and both are commands you run yourself. A fresh clone has the ignore rules and nothing else.
There is also a documented bypass environment variable for the cases where you genuinely need to commit something the scanner flags, with a caution attached.
And the readme's own strongest protection is not a hook at all: it tells you to open your own bills from a directory outside the repository.
The distributed build excludes markdown, which means it includes the sample spreadsheet
The packaging configuration is short and its file pattern is worth reading closely.
It includes everything, then excludes markdown files, then excludes the output directory. That is the whole list.
So the built application ships with the sample spreadsheet inside it, because a spreadsheet is not markdown. It also ships any other non-markdown file in the working tree, which on a contributor's machine could be a local bill they downloaded into the project directory before reading the advice to keep bills outside it.
The packaging is otherwise configured sensibly. There is an application identifier, a product name written in Chinese, and an output directory named for releases. The Windows target is an installer for x64 only, with an icon from the assets directory.
The installer settings are the part worth noting for a desktop app you hand to someone: it is not one click, it lets the user choose the installation directory, it installs per user rather than per machine, and it allows elevation to be requested. Per user with elevation available is a slightly unusual combination, and it is the kind of detail that decides whether a non technical family member can install it.
There is also a second, older packaging path in the manifest: a packager script that produces a Windows x64 build with the display name spelled out. So the project carries two Windows packaging routes, and the readme documents neither.
The manifest has an audit script, a test runner and a typecheck the readme never mentions
Compare the two lists of commands and the readme is the shorter one by a wide margin.
The readme documents an install, a start, and four packaging invocations split by platform:
npm installnpm run buildThe manifest has all of those, plus a dev command that starts the bundler, a separate renderer build, a packager script for a Windows build, an audit command, a second audit command scoped for continuous integration, a test command, and a typecheck command.
The continuous integration audit is the one to look at: it omits development dependencies and fails at a high severity threshold. Scoping an audit to production dependencies and setting a floor is a small, deliberate piece of hygiene, and it is invisible to anyone who only reads the readme.
The test command runs Node's built-in test runner directly, and the typecheck command runs the TypeScript compiler without emitting. Both imply a source tree that the documented structure does not mention, and a test directory that the documented structure does not mention either.
The dependency list is three packages at runtime: the charting library, a character set conversion library, and the spreadsheet parser. All three use caret ranges.
Except one, which does not: the spreadsheet parser is pinned at a single version with no range at all. In a project where everything else floats, a hard pin usually means something deliberate, and the file does not say what. If you are building this from source on a machine that already has a different copy of that library, that pin is the thing to check.
Node 14 is the stated development requirement and the toolchain will not run on it
The system requirements section lists an operating system range, a memory recommendation, a disk figure, and then a development-only requirement.
The operating systems are Windows 10 and 11, macOS from 10.13, and Linux. Memory is recommended at four gigabytes or more, and disk at a hundred megabytes or more, which tells you this is a small application and not something that will struggle on anything current.
The development requirement is the problem. It says Node 14.0 or higher, and it says so in parentheses, noting that it is only needed for the development environment.
The development environment in this repository is a modern bundler and a recent TypeScript compiler, plus Electron 28. Neither of those supports a runtime as old as Node 14, so the stated floor cannot actually build the project.
The Electron claim does check out. The readme names version 28.0 as the framework and the manifest declares the same major with a caret range, so that one is consistent.
So the requirement list has one number that is wrong, and it is the number a contributor would try first. Nothing in the file flags it, which means the failure appears as a build tool refusing to start rather than as a documented requirement being unmet.
MIT is written in two places, the metadata says nothing, and the author is a placeholder
The licence question is a small case study in three signals disagreeing.
The readme has a licence section that says MIT. The manifest declares MIT as well, as a proper licence field. The repository's recorded licence, however, is not asserted, and there is no licence file in the root listing.
So a human reading either document gets a clear answer and a machine reading the metadata gets nothing. That matters if you vendor this: the terms are stated but not embodied in a file you would find by looking for one, which is the file a licence scanner and most automated compliance tooling actually read.
The same section of the manifest has another placeholder. The author field reads as a literal reminder to fill in a name, left over from the project being created from a template. The description, keywords, and repository URL are all filled in properly, so it is a single field that never got revisited.
The acknowledgements credit the Electron team, the spreadsheet library's developers, the charting library's team, and contributors generally, which is the conventional shape for a project built on three libraries.
The last commit to the default branch is dated 29 May 2026, and the repository has no releases at all, even though the manifest version is one point zero point zero. So there is no tag to compare a packaged installer against.
A mirror build script and a registry file at the root
Two files at the repository root explain an otherwise invisible requirement.
There is a batch launcher whose name describes building with a mirror, and there is a registry configuration file. Together they say that at least one build path expects to fetch dependencies through an alternative registry rather than the default one.
Nothing in the readme mentions either file. The build commands are documented as plain per platform invocations of the packaging tool, with no reference to the mirror script or the registry configuration.
For anyone building this, that is a meaningful omission. If you are behind a network where the default registry is slow or blocked, the difference between the two build paths is the difference between a build that finishes and one that does not, and the readme gives you no way to know which path is which.
The rest of the root is documentation and tooling rather than surprises. Besides the two mirror related files there is a security policy document, a contributor guide, a workflow directory, an ignore file, the application files, a stylesheet, the interface markup, both process scripts, the sample directory with its note, the scripts directory that holds the commit hook, and three documents whose names are in Chinese: a user guide, a feature walkthrough, and a quick start.
Since the packaging configuration excludes markdown, none of those three documents ship inside the distributed application, which is the right call for size and the wrong one for a user who cannot read Chinese and needs the user guide.
Editorial conclusion
wechatpay fits someone who wants to see where their money went without uploading a year of transactions to anyone, and it does not fit anyone who needs multi year analysis without manual work. Three things to check first. Expect to merge your own history, because the tool reads one export at a time and WeChat caps a single export at a year. Install the commit hook rather than trusting the ignore rules alone, since the pre-commit scanner is the layer that actually catches a bill file, and it is opt-in. And read the current repository layout rather than the readme's, because the documented structure is missing the preload script and an entire source directory.
Frequently asked questions
How do I get a WeChat bill file that this tool can read?
Export it from the bill page in the WeChat app and choose the personal reconciliation purpose, which produces a spreadsheet. Choosing the proof material purpose produces a stamped PDF that the tool cannot parse. The export covers up to a year, arrives by email as an encrypted archive within about a day, and the password comes through a separate service notification inside the app.
Can I analyse several WeChat bill files at once?
Not in the current version, which handles one file per run. The project's own suggestion is to merge several periods in a spreadsheet tool first and import the combined file, which matters because a single export covers at most one year of transactions.
Does the tool send my financial data anywhere?
It states that it runs entirely locally, uploads nothing to a server, collects and transmits no personal information, and processes all bill data on your machine. For contributors there are two protections: ignore rules covering spreadsheet and CSV files outside the sample directory, and an opt-in pre-commit scanner that rejects bill files and staged content matching bill headers, phone numbers or identity card numbers.
What is in the sample bill file the repository ships?
A spreadsheet the project's own note describes as entirely fictional, included for demonstration and testing, with a separate readme beside it. The privacy notice states that the repository contains no real bills and asks contributors never to commit bill files containing personal information, and to open their own bills from a directory outside the repository.
How is the Windows installer configured?
It is packaged for x64 only and configured as not one click, allowing the user to choose the installation directory, installing per user rather than per machine, permitting elevation to be requested, and creating a desktop shortcut. The manifest also carries a second, separate packager script that produces a Windows x64 build, and the readme documents neither packaging path in detail.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/run-liyi-wechatpay)Star history chart for your README
[](https://hysenlabs.com/projects/run-liyi-wechatpay)Was this useful?