项目 / hledgerorg/hledger

hledgerorg/hledger

行业候选
语言 Haskell标签 hledgerhaskellledgerweb-applicationconsole-applicationcommand-line-tooltuiaccountingplaintextfinancehaskell-applicationsplaintextaccounting数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

Robust, fast, intuitive plain text accounting tool with CLI, TUI and web interfaces.

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Robust, fast, intuitive plain text accounting tool with CLI, TUI and web interfaces.
4,835累计星
427Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景 金融 暂无可用场景

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
作者用 hledger 记录收支与预算、按日/周/月/项目看时间报告、追踪报销和发票、预测现金流与余额并获取报税数字,通过纯文本日记文件配合 hledger bs、hledger is 等命令生成资产负债表和利润表等报表。
特点或设计要点
支持多币种,擅长导入和导出 CSV,也可输出文本、HTML、JSON 和 SQL。账户名、币种和数字格式可按使用习惯设置。它受 Ledger CLI 启发并部分兼容,也可与 Beancount 互相转换。源文写明 2026 年起 `main` 分支开发的是 hledger 2.x,1.x 的稳定维护在 `hledger1` 分支;安装页同时提供当前稳定版和 2.0 预览版的获取方式,官方二进制覆盖 Linux、macOS 和 Windows,也可用 Homebrew、Scoop、Docker 等包管理器安装。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-21 · 语言 Haskell · 贡献者 —
cli

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 9,991 字节。

# hledger

## Robust, intuitive plain text accounting
[![license](https://img.shields.io/badge/license-GPLv3+-brightgreen.svg)](https://www.gnu.org/licenses/gpl.html)
[![on hackage](https://img.shields.io/hackage/v/hledger.svg?label=hackage&colorB=green)](https://hackage.haskell.org/package/hledger)
[![](https://repology.org/badge/version-for-repo/stackage_nighly/hledger.svg)](https://repology.org/metapackage/hledger)
[![](https://repology.org/badge/version-for-repo/stackage_lts/hledger.svg)](https://repology.org/metapackage/hledger)
[![Open issues, all kinds](https://img.shields.io/github/issues/hledgerorg/hledger.svg "Open issues, all kinds.")](https://github.com/hledgerorg/hledger/issues?q=is:issue+state:open)

Welcome! This is 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](https://plaintextaccounting.org) ecosystem. 
Using it is an excellent way to learn double entry accounting.

Compared to [other PTA apps](https://plaintextaccounting.org/#software), 
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
- Free software licensed under GNU General Public License v3.0 or later.

## 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

Here's an example of the journal file format:
```journal
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:
```cli
$ 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 
```
```cli
$ 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>

## hledger 1.x and 2.x

In 2026, the `master` branch was renamed to `hledger1`,
and work began on hledger 2.x, now in the `main` branch.

Some goals for 2.x:

- continue and improve 1.x's reliability
- provide excellent lot tracking and capital gains calculation
- explore ethical use of AI as a dev tool
- more cleanup and simplification of code, docs, process, finance
- more speed
- more interoperability
- more use of jj for version management
- easier contribution

and for 1.x:

- continued stability, installability
- bugfix releases to fix newly discovered regressions, if any
- preserve the non-AI-assisted codebase, and try to keep it that way

Related:

- [Thoughts on hledger 2 #2547](https://github.com/hledgerorg/hledger/issues/2547)
- <https://hledger.org/AI.html>
- <https://hledger.org/relnotes.html#2026-03-28-hledger-1991>

## Funding

hledger is brought to you by
[Simon Michael](http://joyful.com),
[140+ contributors](doc/CREDITS.md),
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.
It's easy! Please see <https://hledger.org/sponsor.html> for details.

<!-- SPONSOR AVATARS BEGIN (generated by update-sponsors.sh, do not edit) -->
<a href="https://www.octoberswimmer.com" title="October Swimmer"><img src="https://images.opencollective.com/october-swimmer/487d631/logo/400.png" alt="October Swimmer" height="200"></a>
<a href="https://writersperhour.com" title="Writers Per Hour"><img src="https://images.opencollective.com/writersperhour/033b80a/logo/400.png" alt="Writers Per Hour" height="135"></a>
<a href="https://www.apmhelp.com" title="APM Help"><img src="https://images.opencollective.com/apmhelp/6d865c8/logo/400.png" alt="APM Help" height="117"></a>
<a href="https://finmasters.com" title="FinMasters"><img src="https://images.opencollective.com/finmasters/22f821d/logo/400.png" alt="FinMasters" height="102"></a>
<a href="https://opencollective.com/diasparsoft" title="Diaspar Software Services"><img src="https://images.opencollective.com/diasparsoft/logo/400.png" alt="Diaspar Software Services" height="88"></a>
<a href="https://joyful.com" title="Joyful Systems"><img src="https://images.opencollective.com/joyfulsystems/d7ce8c3/logo/400.png" alt="Joyful Systems" height="79"></a>
<br>
<a href="https://www.olsensrevision.dk" title="Olsens Revision ApS"><img src="https://images.opencollective.com/olsensrevision/c629690/avatar/400.png" alt="Olsens Revision ApS" height="120"></a>
<a href="https://opencollective.com/tony-xiao1" title="Tony Xiao"><img src="https://images.opencollective.com/tony-xiao1/a7aacdd/avatar/400.png" alt="Tony Xiao" height="75"></a>
<a href="https://joyful.com/" title="Simon Michael"><img src="https://images.opencollective.com/simon/f44851a/avatar/400.png" alt="Simon Michael" height="74"></a>
<a href="https://github.com/rhyanki" title="Rishi Hyanki"><img src="https://images.opencollective.com/rhyanki/avatar/400.png" alt="Rishi Hyanki" height="68"></a>
<a href="https://twitter.com/b_barker" title="Brandon Barker"><img src="https://images.opencollective.com/brandonbarker/595022d/avatar/400.png" alt="Brandon Barker" height="66"></a>
<a href="https://opencollective.com/jack-todaro" title="Jack Todaro"><img src="https://images.opencollective.com/jack-todaro/avatar/400.png" alt="Jack Todaro" height="66"></a>
<a href="https://opencollective.com/richard-kelly" title="Richard Kelly"><img src="https://images.opencollective.com/richard-kelly/1b2c64c/avatar/400.png" alt="Richard Kelly" height="64"></a>
<a href="https://opencollective.com/james-blachly" title="James Blachly"><img src="https://images.opencollective.com/james-blachly/ffc8288/avatar/400.png" alt="James Blachly" height="63"></a>
<a href="https://opencollective.com/ken-ewing" title="Ken Ewing"><img src="https://images.opencollective.com/ken-ewing/b5ace9b/avatar/400.png" alt="Ken Ewing" height="62"></a>
<a href="https://opencollective.com/marc11" title="Marc"><img src="https://images.opencollective.com/marc11/avatar/400.png" alt="Marc" height="60"></a>
<!-- SPONSOR AVATARS END -->

<!-- (If your logo/avatar isn't appearing here, eg because you didn't use Open Collective, please [let me know](mailto:webmaster@hledger.org).) -->
↑