A modern, self-hosted web interface for Firefly III.
Ledgerly gives Firefly III a redesigned dashboard, responsive navigation and a consistent light and dark interface. Manage your finances through the Firefly III REST API while keeping your existing accounts, transactions and database. Ledgerly has no financial database of its own; Firefly III remains responsible for accounting and balances.
Ledgerly is an unofficial, independent project and is not affiliated with or endorsed by Firefly III. An existing Firefly III installation is required. Tested backend: Firefly III 6.7.8 (REST API v1). Back up your Firefly III installation before trying any new frontend; start with a disposable instance if possible.
Releases · Docker package · Report an issue
Explore Ledgerly v1.2.0 through an automated product walkthrough recorded with Playwright using synthetic financial data.
▶ Watch the full product demonstration
No installation required to view the demo.
| Light mode | Dark mode |
|---|---|
![]() |
![]() |
All screenshots use fictional demo data.
You need Docker with Compose v2, a reachable Firefly III server and a Firefly III Personal Access Token (PAT). No source checkout, Node.js installation or local image build is needed. The image is intended for Linux AMD64 and ARM64.
In a new, empty directory, save this file:
services:
ledgerly:
image: ghcr.io/vcoderuss/ledgerly:1.3.0
init: true
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
- "127.0.0.1:${LEDGERLY_PORT:-3001}:3000"
environment:
NODE_ENV: production
DEMO: "0"
LEDGERLY_SESSION_SECRET: ${LEDGERLY_SESSION_SECRET:?Set a private session secret in .env}
LEDGERLY_ORIGIN: ${LEDGERLY_ORIGIN:-http://127.0.0.1:3001}
FIREFLY_URL: ${FIREFLY_URL:?Set your Firefly III URL in .env}
FIREFLY_PUBLIC_URL: ${FIREFLY_PUBLIC_URL:?Set the browser-facing Firefly III URL in .env}
DATA_IMPORTER_URL: ${DATA_IMPORTER_URL:-}Save this in the same directory. Replace REPLACE_WITH_GENERATED_SECRET with a new, private 64-character hexadecimal string and adjust the Firefly addresses to your setup.
LEDGERLY_SESSION_SECRET=REPLACE_WITH_GENERATED_SECRET
LEDGERLY_ORIGIN=http://127.0.0.1:3001
LEDGERLY_PORT=3001
FIREFLY_URL=http://host.docker.internal:8080
FIREFLY_PUBLIC_URL=http://localhost:8080Generate the secret locally using one of these commands. Copy the generated value into .env privately; keep the same value across restarts.
Linux / macOS (OpenSSL):
openssl rand -hex 32Windows PowerShell:
$bytes = New-Object byte[] 32
$rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
try { $rng.GetBytes($bytes) } finally { $rng.Dispose() }
[BitConverter]::ToString($bytes).Replace('-', '').ToLowerInvariant()The example addresses work on Docker Desktop when Firefly III is reachable via the host's port 8080. For a remote backend, use its reachable HTTP(S) address; for Firefly III on the same Docker network or a Linux host, see the networking instructions below. FIREFLY_URL is the server-to-server address; FIREFLY_PUBLIC_URL is the browser-facing address. Do not put your PAT in this file. Keep .env out of source control and restrict access to it.
docker compose up -d
docker compose psOpen http://127.0.0.1:3001 once the container is healthy. Enter your Firefly III PAT in Ledgerly's Connect screen. Create one in your existing Firefly III profile if you don't already have one.
That's it. Ledgerly connects to your existing installation; it does not install Firefly III, migrate its database or seed data.
To stop Ledgerly, run docker compose stop. To start it again, run docker compose up -d.
- Responsive dashboard and navigation, light and dark themes.
- Asset accounts with account roles, credit-card payment metadata, bank identifiers, notes and virtual balances.
- Liability accounts (loans, debts and mortgages), with guided borrowing, repayment, lending and receiving repayment in the same currency.
- Expense and revenue accounts, account-name search, archiving/restoring and native ordering for active asset and liability accounts.
- Account transaction period filters and native historical closing balances for assets and liabilities, with opening-balance explanations.
- Income, expenses, split transactions and transfers, with reference fields and additional accounting dates.
- Foreign-currency income and expenses with separate original and account-currency amounts.
- Transaction relationships, eligible same-currency goal-linked transfers, advanced filters, browser-local saved filters and review-before-save cloning.
- Bulk category and tag changes, deletion and ordinary expense counterparty reassignment with full-group previews and per-group results.
- Statement reconciliation preview and history, with opt-in flag-only Apply and recorded Undo for eligible PHP/USD transactions. Persistent operation evidence supports recovery after interruption.
- Multi-currency transfers, custom currency management and per-currency net worth.
- Categories, tags, budgets, subscriptions and savings goals.
- Recurring transaction schedules, rules, reports and report CSV export.
- Optional link to the separately installed Firefly III Data Importer.
- Docker deployment with demo mode disabled by default and non-root runtime; an explicit reviewed API method/path allowlist (route inventory).
Statement preview and history are available without enabling writes. To enable the verified flag-only workflow, first back up Firefly III and try the setup against a disposable backend. Reconciliation writes are disabled by default. Keep the same session secret and persistent reconciliation storage across updates.
For the image-based Compose quick start above, add these entries to the existing ledgerly service (merge with its existing environment):
environment:
LEDGERLY_BATCH_PRODUCTION: "${LEDGERLY_BATCH_PRODUCTION:-0}"
LEDGERLY_BATCH_DIRECTORY: /app/reconciliation
LEDGERLY_BATCH_CHECKPOINT_DIRECTORY: /app/reconciliation-checkpoint
LEDGERLY_BATCH_STORE_ID: ${LEDGERLY_BATCH_STORE_ID:?Set a stable UUID v4}
LEDGERLY_BATCH_STORE_SECRET: ${LEDGERLY_BATCH_STORE_SECRET:?Set a private store secret}
volumes:
- reconciliation:/app/reconciliation
- reconciliation-checkpoint:/app/reconciliation-checkpointAdd these top-level named volumes (outside services):
volumes:
reconciliation:
reconciliation-checkpoint:In the same private .env, set LEDGERLY_BATCH_PRODUCTION=0, a fresh lowercase UUID v4 for LEDGERLY_BATCH_STORE_ID and a distinct private 64-character lowercase hexadecimal LEDGERLY_BATCH_STORE_SECRET (use the secret-generation instructions above, not the session secret). Keep these values stable. With all Ledgerly workers using this store stopped, provision only new, empty volumes, once:
docker compose stop ledgerly
docker compose run --rm --no-deps ledgerly node /app/provision-reconciliation-store.mjsRequire PASS: reconciliation store provisioned before changing LEDGERLY_BATCH_PRODUCTION=1 in .env and running docker compose up -d --force-recreate ledgerly. If provisioning fails, stop; never retry over a partial store or replace existing evidence. Source-based installations can use the supplied docker-compose.reconciliation.yml overlay with docker-compose.prod.yml and the same provisioning procedure.
Use fresh review and explicit confirmation; recorded Undo applies to verified Ledgerly operations, not arbitrary historical reconciliation. Batches are non-atomic, and independent Firefly writers are not locked by Ledgerly. Keep the evidence and checkpoint volumes and private configuration backed up; never delete volumes or reset an uncertain operation. Read the backup and recovery policy before enabling writes. For unsupported transactions or nonzero statement differences, use native Firefly reconciliation.
Networking, production deployment and HTTPS
-
Docker Desktop (Windows/macOS):
host.docker.internalrefers to the host.localhostinside a container refers to the container itself. A Firefly port bound only to host loopback may not be reachable from Docker Desktop; prefer a shared network instead of exposing Firefly III more broadly. -
Linux Docker Engine: when the upstream runs on the host, add the following under the
ledgerlyservice and usehttp://host.docker.internal:8080inFIREFLY_URL. The host service must listen on an interface reachable from Docker, not only loopback.extra_hosts: - "host.docker.internal:host-gateway"
-
Existing Docker network: attach Ledgerly to the same existing network as Firefly III. Identify its actual network name and Firefly service name using
docker network lsand your Firefly III Compose file. Add the service-levelnetworksentry and the top-levelnetworksentry below to your existingcompose.yaml(keep all other settings).services: ledgerly: networks: - firefly_existing networks: firefly_existing: external: true name: ${LEDGERLY_FIREFLY_NETWORK:?Set your existing Docker network name}
Update
.envwith your real network and service DNS names. For example, Ledgerly's disposable development stack uses:LEDGERLY_FIREFLY_NETWORK=ledgerly-dev_default FIREFLY_URL=http://firefly:8080 FIREFLY_PUBLIC_URL=http://localhost:8080
The external network already exists; Ledgerly will not create or remove it. Do not copy the example network name unless it matches your installation.
-
Remote Firefly III: set
FIREFLY_URLto its reachable HTTPS base URL andFIREFLY_PUBLIC_URLto its browser-facing URL. Do not append/api/v1or embed credentials, query strings or fragments. Use a trusted certificate.
The quick start deliberately publishes only the Ledgerly web port on host loopback. HTTP is allowed for loopback access only. For remote access, use a trusted HTTPS reverse proxy, set LEDGERLY_ORIGIN to the exact browser-facing HTTPS origin (including any nonstandard port) and preserve the original Host and Origin headers. Keep Firefly's upstream connection secured as well when it crosses an untrusted network.
Example Nginx location inside an existing TLS virtual host, for a reverse proxy running on the host:
location / {
proxy_pass http://127.0.0.1:3001;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
}Use a valid certificate and redirect HTTP to HTTPS. A containerized reverse proxy needs a shared Docker network and the Ledgerly service address (not its own loopback). Restrict access to trusted users; do not publish Firefly III's database port. Preserve the app's CSP and cache-control headers, and don't log cookies or request bodies.
docker compose restart ledgerly
docker compose psAfter modifying .env, apply it with docker compose up -d --force-recreate ledgerly; a restart alone does not reload environment values. Keep the same session secret, origin and upstream to preserve unexpired browser sessions. To update, change the image tag in compose.yaml to the desired released version, then run docker compose pull and docker compose up -d. Prefer explicit version tags over latest.
docker compose down removes this Ledgerly-only project, not the external Firefly III network or its database. Never remove Firefly III's volumes as part of Ledgerly installation or updates.
Security, backups, recurring transactions and imports
Ledgerly handles the PAT on the server and stores it in an authenticated-encrypted, HttpOnly, SameSite=Strict session cookie (Secure on HTTPS). The session is browser-held, not a plaintext token accessible to JavaScript. Writes require the configured origin; API forwarding uses an explicit reviewed method/path allowlist, body and query validation, and a single trusted upstream. Unsupported routes (including account deletion) are denied; resource identifiers are numeric, with narrowly validated currency-code routes and a literal conversion-preference read. Production pages use a nonce-based CSP. The image runs as a non-root user, excludes the Ledgerly seed script and does not include npm/Yarn tooling. Production Compose forces demo mode off and does not inject a managed PAT.
Keep .env private, owner-readable where possible, and do not share configuration dumps or screenshots containing credentials. Shell variables can override .env values in Compose. Keep one session secret per installation; rotating it invalidates sessions. Sessions last up to seven days. Revoke compromised tokens in Firefly III. See SECURITY.md for vulnerability reporting.
Recurring transactions: Ledgerly manages recurrence definitions; Firefly III executes them through its native scheduled task / cron. Configure cron on your existing backend even if Ledgerly is stopped. For Docker installations, use the backend's documented cron mechanism (for example, php /var/www/html/artisan firefly-iii:cron in the Firefly container as its web user). Ledgerly does not run that command automatically.
Backups: follow Firefly III's backup guide. Back up the database consistently, along with uploads, private configuration and required secrets such as the backend APP_KEY. CSV export is not a complete backup. Ledgerly has no backup or restore feature.
Data Importer: install Firefly III's Data Importer separately. Set DATA_IMPORTER_URL in .env to its browser-facing HTTP(S) base URL (without embedded credentials, query strings or fragments) and recreate Ledgerly. A link appears in Settings when configured. Ledgerly does not perform imports or forward credentials to it.
Troubleshooting and verification
| Symptom | What to check |
|---|---|
| Image pull denied or not found | Verify the version exists and the GHCR package is public. No login should be needed for a public package. |
| Port already in use | Change LEDGERLY_PORT and the port in LEDGERLY_ORIGIN together (e.g. 3002). |
| HTTP 403 opening Ledgerly | Use the exact configured origin. localhost and 127.0.0.1 are different hosts. |
| Cannot connect to Firefly III | Check FIREFLY_URL from inside the container, the backend's network and port, and use host.docker.internal or a shared network where appropriate. |
| Authentication fails | Check the PAT privately in Firefly III and ensure the configured browser-facing URL matches the Connect screen. |
| Session lost after recreate | Verify the session secret, origin and upstream have not changed. |
| Unhealthy container | Check docker compose logs --tail 60 ledgerly. The health check probes Ledgerly, not backend authentication. |
Useful commands (run in the directory containing compose.yaml):
docker compose ps
docker compose logs --tail 60 ledgerly
docker compose exec -T ledgerly node -e "fetch(process.env.FIREFLY_URL,{redirect:'manual'}).then(r=>console.log('Upstream HTTP status:',r.status)).catch(()=>{console.error('Upstream unreachable');process.exitCode=1})"
docker compose exec -T ledgerly node -e "console.log('UID:',process.getuid(),'DEMO:',process.env.DEMO,'Managed token:',Boolean(process.env.FIREFLY_TOKEN))"A backend HTTP response demonstrates reachability, not successful authentication. Do not disable TLS verification to fix connection errors. Expected runtime values are a non-root UID, DEMO: 0 and Managed token: false.
For a fresh installation test, use a disposable Firefly III backend and a separate empty directory. Pull and start the image, connect, check existing accounts/transactions, run docker compose restart ledgerly, then refresh and verify the same records and unexpired session. Confirm no extra backend/database service is deployed. Inspect the browser console for unexpected CSP violations or missing assets. Do not create or delete real financial records for testing.
Build from source, local development and tests
If you prefer building locally, clone this repository and check out the desired release tag. From its root, the existing docker-compose.prod.yml builds the standalone Next.js image instead of pulling GHCR. Docker Desktop / Compose v2 and Node.js 22.12+ (for the initializer) are required for these commands.
node scripts/init-prod-env.mjs
docker compose --env-file .env.prod -f docker-compose.prod.yml build ledgerly
docker compose --env-file .env.prod -f docker-compose.prod.yml up -d --no-build ledgerlyReview the generated .env.prod before starting. The initializer never overwrites an existing file. For an existing shared Docker network, configure the upstream and LEDGERLY_FIREFLY_NETWORK, and add -f docker-compose.prod.network.yml to every Compose command (including stop/restart). For Ledgerly's disposable development stack, node scripts/init-prod-env.mjs --dev-network initializes the matching values. Do not stop or recreate existing backend services; avoid port conflicts with other Ledgerly instances.
Native development uses Node.js 22.12+, locked dependencies and private development configuration. Keep your existing launcher, development Compose file, .env.dev, .env.local and volumes unchanged. The seed script is only for explicitly confirmed disposable development use.
npm ci
node scripts/init-session-env.mjs
npm run typecheck
npm run lint
npm test
npm run build
npm run devSet LEDGERLY_ORIGIN and FIREFLY_URL for your native development environment. See .env.example. npm start runs a native production build. The Dockerfile uses Next.js standalone output and bundled static assets.
Fixture browser tests use isolated synthetic data and do not require your Firefly III PAT. The separate real-backend account suite requires a disposable Firefly III 6.7.8 instance and a synthetic user token, never a personal token. See e2e/README.md:
npm ci --prefix e2e --no-audit --no-fund
npm run --prefix e2e install:browser
npm run --prefix e2e test:fixture
npm run --prefix e2e testFor live account regression, see the disposable integration harness and run npm run --prefix e2e test:accounts after setting up its isolated backend. Do not use a personal or development Firefly instance.
v1.3.0 verification: live disposable Firefly III 6.7.8 tests cover the previous transaction contracts plus 12 representative PHP/USD reconciliation cases, minimum mutation payloads, authenticated browser Apply and recorded Undo after restart, and controlled lost-response recovery with competing Ledgerly workers. See release notes, release checklist and parity ledger for the tested scope and outstanding checks. These checks do not establish full Firefly parity or cross-browser compatibility.
- Firefly III 6.7.8 is the tested backend baseline; other versions are not established as compatible.
- Dashboard income, spending and saved-this-period values, and the income vs. expense report, follow Firefly III's classification. Loan and debt principal movements may appear as income or spending. These are not adjusted accounting statements.
- Net worth is displayed separately for each native currency. The account-balance fallback includes applicable virtual balance adjustments and may differ from Firefly III's own net worth. Combined converted net worth and converted-mode balance semantics are not yet supported/verified.
- Liability opening balances and directions are read-only after creation; the tested opening-balance PUT returned HTTP 500. Guided liability movements support same-currency accounts only. Existing liability movements cannot be edited through the generic transaction editor; use the native Firefly III interface where appropriate.
- Firefly III may renumber accounts when positions or active status change; expense and revenue accounts do not expose native positions. Changing away from a credit-card account role can clear its payment metadata in Firefly III.
- Date handling is standardized across the reviewed frontend paths, with compatibility workarounds for endpoint-specific date ranges. Live coverage remains limited to tested timezone and date configurations.
- The mobile budget-month layout fix passed fixture Chromium tests at 320, 375, 390, 768 and 1440 pixels in both themes. No new Lighthouse measurement was made for the final v1.1.0 release candidate; prior mobile performance was below target.
- Firefly III handles accounting, exchange-rate administration, recurrence execution, backups and restore. Imports use the separately installed Data Importer.
- Automated budget setup/rollover, receipt attachments and full transaction export remain outside the current scope. Report CSV export is supported.
- Reconciliation writes are opt-in and limited to eligible ordinary PHP/USD deposits, withdrawals and same-currency transfers, including supported split groups. Null titles, linked or allocated entries, foreign amounts, attachments and other unverified shapes are blocked. Correction creation and arbitrary Undo are not supported; use native Firefly III. Firefly has no established conditional-write contract, and Ledgerly cannot guarantee atomicity or exclude external writers.
- Foreign amounts on ordinary income/expenses can be added and edited for supported two-decimal currencies; saved foreign pairs cannot be removed or switched to a different currency.
- Goal linking is limited to eligible single same-currency transfers. Goal-linked transfers are read-only in Ledgerly; link notes can be set on creation but not edited.
- Advanced search uses reviewed operators and local filtering of returned journals; it cannot recover records omitted by Firefly. Saved filters are browser-local, unencrypted and connection-specific. Cloning excludes existing identifiers and allocations.
- Bulk operations are bounded, confirmed and non-atomic; the unrestricted native account-wide move endpoint is not exposed.
- Full native-UI parity and converted-mode contract verification remain future work. Current synthetic closed-panel Lighthouse medians are 100/77 for transactions (desktop/mobile) and 99/66 for account detail; the mobile variability exception is accepted for this release. The final 90+ performance goal remains outstanding.
- Chromium E2E results do not establish full cross-browser compatibility or backend accounting correctness.
Ledgerly is a solo indie open-source project, developed with AI-assisted coding, documentation and testing, and tested by its maintainer. Feedback and bug reports are welcome. Please use fictional data when reporting issues, and never include a PAT, private configuration or real financial records.
Ledgerly's original code is licensed under GNU AGPLv3 only (AGPL-3.0-only). Third-party material retains its applicable terms; see copyright and license scope, third-party notices and Firefly API provenance. The matching source and build instructions are available in this repository for each release. Thank you to the Firefly III developers and the open-source projects that make Ledgerly possible.
Changelog · Specification · Security · Issues




