Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

breakbar-log-parser

Self-hosted service for parsing Guild Wars 2 arcdps logs (.evtc, .zevtc) with Elite Insights (EI) into HTML reports and JSON. Planned public instance: logs.breakbar.cc; it will also serve as the parsing backend for voidlog.

Status: works end-to-end locally – web frontend, upload API, fair per-user queue, in-process EI parsing, SQLite, live status via SSE and report delivery. Deployment is not built yet. See docs/PLAN.md for architecture, decisions, API reference (section 4a), frontend (5a) and benchmark results.

Repository layout

Path Content
backend/ .NET 10 solution Breakbar.slnx
backend/src/Breakbar.Processing/ EliteInsightsAdapter – the only code that talks to EI
backend/src/Breakbar.Processing/Queue/ fair per-user queue and worker pool
backend/src/Breakbar.Api/ ASP.NET Core API: uploads, jobs, SSE, reports, SQLite
backend/tools/Breakbar.ParseSpike/ console tool: parse logs in-process, print time and memory
backend/tests/ xUnit v3 tests
frontend/ React + TypeScript + Vite + Tailwind web app (build goes to the API's wwwroot)
external/GW2-Elite-Insights-Parser/ EI as git submodule, pinned to a release tag
benchmark/ EI CLI benchmark scripts and results
docs/PLAN.md project plan

Getting started

Requirements: .NET 10 SDK, Node.js 22+, git.

git clone --recurse-submodules <repo-url>
cd breakbar-log-parser/backend
dotnet build -c Release
dotnet test --solution Breakbar.slnx -c Release

Tests that need a real log look in benchmark/logs/ (not committed) or in the folder set via BREAKBAR_TEST_LOG_DIR, and are skipped otherwise.

Parse logs in-process:

dotnet run --project tools/Breakbar.ParseSpike -c Release -- ../benchmark/logs --rounds 2

Run the API (http://localhost:5080/api/health; data goes to src/Breakbar.Api/data/):

dotnet run --project src/Breakbar.Api

Upload a log and follow it (the cookie jar keeps your anonymous identity):

curl -c jar -b jar -X POST --data-binary @fight.zevtc "http://localhost:5080/api/uploads?name=fight.zevtc"
curl -b jar http://localhost:5080/api/jobs
curl -N -b jar http://localhost:5080/api/events

Finished reports are at /r/<reportId> (HTML) and /r/<reportId>/json (EI JSON).

Frontend

cd frontend
npm install
npm run dev     # http://localhost:5173, forwards /api, /r, /ei-assets to the API on :5080
npm test        # unit tests (vitest)
npm run build   # type-check and build into backend/src/Breakbar.Api/wwwroot

After npm run build, the API alone serves the app on http://localhost:5080. In the Claude desktop app, .claude/launch.json starts both (api, frontend-dev).

Updating Elite Insights

cd external/GW2-Elite-Insights-Parser
git fetch --depth 1 origin tag vX.Y.Z.W
git checkout vX.Y.Z.W
cd ../..
git add external/GW2-Elite-Insights-Parser

Then build, run the tests, and adjust EliteInsightsAdapter.cs if the EI API changed.

License

MIT. Third-party parts keep their own licenses: Elite Insights (MIT, see the submodule's LICENSE), the fonts Inter, Space Grotesk and JetBrains Mono (SIL Open Font License, bundled via @fontsource).

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages