zwift-log-parser 0.0.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -20
- package/dist/cli/main.js +9 -7
- package/dist/zwift-log-parser-0.4.0.tgz +0 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
A TypeScript command-line tool for parsing and analyzing Zwift activity log files. Built with [Bun](https://bun.sh) and [React Ink](https://github.com/vadimdemedes/ink).
|
|
4
4
|
|
|
5
|
+
🌐 **Website**: <https://chrisjwalk.github.io/zwift-log-parser>
|
|
6
|
+
|
|
7
|
+
> **Looking for TrainerDX?** This project was inspired by
|
|
8
|
+
> [TrainerDX](https://trainerdx.com/) (formerly Zwiftalizer), which shut down
|
|
9
|
+
> permanently on November 30, 2026. Zwift Log Parser carries on that spirit as
|
|
10
|
+
> an open-source, self-hosted alternative — parse your logs locally for FPS
|
|
11
|
+
> analysis, route tracking, device diagnostics, and more.
|
|
12
|
+
|
|
5
13
|
## Features
|
|
6
14
|
|
|
7
15
|
- 📊 **FPS Analysis** — Visualize frame rate performance with ASCII graphs and statistics
|
|
@@ -15,26 +23,40 @@ A TypeScript command-line tool for parsing and analyzing Zwift activity log file
|
|
|
15
23
|
|
|
16
24
|
## Installation
|
|
17
25
|
|
|
18
|
-
### From
|
|
19
|
-
|
|
20
|
-
Every release ships an npm package tarball attached to the release page —
|
|
21
|
-
no cloning required. Get the tarball URL from
|
|
22
|
-
<https://github.com/chrisjwalk/zwift-log-parser/releases/latest>, then:
|
|
26
|
+
### From npm
|
|
23
27
|
|
|
24
28
|
```bash
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
npm install -g zwift-log-parser
|
|
30
|
+
# or, with Bun:
|
|
31
|
+
bun install -g zwift-log-parser
|
|
32
|
+
|
|
27
33
|
zwift-log-parser /path/to/your/Log.txt
|
|
28
34
|
```
|
|
29
35
|
|
|
30
36
|
Requires Node.js.
|
|
31
37
|
|
|
32
|
-
###
|
|
38
|
+
### Standalone binaries
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
No Node.js? Every release ships self-contained executables for Windows,
|
|
41
|
+
macOS, and Linux (x64 + arm64) — grab one from the
|
|
42
|
+
[releases page](https://github.com/chrisjwalk/zwift-log-parser/releases/latest),
|
|
43
|
+
then:
|
|
35
44
|
|
|
36
45
|
```bash
|
|
37
|
-
|
|
46
|
+
# e.g. on Linux
|
|
47
|
+
chmod +x zwift-log-parser-linux-x64
|
|
48
|
+
./zwift-log-parser-linux-x64 /path/to/your/Log.txt
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### From a GitHub Release
|
|
52
|
+
|
|
53
|
+
Every release also ships an npm package tarball attached to the release page —
|
|
54
|
+
no registry needed. Get the tarball URL from
|
|
55
|
+
<https://github.com/chrisjwalk/zwift-log-parser/releases/latest>, then:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# replace v0.0.2 with the release you want
|
|
59
|
+
npm install -g https://github.com/chrisjwalk/zwift-log-parser/releases/download/v0.0.2/zwift-log-parser-0.0.2.tgz
|
|
38
60
|
zwift-log-parser /path/to/your/Log.txt
|
|
39
61
|
```
|
|
40
62
|
|
|
@@ -98,8 +120,15 @@ zwift-log-parser ~/Documents/Zwift/Logs/Log.txt --no-routes --no-metadata
|
|
|
98
120
|
|
|
99
121
|
## Sample Output
|
|
100
122
|
|
|
123
|
+
<details>
|
|
124
|
+
<summary>📸 Click to see a screenshot of the full output</summary>
|
|
125
|
+
|
|
126
|
+

|
|
127
|
+
|
|
128
|
+
</details>
|
|
129
|
+
|
|
101
130
|
```
|
|
102
|
-
🚴 Zwift Log Parser v0.0.
|
|
131
|
+
🚴 Zwift Log Parser v0.0.2
|
|
103
132
|
|
|
104
133
|
Session Information
|
|
105
134
|
Log Date/Time: 21:09:07 2026-01-08
|
|
@@ -181,16 +210,14 @@ bun run pack # Create npm tarball in dist/
|
|
|
181
210
|
|
|
182
211
|
### Cutting a Release
|
|
183
212
|
|
|
184
|
-
1. Bump `version` in `package.json`
|
|
185
|
-
2.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
```
|
|
213
|
+
1. Bump `version` in `package.json` and merge to `main`
|
|
214
|
+
2. Go to **Actions → Release → Run workflow**, leave the branch as `main`, and
|
|
215
|
+
run it — the workflow reads the version from `package.json`, runs lint +
|
|
216
|
+
tests, builds, smoke-tests the tarball, publishes to npm, and attaches
|
|
217
|
+
`zwift-log-parser-<version>.tgz` to a GitHub Release
|
|
190
218
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
`zwift-log-parser-<version>.tgz` to a GitHub Release.
|
|
219
|
+
Tag pushes still work as an alternative: `git tag v0.0.2 && git push origin v0.0.2`
|
|
220
|
+
(the tag must match the `package.json` version).
|
|
194
221
|
|
|
195
222
|
### Development Workflow
|
|
196
223
|
|
package/dist/cli/main.js
CHANGED
|
@@ -29053,13 +29053,15 @@ function App2({ logfile, options, version, parserFactory = () => new ZwiftLogPar
|
|
|
29053
29053
|
|
|
29054
29054
|
// cli/src/main.tsx
|
|
29055
29055
|
var main = async () => {
|
|
29056
|
-
let appVersion = "
|
|
29057
|
-
|
|
29058
|
-
|
|
29059
|
-
|
|
29060
|
-
|
|
29061
|
-
|
|
29062
|
-
|
|
29056
|
+
let appVersion = "0.4.0";
|
|
29057
|
+
if (appVersion === "dev") {
|
|
29058
|
+
try {
|
|
29059
|
+
const pkgPath = path4.resolve(import.meta.dirname, "../../package.json");
|
|
29060
|
+
const pkg = JSON.parse(fs6.readFileSync(pkgPath, "utf-8"));
|
|
29061
|
+
if (pkg?.version)
|
|
29062
|
+
appVersion = pkg.version;
|
|
29063
|
+
} catch {}
|
|
29064
|
+
}
|
|
29063
29065
|
const program2 = new Command;
|
|
29064
29066
|
program2.name("zwift-log-parser").description("Parse and analyze Zwift activity log files with FPS metrics and route information").version(appVersion).argument("[logfile]", "path to Zwift log file to parse").option("--no-fps", "skip FPS analysis and graphs").option("--no-routes", "skip route/activity information").option("--no-metadata", "skip session and system metadata").option("--json", "output results as JSON instead of formatted text").showHelpAfterError(true).configureOutput({
|
|
29065
29067
|
outputError: (str, write) => {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zwift-log-parser",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "TypeScript console application for parsing Zwift log files",
|
|
5
5
|
"main": "dist/cli/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
16
16
|
"bin",
|
|
17
|
-
"README.md"
|
|
17
|
+
"README.md",
|
|
18
|
+
"!dist/bin"
|
|
18
19
|
],
|
|
19
20
|
"workspaces": [
|
|
20
21
|
"core",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "bun run scripts/build.ts",
|
|
26
|
+
"compile": "bun run scripts/compile.ts",
|
|
25
27
|
"start": "node dist/cli/main.js",
|
|
26
28
|
"dev": "bun run cli/src/main.tsx",
|
|
27
29
|
"clean": "rimraf dist",
|