Examples
Explore the toolkit through payments, private collaboration, anonymous speech, and agent delegation. Each project has a written design; working examples include commands to run them locally.
Working projects run and have tests. Being built projects have a design and an implementation in progress. Design only projects are proposals ready to build.
git clone https://github.com/yourbuddyconner/toip-tools.git
cd toip-tools
npm install
Settle Working
Conditional payments with shared control of escrow. A customer pays through a link, and stablecoins wait in a Solana escrow until two of the payer, payee, and arbiter sign to move them. Signed Trust Tasks coordinate each step. Before signing, each party's device checks the payment's Rego policy.
What it shows
- A Trust Task vocabulary for a real protocol: invoices, terms, attestations, disputes, rulings, receipts.
- Identity off-chain, fresh keys on-chain, bound together by credentials only the parties see.
- Passkey-sealed keys in the browser, and operators who sign in with their own key instead of a password.
Built on @toip-tools/trust-core, @toip-tools/relay and @toip-tools/web-vault. Message reference: settle/… Trust Tasks.
Run it
npm run settle
npm run demo --workspace projects/settle
npm run e2e --workspace projects/settle



Read Settle's README and design, or browse its source.
Tipline Working
A drop box that lets sources prove membership without revealing their identity. A source shows a journalist that they belong to an organization, shares documents, and continues the conversation using a fresh DID for the tip. A code written on paper lets them return without keeping the conversation on their device.
What it shows
- Zero-knowledge group membership in the browser.
- Counting distinct sources by nullifier without knowing any of them.
Built on @toip-tools/anon-membership, @toip-tools/trust-core, @toip-tools/relay and @toip-tools/web-vault.
Run it
npm run tipline
npm run demo --workspace projects/tipline
npm run e2e --workspace projects/tipline
Read Tipline's README and design, or browse its source.
Agora Working
Anonymous forums with verified membership. A forum can require a nursing license to post, or district residency to vote, without asking members to reveal their identity. Each membership has one pseudonym per forum; the membership proofs keep those pseudonyms from being linked across forums.
What it shows
- Credential-gated anonymity with attribute predicates.
- One vote per person with secret ballots.
- A signed, append-only feed the host can't quietly rewrite.
Built on @toip-tools/anon-membership, @toip-tools/eventlog, @toip-tools/trust-core, @toip-tools/relay and @toip-tools/web-vault.
Run it
npm run agora
npm run demo --workspace projects/agora
npm run e2e --workspace projects/agora
Read Agora's README and design, or browse its source.
Agents Working
AI agents with identities, spending limits, and accountable actions. A person or company gives an agent a revocable mandate. As it hires people and other agents through Settle, a guard checks every payment and message against that mandate chain. A signed audit trail lets the principal review what happened.
What it shows
- Delegation that only narrows, checked by both the agent's guard and its counterparties.
- Escalation to a human for one exact action.
- Audit trails an agent can't quietly rewrite.
Built on @toip-tools/mandates, @toip-tools/eventlog, @toip-tools/trust-core and @toip-tools/relay.
Run it
npm run agents
npm run demo --workspace projects/agents
npm run demo --workspace projects/agents -- --live
Read Agents's README and design, or browse its source.
Trail Working
Verifiable audit trails for agents, devices, and services. A local network of witnesses and watchers makes log tampering visible in a web explorer. The demo walks through forged edits, conflicting histories, dishonest witnesses, and recovery from a stolen key.
What it shows
- KERI key event logs with pre-rotation and witnesses, verified by KERIpy.
- Duplicity detection by watchers.
Built on @toip-tools/eventlog and @toip-tools/trust-core.
Run it
npm run trail
npm run demo --workspace projects/trail
npm run e2e --workspace projects/trail
Read Trail's README and design, or browse its source.
Capture Working
Verifiable origins for photos and sensor readings. Devices sign captures with their own keys, and edits extend a signed history. A browser verifier checks the device, the capture's time interval, and which image tiles remain unchanged after redaction.
What it shows
- Non-exportable WebCrypto device keys, protected by passkeys or passphrases.
- Owner-to-device mandates.
- Key histories that keep old captures verifiable after a rotation.
Built on @toip-tools/cose, @toip-tools/eventlog, @toip-tools/mandates, @toip-tools/web-vault and @toip-tools/mesh-transport.
Run it
npm run capture
npm run sensor --workspace projects/capture
npm run e2e --workspace projects/capture
Read Capture's README and design, or browse its source.
Mesh Working
Trust Tasks beyond an internet connection. Three simulator demos verify a door pass offline, forward a Settle attestation through a radio gateway, and deliver a sealed bundle by hand. A visualizer shows the frames, retries, and airtime. Real-radio bring-up and Bluetooth LE remain future work.
What it shows
- Compact Trust Tasks with every proof intact.
- Random-looking address tags instead of DIDs on the air.
- Gateways that hand exact TSP bytes to the relay.
Built on @toip-tools/mesh-transport, @toip-tools/cose and @toip-tools/trust-core.
Run it
npm run mesh
npm run demo --workspace projects/mesh
npm run mesh --workspace projects/mesh -- doctor
Read Mesh's README and design, or browse its source.
Commons Design only
Everyday tools for an apartment building and its households. The design brings guest passes, shared expenses, maintenance requests, votes, and noticeboards under one identity per person. The building and its households form nested communities with their own roles.
What it shows
- Nested communities and roles.
- Many small apps sharing one identity and one trust core.
Built on @toip-tools/trust-core and @toip-tools/relay.
Build status
The design is ready for an implementation. Read it below, or help build it.
Read Commons's README and design, or browse its source.
Community Rides Design only
A proposal for ride sharing within a local community. The community vouches for its members, and riders and drivers verify those claims directly. Built around the OpenVTC libraries and applicable registry specifications, the design traces what each party learns at every step.
What it shows
- Registry Trust Tasks alongside your own.
- What each party learns, step by step.
Designed using the OpenVTC TypeScript libraries directly.
Build status
The design is ready for an implementation. Read it below, or help build it.
Read Community Rides's README and design, or browse its source.