oedtp-verify
v0.1.0
Published
Zero-dependency validator, CLI and reference registry for the Open Edge Discovery and Trust Protocol (OEDTP) v0.1. Checks any domain, with no account or key.
Maintainers
Readme
oedtp-verify
Validator, CLI and reference registry for the Open Edge Discovery and Trust Protocol (OEDTP) v0.1. No dependencies, no account, no key: it talks only to the domain you point it at.
npx oedtp-verify example.orgIt fetches https://example.org/.well-known/open-edge.json and checks it against the v0.1 schemas. It then checks every
discovery document the file declares: API catalog (RFC 9727), agent card, OpenAPI 3.1 or 3.2, MCP (Streamable HTTP)
and llms.txt. Finally it prints a JSON report:
{
"protocol_version": "0.1.0",
"suite_version": "0.1.0",
"target": "https://example.org",
"result": "pass",
"summary": { "pass": 17, "fail": 0, "warn": 0, "skip": 2 },
"checks": [{ "id": "I-1", "requirement": "...", "result": "pass", "detail": "HTTP 200" }],
"endorsement": false,
"security_certification": false,
"notice": "OEDTP conformance is a check against the specification. It is not an endorsement, a ranking, a security certification or an audit."
}- Each check
idis a requirement identifier in the specification (I-identity,C-capabilities,D-discovery).failis a broken MUST andwarna missed SHOULD. - For the same target state, two runs print the same bytes.
--timestampaddsgenerated_at;--compactprints one line. - Exit code: 0 pass, 1 fail, 2 usage or network error.
As a library
import { validateOedtpTarget, createRegistry, memoryStore } from 'oedtp-verify'
const report = await validateOedtpTarget('example.org') // optional: { fetch, timeoutMs, timestamp }
// A registry of your own: plug in any store with get(domain), put(domain, record) and list().
const registry = createRegistry({ store: memoryStore() })
await registry.register({ domain: 'example.org' }) // registered: true, then validated: true or false
await registry.search({ capability: 'org.example.*', state: 'validated' })Registry records keep registered and validated as separate fields and always carry endorsement: false. The
validator runs in Node 18+, browsers and edge runtimes, using standard fetch only.
Specification
https://open-edge-network.pages.dev/spec/oedtp/v0.1/: SPEC.md, WALKTHROUGH.md, the identity and capability
schemas (JSON Schema Draft 2020-12, also in schemas/ here) and the registry interface (OpenAPI 3.2.1).
Tests: npm test (set OEDTP_SKIP_LIVE=1 to skip the checks against the live reference implementation).
License: MIT.
