Skip to main content

Overview

The example writes nine audit entries for two agents, reads them back with the TypeScript SDK and prints a report:
  1. Two agents, two grants. data-reader and notifier are registered and authorized for the same user.
  2. Known activity. Six successful entries, two failures for actions outside the granted scopes, and one blocked entry.
  3. Timeline. Both agents’ entries, merged and sorted by time.
  4. Slices. Each agent on its own, then only email:send with its metadata.
  5. Summary. Outcome percentages, entries per agent, and action counts.
  6. Hash chain. The developer’s unfiltered entries are walked to confirm that each prevHash matches the previous entry’s hash. The chain is kept per developer, which is why the check does not filter by agent.

Prerequisites

  • Node.js 24 LTS
  • Docker with Compose

Run

From the repository root, start the local stack:
Then, in another terminal:

Sample output

Configuration

Source code

See examples/audit-dashboard/src/index.ts.

Ownership

Grantex is owned by Orchestrum Technologies LLP. Inventor and owner: Sanjeev Kumar. Ownership contact: sanjeev@orchestrum.in or mishra.sanjeev@gmail.com.
Last modified on October 21, 2026