Go to file
2024-10-20 08:49:36 -10:00
.github ;ci: windows, mac, linux-x64-stack: list dep versions before building hledger 2024-09-30 17:21:26 -10:00
.sandstorm
.vscode/notebooks
bin ;bin: fix build errors in all scripts 2024-10-11 14:55:35 -10:00
checks
doc ;doc: REGRESSIONS: update 2024-10-15 16:36:54 -10:00
docker
docker-arm32v7 ;ci: linux: expect linux builds to be warning free like the rest 2024-09-30 17:21:23 -10:00
examples ;examples: hledger2beancount.conf: fix unsupported quoting, add stuff 2024-10-11 14:56:03 -10:00
hledger doc: hledger.m4: add FODS to aregister in output format matrix 2024-10-20 08:49:36 -10:00
hledger-install ;install: fix installation of hledger-ui, 2 2024-09-12 02:51:55 -07:00
hledger-lib lib: Write.Spreadsheet.integerCell: for transaction indices 2024-10-20 08:49:36 -10:00
hledger-ui cabal: update cabal files 2024-10-19 18:50:40 -10:00
hledger-web cabal: update cabal files 2024-10-19 18:50:40 -10:00
tools ;tools: gtree: -u shows untracked files, -I adds ignored files 2024-10-10 06:51:30 -10:00
.ci
.ctags
.dockerignore
.editorconfig
.ghci ;dev: .ghci: cleanup 2024-07-13 07:32:18 +01:00
.gitignore ;dev: gitignore 2024-07-01 23:36:46 +01:00
.hlint.yaml
.mailmap
.version ;pkg: bump version to 1.40.99 2024-09-09 14:06:06 -07:00
azure-pipelines.yml
bench1k.sh
bench5k.sh
bench10k.sh
bench100k.sh
bench-10ktxns-10kaccts.sh ;just: more benchmarks 2024-01-26 17:14:25 -10:00
bench-10ktxns-100kaccts.sh ;just: more benchmarks 2024-01-26 17:14:25 -10:00
bench-ledger.sh
bench-many-accts.sh ;just: more benchmarks 2024-01-26 22:23:04 -10:00
bench-many-txns.sh ;just: more benchmarks 2024-01-26 17:14:25 -10:00
bench.sh
cabal.project
CHANGES.md ;doc: changelogs 2024-10-15 16:36:54 -10:00
dev.hs
dir
Dockerfile
ghc-tags.yaml ;dev:ghc-tags: ignore hledger/test/addons 2024-02-29 21:44:35 +00:00
hie-stack.yaml
hledger.conf imp:cli: handle -NUM in config file properly 2024-10-19 16:56:14 -10:00
hledger.conf.sample ;examples: hledger.conf.sample: updates 2024-10-19 18:00:51 -10:00
Justfile imp: rename ghcdebug build flag to debug, and enable stack traces with it 2024-10-19 18:47:03 -10:00
LICENSE
Makefile ;tools: retire the main Makefile 2024-04-24 07:34:31 -10:00
Makefile.helpsys
README.md ;doc: readme: fix contributors link 2024-07-17 07:06:12 +01:00
Shake.hs ;dev: bump to latest stackage nightly 2024-09-28 08:39:06 -10:00
stack8.10.yaml dev: stack: silence wizards bounds warning, hopefully 2024-09-30 17:21:26 -10:00
stack9.0.yaml imp: Revert problematic process-1.6.19.0 bound, it seems not strictly needed [#2149] 2024-05-01 23:04:08 -10:00
stack9.2.yaml imp: Revert problematic process-1.6.19.0 bound, it seems not strictly needed [#2149] 2024-05-01 23:04:08 -10:00
stack9.4.yaml imp: Revert problematic process-1.6.19.0 bound, it seems not strictly needed [#2149] 2024-05-01 23:04:08 -10:00
stack9.6.yaml imp: Revert problematic process-1.6.19.0 bound, it seems not strictly needed [#2149] 2024-05-01 23:04:08 -10:00
stack9.8.yaml imp: rename ghcdebug build flag to debug, and enable stack traces with it 2024-10-19 18:47:03 -10:00
stack.yaml imp: rename ghcdebug build flag to debug, and enable stack traces with it 2024-10-19 18:47:03 -10:00

hledger

Robust, intuitive plain text accounting

license on hackage github issues

Welcome! This a brief intro to hledger. For a more detailed version, see the home page: https://hledger.org

hledger is lightweight, cross platform, multi-currency, double-entry accounting software. It lets you track money, investments, cryptocurrencies, invoices, time, inventory and more, in a safe, future-proof plain text data format with full version control and privacy.

hledger aims to help both computer experts and regular folks gain clarity in their finances and time management. Though the UIs are basic, hledger can model any accounting situation and provide precise, clear reports. It is reliable, quick, and backed by the highly supportive Plain Text Accounting ecosystem. Using it is an excellent way to learn double entry accounting.

Compared to other PTA apps, hledger is actively maintained, with regular releases, and a strong focus on being easy to use and practical for everyday accounting.

More features: - Installs easily on unix, mac or windows - Complete, built-in documentation in multiple formats, beginner videos, tutorials etc. - Multiple UIs: command-line, terminal, web, mobile, editors/IDEs - Good at importing and exporting CSV; also outputs text/HTML/JSON/SQL - A robust, general, well-specified multi-currency accounting engine - Fast, analysing 25k transactions per second on a macbook air m1 - Accurate to 255 decimal places - Supports your preferred account names, currencies, number formats - Inspired by and partly compatible with Ledger CLI; interconvertible with Beancount - Scriptable by CLI, HTTP or API, with plenty of examples - Clean Haskell codebase, continually improved since 2007, with $100 regression bounties - Free software licensed under GPLv3+.

Examples

I use hledger to: - track income and spending, sometimes with budgets - see time reports by day/week/month/project - track reimbursables, invoices and payments - predict cashflow and account balances - get accurate numbers for tax filing - research past events

Heres an example of the journal file format:

2022-01-01 opening balances as of this date
    assets:bank:checking                $1000
    assets:bank:savings                 $2000
    assets:cash                          $100
    liabilities:creditcard               $-50
    equity:opening/closing balances

2022-01-15 market
    expenses:food             $50
    assets:cash              $-50

2022-02-01 GOODWORKS CORP
    assets:bank:checking           $1000
    income:salary                 $-1000

and some simple reports:

$ hledger bs
Balance Sheet 2022-02-15

                        || 2022-02-15 
========================++============
 Assets                 ||            
------------------------++------------
 assets:bank:checking   ||      $2000 
 assets:bank:savings    ||      $2000 
 assets:cash            ||        $50 
------------------------++------------
                        ||      $4050 
========================++============
 Liabilities            ||            
------------------------++------------
 liabilities:creditcard ||        $50 
------------------------++------------
                        ||        $50 
========================++============
 Net:                   ||      $4000 
$ hledger is --monthly                                            
Income Statement 2022-01-01..2022-02-28                                               
                                                                                      
               ||  Jan    Feb                                                         
===============++=============                                                        
 Revenues      ||                                                                     
---------------++-------------                                                        
 income:salary ||    0  $1000                                                         
---------------++-------------                                                        
               ||    0  $1000                                                         
===============++=============                                                        
 Expenses      ||                                                                     
---------------++-------------                                                        
 expenses:food ||  $50      0                                                         
---------------++-------------                                                        
               ||  $50      0                                                         
===============++=============                                                        
 Net:          || $-50  $1000                                                         

More examples and screenshots: https://hledger.org/#how-to-get-started

Funding

hledger is brought to you by Simon Michael, 140+ contributors, and the generous financial sponsors below.

After enjoying some personal or organisational success with hledger, you might want to become one of them, to help support this work. Its easy! Please see https://hledger.org/sponsor.html for details.

Organisational sponsors

Individual sponsors