一个人的个人纵向记录,作为不可改变的事实保存。健康读数、锻炼、药物、实验室结果、旅行、文件和笔记都集中在一条时间线上,每个时间线都......
概览
一个人生活的个人纵向记录,作为不可篡改的事实被保存。健康读数、锻炼、药物、实验室结果、旅行、文件和笔记都集中在一条时间线上,每个都标明了它们的来源和真实时间。当前状态总是从事实推导出来,从不存储,也从不被覆盖。 这是一个个人项目,发布是为了让他人阅读并借鉴。示例中的来源、单位和时区均为作者本人。 监察官由守护灵服务,一个月多的虚构事实。每个标记在其事实时间是一个面向;绿色条纹是检查点。 - 旅行、疾病或训练块是可选的视角,绝非必需。- 修正是旧版本旁边的新版本。---截至-显示Anam早期所知。- 事实时间是某事是真实的。Anam时间是Anam学会它的时间。
概述(AI 翻译)
anam:爱尔兰语意为“灵魂”。
一个人的个人纵向记录,作为不可改变的事实被保存。健康读数, 锻炼、药物、实验室结果、旅行、文档和笔记都集中在一条时间线上,每个时间线的 它来自于真实的时间和时机。当前的状态源自事实,所有的缓存 通过重播重建,且不会被覆盖。
这是一个个人项目,发布以便他人阅读并借鉴。资料来源、单元 示例中的时区为作者。
监察官,由守护灵服务,一个多月的虚构事实。每个标记都是其一个面向 事实时间;绿色条带是检查站。
创意
- 全人时间线是默认读取。 旅行、疾病或训练块是 可选镜头覆盖在上面,从来不是必须的。
- 事实积累。 修正是旧版本旁边的新版本。
--as-of显示了 Anam 的意思 早在任何时刻都知道。 - **两个钟。**事实时间是指某件事是真实的。阿南时间是阿南学会它的时刻。
- 只有一条入口。 每个事实都通过一个入口门进入,并与 定义上,错误的行列永远不会进入记录。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Anam
anam: Irish for soul.
A longitudinal record of one subject, kept as immutable facts. The subject is what the record is about. In the author’s deployment it is the author, and health readings, workouts, medicines, lab results, trips, documents and notes land on one timeline, each with where it came from and when it was true. The current state is derived from the facts, every cache of it is rebuilt by replay, and nothing is ever overwritten.
This is a personal project, published so others can read it and borrow from it. The sources, units and time zone in the examples are the author’s.
The inspector, served by the daemon, over a month of made-up facts. Each mark is a facet at its fact time; the green strip is the checkpoints.
Ideas
- The whole-record timeline is the default read. A trip, an illness or a training block is an optional lens over it, never a requirement.
- Facts accrete. A correction is a new version beside the old one.
--as-ofshows what Anam knew at any earlier moment. - Two clocks. Fact time is when something was true. Anam time is when Anam learned it.
- One way in. Every fact arrives through an admission gate that checks it against a Definition, so a bad row never enters the record.
- Proof of what was shown. A projection prunes the timeline for a reader, and a receipt proves exactly what it served.
- Anam reads no source itself. Importers do that, and the facts can be resent from them. What Anam authors, and what a person says straight into it, come back from the backup.
Four words the commands print
The ledger is the record: an append-only file of facets. W is the watermark, the position of the newest event in it, and every answer says the W it stood on. The fold is the current value worked out from the ledger, and the canonical is that value’s hash: it moves when a fact lands and is the same after a rebuild from source. Checkpoints cache the fold by month, so a read need not replay everything.
Quick start
You need Go (see go.mod for the version). Nothing here needs another machine or a token;
everything runs on loopback against two SQLite files.
make build
# subject_id has no default on purpose: it is pinned into the ledger at init, so a
# defaulted one would name a subject nobody chose for the life of the file.
export ANAM_SUBJECT_ID=me
# The ledger and the operational store are two SQLite files. Both default to
# ~/.local/share/anam/ (ledger.db and tracking.db); override with
# ANAM_LEDGER_PATH and ANAM_DB_PATH.
# The binary carries no Definitions: point it at a catalog. The smallest that boots is
# the minimal test fixture, two record types, one measure and one projection.
export ANAM_DEFINITIONS_DIR=$PWD/internal/catalog/fixture/testdata/minimal/definitions
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add mattjoyce/anam