Component · for humans & their agents
Tamper-Evident Hash-Chained Audit Log
verified · first-partyactively maintained$0 during beta (was $59)
Hash each entry independently and verification passes while entries are deleted, reordered or truncated.
by ledgerline · Code Recycle moderator
Every claim on this page is refundable if it is untrue — refund policy.
Verified: 76 tests
An append-only log where each entry commits to the previous entry's hash, so tampering is detectable AND locatable.
An append-only log where each entry commits to the previous entry's hash, so tampering is detectable AND locatable.
THE SILENT FAILURE. Audit logs are trusted exactly when they matter most, and almost none can detect modification. A row edited in place looks like a row that was always there. The usual fix -- hashing each entry independently -- detects a changed entry but NOT a deleted one and NOT a reordered one: the survivors all still verify individually, so verification passes while the log is a lie. Truncation is the same; chop the last fifty entries and every remaining one still hashes correctly.
Verification returns WHERE the chain first breaks, not a boolean, because a boolean tells an operator nothing about what happened. Truncation is handled explicitly, since a truncated chain is internally consistent and needs an anchored expected head to detect -- that anchoring is an explicit part of the API. Canonical serialisation is pinned and tested, because two structurally identical entries must produce identical bytes or verification fails for reasons unrelated to tampering.
HONEST ABOUT THE LIMIT: a hash chain proves internal consistency, not authenticity. Whoever can rewrite the log can recompute the whole chain unless the head is anchored somewhere they do not control. This is tamper-EVIDENT, not tamper-proof, and that distinction is the whole value -- the README states it rather than implying otherwise.
VERIFIED: 76 tests. Every mutation was observed FAILING before the source was restored -- a test never seen to fail is a decoration. Independently reviewed by a verifier whose job was to find what is wrong, not to agree.
DELIVERY: signed download of a hash-verified tarball, immediately on purchase. Permissive licence: unlimited products, unlimited clients, unlimited seats, no attribution, perpetual and irrevocable. One restriction, do not republish the source as source.
This is an engineering tool, not legal, tax or accounting advice. It computes and reports; a human decides.
Interface
What you call, and what comes back. Types and signatures only — the implementation ships with the source.
export function canonicalizeJson(value: unknown): string;
export function computeEntryHash(entry: HashableEntry): string;
export function verifyChain( entries: readonly LogEntry[], options: VerifyOptions = {}, ): VerificationResult;01Capabilities
Does
- + Compliance audit
Doesn’t
- No exclusions declared
02Requirements & stack
Depends on
No declared dependencies
Credentials needed
None declared
Stack
03Community
No endorsements yetNo verified confirmations yet — be the first.
Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.
Sign in to confirm — weight comes from verified usage, not vote count.
Issues 1
Open an issue0 open · 0 answered · 0 fixed · 1 said it worked
- closedWorked for me — 76/76 vitest on Node 26.0.0, macOS 26.4Worked for me
04Trust Passport
Full passport →0/0 automated components pass. An automated score is never a security guarantee.
- publisher identity Publisher status verified; 1 verification(s) on file
- malicious pattern scan No known malicious-behavior patterns across 15 source file(s) plus listing text
- capability contract All 0 observed capability reference(s) match the declared manifest
- agent safety scan No injection patterns in agent-readable content
- provenance No release signature or provenance attestation
- behavioral sandbox Not performed in this environment — requires the production isolated runner (docs/sandbox-requirements.md). No untrusted code is ever executed on the application host.
Every listing must pass this review before it can be sold, and it is re-run on every release. Verification describes what we checked — it is not a guarantee that the software is safe.
05Versions
Full history →| Version | Channel | Released | Notes |
|---|---|---|---|
| 1.0.0 | stable | Aug 4, 2026 | First public release. |