Go to file
2026-07-13 13:35:27 +08:00
src first commit 2026-07-13 13:34:27 +08:00
tests first commit 2026-07-13 13:34:27 +08:00
.gitignore add .gitignore and App.tsx 2026-07-13 13:35:27 +08:00
app.json first commit 2026-07-13 13:34:27 +08:00
App.tsx add .gitignore and App.tsx 2026-07-13 13:35:27 +08:00
package-lock.json first commit 2026-07-13 13:34:27 +08:00
package.json first commit 2026-07-13 13:34:27 +08:00
plan-ocr.md first commit 2026-07-13 13:34:27 +08:00
plan.md first commit 2026-07-13 13:34:27 +08:00
README.md first commit 2026-07-13 13:34:27 +08:00
tsconfig.json first commit 2026-07-13 13:34:27 +08:00

Bean Mobile

面向 Beancount 用户的离线移动端原型:桌面账本只读,移动端仅写入 mobile.beanCSV 账单先生成复式分录草稿,再由用户确认。

启动

npm install
npm run start

使用 Expo CNG 开发构建运行:npm run androidnpm run ios。应用配置启用了 expo-sqlite 的 SQLCipher 构建选项,实际密钥管理应接入 SecureStore/Keychain 后再发布。

账本约定

在主账本添加一次:

include "mobile.bean"

应用不改写主账本或其他桌面维护文件;确认的交易只追加到 mobile.bean。导出的账本包由用户再同步到 Git、WebDAV 或 iCloud。

当前边界

已实现账务校验、基础 .bean 解析、CSV 账单规范化、去重、规则分类、转账候选和 mobile.bean 序列化。Tree-sitter 原生模块、真实文件选择/ZIP 导出、正式支付宝/微信/各银行字段映射、SecureStore 密钥和多设备冲突处理仍需在真机集成阶段接入。