Converts bank statement PDFs to Firefly III imports.
  • Python 95.3%
  • CSS 3%
  • JavaScript 1.5%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JJ Macalinao 9475fa69cc
All checks were successful
release / image (push) Successful in 3m44s
docs: fix the config edit step and admin-created object wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 02:02:41 +08:00
.forgejo/workflows fix: smoke test the image with OIDC login and the /data store 2026-11-05 19:27:37 +08:00
docs docs: fix the config edit step and admin-created object wording 2026-11-07 02:02:41 +08:00
scripts feat: append card last 4 to BDO, UnionBank and savings source ids 2026-11-05 17:20:02 +08:00
src/firefly_statement_importer fix: refuse the outcome tags as kind tags 2026-11-06 18:26:08 +08:00
tests fix: refuse the outcome tags as kind tags 2026-11-06 18:26:08 +08:00
.dockerignore feat: add a Docker Compose file and an example env file 2026-11-06 15:00:05 +08:00
.env.example docs: fix the config edit step and admin-created object wording 2026-11-07 02:02:41 +08:00
.gitignore feat: add a Docker Compose file and an example env file 2026-11-06 15:00:05 +08:00
.python-version feat: convert bank statement PDFs and exports into Firefly III data importer uploads 2026-10-04 11:57:22 +08:00
compose.yaml feat: add a Docker Compose file and an example env file 2026-11-06 15:00:05 +08:00
Dockerfile feat: convert bank statement PDFs and exports into Firefly III data importer uploads 2026-10-04 11:57:22 +08:00
pyproject.toml feat: add firefly-statement-importer-unlink to clear a pinned Paperless link 2026-11-05 17:53:58 +08:00
README.md docs: require fixed OIDC usernames and restrict the Authentik application 2026-11-07 01:58:59 +08:00
uv.lock refactor: drop the mail phase; sync reads only Paperless settings 2026-11-05 17:21:31 +08:00

Firefly Statement Importer

Get your Philippine bank and credit card statements into Firefly III without typing in a single transaction. Upload the PDF, check the rows, click import. If you keep your statements in Paperless-ngx, it can import them on a schedule instead.

The review page, listing parsed transactions before import

Features

  • Reads BPI, BDO, UnionBank and MariBank statements, BDO account exports and any 3-column CSV.
  • Opens password-protected PDFs. The sync tries the passwords each user saves.
  • Shows every parsed row before anything is imported, and unticks the rows Firefly already has. Importing the same statement twice creates no duplicates.
  • Supports several users. Each signs in through your OIDC provider, imports with their own Firefly token and maps their cards to their own accounts.
  • Parses the PDF text layer with no OCR and no LLM, so the same statement always gives the same rows. Statements never leave your own servers.
  • Optionally imports new statements from Paperless-ngx, for example the ones your Paperless mail rules file from your inbox.

Supported statements

Bank Format
BPI Credit card statement PDF
BDO Credit card statement of account PDF, account CSV export
UnionBank Credit card eStatement PDF
MariBank Account statement PDF
Any 3-column CSV: transaction date,transaction details,amount

More on statement formats.

Quick start

You need Docker Compose, a running Firefly III, an OIDC provider such as Authentik, Keycloak or Authelia, and a reverse proxy that serves the app over HTTPS. Sign-in works only over HTTPS.

  1. Clone this repository and cd into it.

  2. Register the app with your OIDC provider, as described under Registering the client. Then copy the example settings and fill them in:

    cp .env.example .env
    
  3. Create the data directory. The container runs as uid 1000 and must own it:

    mkdir data && sudo chown 1000:1000 data
    
  4. Build and start the app and the Firefly III data importer:

    docker compose up -d --build
    
  5. Point your reverse proxy at 127.0.0.1:8080 and sign in. Each user saves their Firefly token and maps their cards on the settings page.

To import from Paperless-ngx as well, set up the scheduled sync.

The upload page

Documentation