Entry costs more than the purchase记账比付款更麻烦
Category pickers, accounts, dates and forms turn a two-second purchase into a two-minute task.分类、账户、日期和表单,把两秒的付款变成两分钟的录入。
Local-first bookkeeping for iPhone为 iPhone 而做的本地优先记账
HENG turns a photographed receipt or a spoken sentence into a confirmed entry. OCR, speech and classification run on the iPhone — no account, no server, no analytics. It is live on the App Store.衡记把一张小票、一句话,变成一笔可确认的账。文字识别、语音转写与分类全部在 iPhone 本机完成:不注册、不联网、不上传。现已在 App Store 上架。


A bookkeeping app lives or dies in the first ten seconds. If recording a coffee costs more effort than buying it, the ledger fills with gaps — and a ledger with gaps cannot be trusted.记账 App 的成败在最初十秒。如果记一杯咖啡比买它更费劲,账本就会开始漏记;而漏记的账本,不值得信任。
Category pickers, accounts, dates and forms turn a two-second purchase into a two-minute task.分类、账户、日期和表单,把两秒的付款变成两分钟的录入。
Thermal paper loses its date first. The amount survives; the context does not.热敏纸最先消失的是日期。金额还在,上下文没了。
Most finance apps begin with an account, a cloud sync and an analytics SDK.多数记账 App 从注册、云同步和统计 SDK 开始。
HENG started from a constraint rather than a feature list: the most complete record of a person’s life should work without an account, a server or an internet connection. Every later decision — OCR, speech, insight, sync — had to fit inside it.衡记的起点不是功能清单,而是一条约束:一个人最完整的生活记录,应该在不注册、不联网、没有服务器的前提下成立。之后的每个决定——识别、语音、建议、同步——都必须装进这条约束里。
Intelligence belongs on the device that already holds the data.智能,应该待在本来就持有数据的那台设备上。
Local-first is usually a privacy claim. Here it is an engineering boundary: remove the server, and whole classes of failure disappear with it — account recovery, the data-breach surface, per-user cost, and a separate offline mode.「本地优先」通常只是隐私口号。在这里它是一条工程边界:拿掉服务器,也拿掉了一整类失败——账号找回、被拖库的入口、按用户计价的服务成本,以及需要单独维护的离线模式。
Camera · Voice · Manual拍照 · 语音 · 手动
iOS Vision OCR · on-device speech · rule parseriOS Vision 识别 · 设备端语音 · 规则解析
Hive database, inside the app sandboxHive 数据库,位于 App 沙盒内
CloudKit private database, switched on by the userCloudKit 私有数据库,由用户手动开启
Hard receipts, cross-platform sync and remote support. Each would have put a copy of the ledger outside the user’s control.难识别的小票、跨平台同步、远程支持。代价是:用户控制之外,多出一份账本副本。
Offline by default, instant insight, a data-breach surface of zero, and a marginal cost per user of zero.默认离线、即时建议、零数据泄露面,以及每个用户的边际成本为零。
Confirm-before-save for uncertain OCR, on-device speech through Swift, and CloudKit only when the user turns sync on.识别结果先确认再保存,语音交给 Swift 在设备端处理,同步只在用户打开时交给 CloudKit。
The OCR and speech channels are Swift, bridged into Flutter through a method channel. Ledger, statistics and insight rules are Dart. CloudKit is used as a private database, never as an account system.OCR 与语音通道用 Swift 实现,通过 method channel 接入 Flutter;账本、统计与建议规则用 Dart。CloudKit 只作为私有数据库使用,不承担账号体系。
Photo, voice and manual entry all produce the same editable draft. The app never saves a guess: it fills the fields, then asks.拍照、语音、手动录入,最终都落到同一张可编辑草稿。App 不替用户下结论:先把字段填好,再请你确认。

OCR extracts text; a deterministic parser proposes amount, merchant, date and category. All four stay editable, and Save is the only commit.OCR 负责取字,确定性解析器提出金额、商户、日期与分类。四项都可改,只有「保存」才是提交。
The original is never written to the photo library or the app sandbox. Only the extracted text and the fields you confirm are kept.原图不会写入相册,也不会留在 App 沙盒里;保留下来的只有识别文本与确认后的字段。
Speech recognition requires the on-device model. When that model is unavailable, the app says so instead of uploading audio.语音识别强制使用设备端模型。模型不可用时,直接提示改用其他入口,而不是上传音频。
The first real receipt found the edge of the parser. The total was ¥652. The date was 2026.07.30. The draft showed ¥2026.07 — a date wearing the shape of money.第一张真实小票就撞到了解析器的边界。合计 652 元,日期是 2026.07.30,草稿却填成 2026.07——一个长得像金额的日期。
The OCR text held 合计 652.00, 小计 652.00 and 2026.07.30.OCR 文本里同时有 合计 652.00、小计 652.00 和 2026.07.30。
¥2026.07
The header word 金额 matched a total keyword, and dates, times and phone numbers were still in the number pool.表头「金额」被当成合计关键词;日期、时间与电话号码仍留在数字候选池里。
Strip date, time and phone patterns; drop generic header words; scan ten lines after 小计 / 合计; reject 1990–2100 as a year.先抹掉日期、时间与电话;移除泛化的表头词;小计 / 合计同行无金额时向下最多十行查找;兜底排除 1990–2100 的年份。
¥652.00 · merchant and category unchanged· 商户与分类保持不变
Four regression groups now run against the actual OCR text: the user’s receipt, a split-column layout, a date-only receipt, and a text export from the device. The fix is not a promise of accuracy; it is a suite that fails if this shape returns.现在有四组回归测试直接跑真实 OCR 文本:用户原小票、列被拆散、只有日期、设备导出文本。修复不是「更准了」的承诺,而是这类错误再次出现时一定会失败的测试。
The identity starts from 衡 — a balance beam — written as an oracle glyph and set as a seal. The interface keeps the same restraint: one accent, one reading column, and no decoration that does not carry meaning.品牌从「衡」字出发——它本义是天平。取甲骨文字形,做成印章。界面沿用同样的克制:一个强调色、一条阅读纵轴,不为装饰而装饰。
A paper ground, an ink, a forest, a mint and a copper. Colour never carries meaning alone; every state is also labelled.纸、墨、森林、薄荷与铜。颜色从不单独承担含义,每种状态都有文字标签。
#F4F3EE#0B1F1A#0B5B47#CDEEE1#B4845AInteger type steps, 1.55 body leading for Chinese, explicit PingFang fallback. Large text is a real step at 1.15× — not a fractional scale that blurs CJK strokes.字号用整数阶梯;中文正文行高 1.55;显式指定 PingFang 回退。大字号是真正的 1.15× 阶梯,而不是会把中文字形拉糊的小数缩放。
A single depth reveal at launch; charts grow once; nothing loops. Reduce Motion collapses all of it to a 400 ms fade.启动时一次景深显影;图表只生长一次;没有循环动画。开启「减弱动态效果」后,全部收束为 400 毫秒淡入。
The audit covers contrast, Dynamic Type, VoiceOver semantics and tap targets across every palette, in light and dark.审计覆盖对比度、动态字号、VoiceOver 语义与点击区域,横跨全部色板的明暗两套。
HENG 1.1 is live in the App Store: free, no in-app purchases, no ads, rated 4+, with the privacy label Data Not Collected. It speaks Simplified Chinese, Traditional Chinese, English and Russian.衡记 1.1 已在 App Store 上架:免费、无内购、无广告、4+ 分级,隐私标签为「未收集数据」。支持简体中文、繁体中文、英文与俄文。
Receipt and voice capture, manual entry, budgets, reports, CSV and JSON export.拍照与语音记账、手动录入、预算、报表、CSV 与 JSON 导出。
iCloud sync through CloudKit, WeChat and Alipay CSV import, 84 currencies, four languages, six palettes, parent mode and an accessibility pass.iCloud 同步(CloudKit)、微信与支付宝账单导入、84 种货币、四种语言、六套主题色、父母模式与无障碍专项。
Groups, participants, custom shares and settlement, with CloudKit sharing in development. In TestFlight; not yet submitted to the store.群组、参与者、自定义分摊与结算;CloudKit 共享仍在开发。目前在内测,尚未提交商店。
Entries are grouped by day and searchable by note, merchant, category or amount.按日分组,可按备注、商户、分类或金额搜索。
Six months of bars and a category share that names where the change happened, not only how much was spent.六个月柱状图与分类占比,说明变化发生在哪里,而不只是花了多少。
Monthly and category budgets show what is left before the month is over, not after.月度与分类预算在月底之前就告诉你还剩多少,而不是事后。
No account and no analytics; the App Store privacy label reads Data Not Collected.不注册、不统计;App Store 隐私标签为「未收集数据」。




The shipped build is iPhone-only by choice. Android, bank connections and widgets are not in 1.1, and 1.2 remains a TestFlight build until it passes the same checks.正式版按计划只做 iPhone。Android、银行直连与小组件不在 1.1 内;1.2 在通过同样的检查之前,只停留在内测。
HENG is the clearest example of how I work: define the constraint, design the interaction around it, then carry the same decision through identity, Flutter, Swift, CloudKit, QA and App Store operations. Nothing was handed to a different discipline.衡记最能说明我的工作方式:先定约束,围绕约束设计交互,再把同一个决定贯穿品牌、Flutter、Swift、CloudKit、测试与上架。没有任何一层被交给另一套标准。