Skip to content
プロジェクト

moeckjeremy/ledger-home-finance

GitHubで見る

概要

A household finance app you host yourself: budgets, bills, debt, a tax estimate and an AI helper. Runs in Docker or as a Home Assistant app.

ビジネス・金融

この数値の測り方

計測したスター増加

24時間
0
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Ledger

Ledger

A household budget you run yourself. One small server, one SQLite file, no account with anyone: your finances stay on a machine you own.

Latest release Runs on 64-bit ARM and PC A Home Assistant app A ready-made Docker image

Try the live demo

Nothing to install or sign up for. Every figure in the demo is made up, and whatever you change is wiped within the hour.
Bank sync, uploads and AI are switched off there; Ask your CFO shows example answers. It may take a couple of seconds to wake.

Show Ledger in my Home Assistant

What it does · Home Assistant · Docker · Updating · What leaves your machine · License

Ledger's dashboard: what is left before payday, what is in checking, and spending against budget

The Budgets page, with suggestions for covering a category that has gone over The Debt page, with a payoff plan and a debt-free date
Budgets, with a way to cover what has gone over A payoff plan for what you owe
The dashboard with the Christmas scene behind it The dashboard in its light look
Holiday scenes, if you want them Light or dark
The dashboard in a high school's colors, with its logo in the side menu and its name across the top The dashboard in Notre Dame's navy and gold The dashboard in the Los Angeles Lakers' purple and gold
A local high school, read from its website A college team, found by name A professional team

A Team Theme on a phone: the school's logo is the add button   The phone's menu open, with the team's logo faintly behind it   The dashboard on a phone in a professional team's colors

Team Themes: dress Ledger in your team's colors and logo. Find a college or professional team by name, give a school's website, or upload a logo. On a phone the logo becomes the add button and sits behind the menu.

Ledger on a phone
On a phone, added to the home screen

Every figure in these pictures is made up: it is the sample household a new copy starts with.

Ledger began as one family's replacement for a paid budgeting app and grew from there. It is a personal project, shared as it is. It is not a product, and nobody is on call for it.

What Ledger is for

Your household's money, on something you own. Ledger lives where you choose, never on a company's computers, and it should be easy enough that nobody needs a manual. Five rules decide what goes into it:

  1. You own the data. It is stored on a device or server that belongs to your household. There is no account with Ledger.
  2. Off until you turn it on. Anything that reaches the internet (bank sync, AI, logos, a home's value) is a switch you flip, with a plain sentence saying what is sent and to whom.
  3. Modular. Taxes, side income, allowances, investments, AI: each can be ignored or switched off without leaving a hole.
  4. Clear before clever. The answer first, the explanation tucked away.
  5. It records, it never acts. Ledger shows and tracks. It does not move money, and it does not tell you what to claim or invest in.

What it does

  • Dashboard: what is left before payday, what is in checking now, spending against budget.
  • Transactions: from a bank connection, typed by hand, read from a receipt or statement, or imported from a file. Split a purchase across categories; leave one out; undo a removal.
  • Budgets: a set amount for each category, or "give every dollar a job" (zero-based). Unspent money can carry over.
  • Recurring bills: found in your transactions or added by hand on any rhythm, with a forecast of your checking balance through the next two paydays.
  • Debt: a payoff plan, graphs of each debt heading to zero, standing extra payments, and what you have paid toward each this month.
  • Taxes: a running estimate of federal income tax, self-employment tax and state income tax for the year, with pay stubs month by month, purchases that might be deductible, and a pack to hand to a tax preparer. An estimate, not tax advice.
  • Savings goals, investments (balances, and prices if you switch them on), statement checks.
  • Ask your CFO and other optional AI features, run on your own Anthropic API key, or, inside Home Assistant, on the AI you already have set up there (the basics; Claude by key does the most).
  • Works on a phone and can be added to its home screen.

Running it

Docker (a NAS, a home server, or your own computer)

Ledger is published ready-made, for ordinary PCs and Macs (amd64) and for ARM machines such as a Raspberry Pi or an Apple-silicon Mac (arm64). Nothing needs building. With Docker installed, one line starts it:

docker run -d --name ledger --restart unless-stopped -p 4317:4317 -v ledger-data:/data ghcr.io/moeckjeremy/ledger-home-finance:latest

Then open http://localhost:4317 on that machine, or http://<its address>:4317 from another device on your network. A new copy starts with sample data so you can look around; your first bank connection or import replaces it. Your data is kept in the Docker volume ledger-data.

New to Docker? A two-page printable guide walks through installing it on a Windows PC or a Mac with pictures, and reaching Ledger from your phone.

On your own computer Ledger only works while the computer is on and awake: bank syncs, the summary email and alerts wait until it is.

Updating a Docker install

Ledger looks at this page once a day and says on its dashboard when a newer version is out (nothing about you is sent, and Settings, "Updates" switches it off). Settings, "Updates" also shows the version you are running and these same steps at any time. To update, run these two lines one after the other. Your data is kept: it lives in the ledger-data volume, not in the container.

docker rm -f ledger
docker run -d --pull always --name ledger --restart unless-stopped -p 4317:4317 -v ledger-data:/data ghcr.io/moeckjeremy/ledger-home-finance:latest

The first removes the old version and the second fetches the new one and starts it. Your data stays in the volume. (They are two separate lines on purpose: the terminal in Docker Desktop on Windows does not accept &&.) If you prefer Compose, ledger/compose.yaml does the same (docker compose up -d; add TZ=Your/Zone to a .env file there for your time zone). Without a time zone, Ledger takes its own from the first browser that opens it; to fix one yourself, add -e TZ=Your/Zone before the image's name.

Set a password in Settings before the port is reachable by anyone you would not show your finances to. Ledger has no TLS of its own: put it behind a reverse proxy, a VPN such as Tailscale, or a tunnel with its own sign-in if you want to reach it from outside your home.

If you forget the password

Ledger has no "email me a reset link", because it has no account with anyone. Whoever runs the server can clear the password instead. On the machine that hosts Ledger:

docker exec -it ledger node server/reset-password.js --yes

That removes the password and signs every device out. Your figures, your bank connection and any other adult's own sign-in are untouched. Then open Ledger from a device on your home network straight away and set a new password in Settings: until you do, anyone on that network could. A passkey (Settings, "Passkeys") is a good spare way in for next time.

Home Assistant app

Show Ledger in my Home Assistant

Press the button: it opens Ledger's own page in your Home Assistant, offering to add this repository first if you haven't already. Press Install there, start it, and open it from the sidebar. Or do it by hand: in Home Assistant go to Settings, Apps, Install app, and type Ledger in the search bar. If it isn't listed, add this repository first (the ⋮ menu there, Repositories, paste this page's address) and search again. It arrives ready-made for 64-bit machines (ARM and PC); a 32-bit Home Assistant, such as one on an older Raspberry Pi, will not list it. See the app's notes.

The app asks for permission to call Home Assistant's API. Home Assistant offers no narrower permission than that, so here is exactly what Ledger does with it: nothing at all unless you choose "The AI in your Home Assistant" in Ledger's Settings, or one of your Home Assistant calendars for a side gig paid by booked sessions, or switch on one of its optional sensors. Then it makes four calls and no others. Three only read or ask: it lists your AI Tasks and calendars for a menu, it asks the AI Task you chose (ai_task.generate_data), and it reads the events of the calendar you chose. The fourth writes, and only Ledger's own sensors (binary_sensor.ledger_... and sensor.ledger_..., six in all, each off until you switch it on in Ledger's Settings) so your automations can react to a bill due tomorrow or a low balance. It cannot write anything else. The code is in ledger/server/haai.js.

From source

To build the image yourself: docker build -f ledger/Dockerfile.docker -t ledger ledger. Or without Docker:

npm ci
npm run build
NODE_ENV=production LEDGER_DATA_DIR=./data PORT=4317 node server/index.js

Node 24 or newer (it uses Node's built-in SQLite).

Settings you can pass in the environment

Variable What it does
LEDGER_DATA_DIR Folder for the database. /data in the container.
PORT, HOST Where to listen. 4317 and all addresses in the container.
TZ Your time zone, so "today" and paydays are right. If it is not set, Ledger uses the time zone of the first browser that opens it.
LEDGER_FRESH=1 Start empty with the setup guide, in place of sample data.
LEDGER_INGRESS=1 Home Assistant app mode: trust requests from the Supervisor, allow framing.
LEDGER_SETUP_CODE For a copy you host for another household: a one-time code they use to claim it.
LEDGER_AI_KEY, LEDGER_AI_MONTHLY_LIMIT, LEDGER_AI_MODEL An Anthropic key the host pays for on such a copy, with a monthly ceiling.

What leaves your machine

Nothing, unless you switch it on:

  • Bank connection: Ledger asks SimpleFIN Bridge (a separate paid service you sign up for) for your balances and transactions. Your bank password never reaches Ledger.
  • AI features: what each one sends to Anthropic is described in the app (About, and Settings, "What has been sent to Claude"). Off until you add a key.
  • A booking calendar, if you connect one for a side gig paid by the session: Ledger fetches that calendar's iCal address every few hours. Nothing is sent to it.
  • Logos: to show a shop's logo, Ledger asks an icon service (Google's, then DuckDuckGo's) for the icon of that shop's website, once per shop. This happens with or without an AI key, and can be switched off in Settings, "AI and logos"; shops then show as a letter. If you paste a free Logo.dev key of your own under "Sharper logos" there, Ledger asks Logo.dev first, sending the same website name and your key, and shows proper company logos. The app ships with no key. If someone picks a sports team as the look (Settings, Appearance, "Team Theme"), Ledger finds it in a list of college and professional teams that the server downloads about once a week from ESPN's public team lists, and loads the chosen logo from that site's picture server (a team the list lacks is looked up at TheSportsDB; a team's own website can be given instead, which the server reads once for its name, logo and colors; a logo can also simply be uploaded). The logo is kept in that person's browser. The app ships with no team's logo or colors.
  • Investment prices: ticker symbols only, off until switched on.
  • Summary email and alerts: through a mail account you set up.

The tax estimate

For tax year 2026. Federal figures follow IRS Rev. Proc. 2025-32. Arkansas is worked out in detail from the state's own worksheet. Every other state uses one table of rates, standard deductions and personal exemptions (the Tax Foundation's compilation as of January 1, 2026) and leaves out local income taxes, each state's own credits, and more: see server/states.js for the list. The constants need updating each January. Do not file from it.

Notes for anyone reading the code

React, TypeScript and Vite in src/; one Express process in server/ with Node's node:sqlite, no ORM. Tables are created and migrated at start-up by the module that owns them. Amounts are negative for money out. Some internal names (vipkid, ar…) are older than the features they now serve.

Ledger was written with Claude, Anthropic's AI model, and uses the Claude API for its optional AI features. It is not made, endorsed or supported by Anthropic.

License

Apache License 2.0. See LICENSE and NOTICE. Free to use, change and share; it comes with no warranty. The name Ledger, its logo and the CFO owl are not part of the license: see TRADEMARKS.md. Versions through 0.1.42 were published under MIT.

関連プロジェクトを探す

読み込み中…