登录 注册
开发者工具AI 模型与开发框架安全与隐私工具 accountingcommand-line-toolconsole-applicationfinancehaskellhaskell-applications
4,816
Stars
424
Forks
43
Watchers
314
Open Issues
GPL-3.0
许可证
Haskell
语言
2013-04-08
创建时间
2026-11-11
最近更新

项目能做什么

hledger 是一款用 Haskell 编写的纯文本复式记账工具,解决财务及时间记录难以版本化和跨平台管理的问题。它以纯文本格式存储数据,支持多币种、投资与发票追踪;提供 CLI、TUI 和 Web 界面,兼具极速处理性能与精准报表生成能力。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# 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
    ass
阅读完整原文

项目深度分析 AI 生成

hledger 托管式 Web 与多端同步 SaaS

产品构想为不愿折腾本地环境和命令行的人群提供开箱即用的云端 hledger Web 服务,数据通过加密 Git 仓库备份,提供现代化的 Web 与移动端界面。
核心功能云端 hledger-web 托管、端到端加密、私有 Git 备份、PWA/移动端快捷录入、一键生成标准财务报表。
目标用户非深度极客的远程工作者、自由职业者、希望手机端随时记账的用户。
难度/周期中等 · 2 - 3 个月 · 成本:极低(轻量云服务器、基础存储服务)
收费模式订阅制 SaaS(月费/年费,按账本数或存储容量阶梯收费)。
竞争风险GPL-3.0 协议限制(需注意后端服务架构隔离,避免核心专有代码闭源冲突);用户群体极度偏好本地离线与隐私,对云端信任门槛高。
依据 已验证事实

跨银行流水自动导入与对账转换器

产品构想开发针对多国银行(Plaid/GoCardless/微信/支付宝等)的交易流水自动抓取与清洗工具,自动转换为合规的 hledger journal 文本并智能匹配分类规则。
核心功能银行 API 接入集成、PDF/CSV 智能解析规则引擎、基于历史分类的自动补全规则导出、对账差异检测。
目标用户每月有大量多渠道流水、需要花费大量时间处理 CSV/PDF 对账的自由职业者或小微企业主。
难度/周期高 · 3 - 5 个月 · 成本:中等(银行数据 API 接入认证费、测试账目成本)
收费模式按月订阅或按处理账单数量计费的辅助工具订阅。
竞争风险银行 API 接入成本高且存在地域性合规壁垒;主流用户对金融凭据授权非常敏感。
依据 数据支持的判断

小微企业/独立开发者专属税务与财报定制套件

产品构想基于 hledger 引擎提供针对特定地区(如美国、欧洲、独立开发者出海)的税务合规模版、增值税计算插件及专属报表生成器,附带财务初始化咨询。
核心功能本地运行的财务报表增强插件、多币种折算报告、增值税(VAT/Sales Tax)专用报告模板、一对一账本架构搭建咨询。
目标用户采用复式记账法报税的小微企业团队、独立出海创业者、数字游民。
难度/周期低 · 1 个月 · 成本:极低(主要是财会知识整合与脚本开发)
收费模式付费模板/插件买断制,结合高客单价的记账咨询与初始化服务费。
竞争风险财税政策地域性极强,维护成本随法规变动而上升;客群基数较小。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2013-04-08,近 30 天仍在推送,发布过 64 个 Release
社区活跃Star 4,816 / Fork 424 / Issue 314(数据支持,可自行核实)
许可证GPL-3.0 商用需注意传染性条款
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。