paybondpaybond
Sign in

TypeScript example projects

Reference TypeScript examples for the core Kit flow and a runtime-neutral agent integration.

Paybond ships example TypeScript projects that demonstrate the public SDK in realistic end-to-end flows. Use them as reference implementations and starting points for your own app architecture.

Current examples:

  • examples/paybond-kit-typescript/ — generic Kit flow
  • examples/paybond-kit-runtime-agent-typescript/ — runtime-neutral tool wrapper pattern

Both examples show the same product lifecycle: open a session, create or fund an intent, verify a capability, run guarded work, and submit evidence.

What these examples are for

  • Understanding the public SDK shape in a complete application flow.
  • Seeing how capability verification fits around side-effecting tools.
  • Reusing proven patterns for evidence submission and session cleanup.

Running the examples

If you want to run the examples from a source checkout, follow the README instructions in each example directory and install the local SDK build first.

For most teams, the better path is to follow the published TypeScript quickstart and then consult these examples when you want a fuller application structure.

What they demonstrate

  • Opening an authenticated Kit session (Paybond.open) bound to a tenant realm returned by the Gateway.
  • Creating intents and reading the funded intent capability token.
  • Verifying capabilities before taking intent-scoped actions.
  • Submitting signed evidence payloads and artifacts for Harbor predicate evaluation.