npx claudepluginhub glorat/gainstrackPlaybook for preparing a company's financial statements from raw records (bank statements, payment-processor exports, expense logs) using gainstrack as the accounting engine, with a bundled multi-lens review checklist.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.
Gainstrack is a plain-text double-entry accounting engine for personal finance and investments. You write financial events in a small domain-specific language, and it produces portfolio reports and the primary financial statements from them.
To install the CLI or the agent skill, see INSTALL.md. To use the web app, go to www.gainstrack.com, and for user help start at Gainstrack Help. The rest of this file is for developers working on the engine itself.
| path | what it is |
|---|---|
| client/ | Vue 3 / Quasar SPA in TypeScript. The application, and the engine it runs on |
| client/functions/ | Firebase Cloud Functions for quote sources |
| tools/gainstrack-cli/ | headless CLI over the same engine, published to npm as gainstrack |
| tools/beancount-oracle/ | a command-line beancount importer, and the test that verifies the conversion against beancount itself |
| bean2gain/ | beancount compiled to WebAssembly. GPL-2.0-only and deliberately kept apart (see Licensing) |
| plugins/ | Claude Code agent skills, published from this repo as a plugin marketplace |
| web/ | Scala HTTP server. Two live endpoints, both serving quotes |
| quotes/ | Scala market data module, backed by Alpha Vantage |
| core/ | Scala domain model, superseded by the TypeScript port and kept as the parity-test oracle |
| python/ | Python quote-source helpers, including the investpy cloud function |
| docs/ | design notes and post-mortems |
client/, client/functions/, bean2gain/, tools/gainstrack-cli/ and tools/beancount-oracle/
are separate packages with their own lockfiles. Run pnpm install inside each one you touch.
Four directories are auxiliary and predate the current architecture: electron/ (a desktop shell),
fava/ (a Dockerfile and one template), nginx/ (server configs) and scripts/ (an sbt wrapper).
The application is client-side. Parsing, report generation and persistence all happen in the
browser against Firestore. The Scala backend survives only to serve market quotes, through two
endpoints in QuotesController, and both are guarded on the client so that a quotes outage
degrades rather than blocks.
A Firestore failure must surface as a failure. It must never fall back to the legacy Scala-side stream, which would show stale data and then fork the two stores on the next save.
client/src/lib/GainstrackParser.ts turns text into commands, and client/src/lib/gen/ folds
those commands into AllState. Both are ports of the Scala originals in core/, verified
byte-identical against them over a real ledger. Nothing the UI needs routes through Scala any more,
so core/ earns its keep as the oracle for those parity tests.
CLAUDE.md carries the architecture in full, file by file.
The frontend alone is usually enough. The dev server proxies the two quotes endpoints to the deployed backend, so most work needs nothing else running.
cd client
pnpm install
pnpm run dev # quasar dev, on port 8080
The backend matters only when you are working on quotes. Open the project in IntelliJ or another
IDE and run JettyLauncher, setting the environment variables below as needed by
application.conf.
Cloud functions:
cd client/functions
export DEV=true
export GOOGLE_APPLICATION_CREDENTIALS=<path-to-json>
pnpm run serve
cd client
pnpm run test:unit
pnpm run type-check # vue-tsc. Must pass before a PR is ready
pnpm run lint
The other packages carry their own suites, and client/'s does not run them:
tools/beancount-oracle: BEAN_PYTHON=<python-with-beancount> pnpm run test:unit, which runs a
real beancount over the import and skips cleanly without that interpretertools/gainstrack-cli: pnpm run test:unitbean2gain: pnpm run test:unit and pnpm run verify:fixturessbt test from the repository rootThe TypeScript port is verified against Scala by golden files, which is the reason core/ still
compiles. CLAUDE.md lists every layer of that suite and the commands that dump the
goldens. It also covers the conventions for private test data, which matter because a fresh clone
has to stay green.