Skip to content
animoPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

pex-ts

A lean TypeScript implementation of DIF Presentation Exchange v1 and v2, built along the lines of dcql-ts: pure functions, structured results, and no credential parsing.

Package
presentation-exchange/ presentation-exchange — the library. Usage docs.
parity/ Temporary harness diffing against the deprecated @animo-id/pex. Findings. Delete after migration.

It replaces @animo-id/pex, which decodes credentials itself and therefore depends on SD-JWT, mdoc, W3C credential, JSON Schema and JSONPath libraries. Here you pass already-decoded claims, which leaves one runtime dependency (zod).

PLAN.md records the design and — in §15 — every deviation made while implementing it, with the reasoning.

Development

pnpm install
pnpm test          # vitest, all packages
pnpm build         # tsdown, ESM + types
pnpm types:check   # tsc --noEmit, all packages
pnpm style:check   # biome: TypeScript, JSON, Markdown, YAML
pnpm style:fix

Add a changeset (pnpm changeset) to every change to presentation-exchange. Merging to main publishes an alpha snapshot and opens a release pull request. Merging the release pull request publishes the new version to npm.

The examples in presentation-exchange/README.md are executed by presentation-exchange/src/readme.test.ts, so the documentation cannot drift from the API. Update both together.

License

Apache-2.0

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages