{"id":50454074,"url":"https://github.com/mizcausevic-dev/aeo-sdk-typescript","last_synced_at":"2026-06-01T01:05:37.403Z","repository":{"id":357457917,"uuid":"1236264678","full_name":"mizcausevic-dev/aeo-sdk-typescript","owner":"mizcausevic-dev","description":"TypeScript SDK for the AEO Protocol v0.1. Parse, build, validate, and fetch AEO declaration documents. Zod schemas with inferred TypeScript types. ESM-only, Node 18+, zero non-zod runtime deps.","archived":false,"fork":false,"pushed_at":"2026-05-23T21:40:52.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T23:22:00.862Z","etag":null,"topics":["aeo","aeo-protocol","ai-governance","answer-engine-optimization","kinetic-gain-protocol-suite","protocol-implementation","typescript","typescript-sdk","well-known","zod"],"latest_commit_sha":null,"homepage":"https://github.com/mizcausevic-dev/aeo-sdk-typescript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T05:08:13.000Z","updated_at":"2026-05-23T21:40:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/aeo-sdk-typescript","commit_stats":null,"previous_names":["mizcausevic-dev/aeo-sdk-typescript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/aeo-sdk-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/aeo-sdk-typescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Faeo-sdk-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aeo","aeo-protocol","ai-governance","answer-engine-optimization","kinetic-gain-protocol-suite","protocol-implementation","typescript","typescript-sdk","well-known","zod"],"created_at":"2026-06-01T01:05:37.317Z","updated_at":"2026-06-01T01:05:37.391Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aeo-sdk-typescript\n\n[![npm](https://img.shields.io/npm/v/aeo-protocol.svg)](https://www.npmjs.com/package/aeo-protocol)\n[![npm downloads](https://img.shields.io/npm/dm/aeo-protocol.svg)](https://www.npmjs.com/package/aeo-protocol)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nTypeScript SDK for the [AEO Protocol v0.1](https://github.com/mizcausevic-dev/aeo-protocol-spec) — parse, build, validate, and fetch AEO declaration documents. Zero-runtime-cost types via [zod](https://github.com/colinhacks/zod).\n\n## Install\n\n```bash\nnpm install aeo-protocol\n```\n\n## Quickstart\n\n```typescript\nimport { fetchWellKnown, parseDocument, claimIds, findClaim } from \"aeo-protocol\";\n\n// Fetch and parse from a live well-known URL\nconst doc = await fetchWellKnown(\"https://mizcausevic-dev.github.io\");\nconsole.log(doc.entity.name);                          // \"Miz Causevic\"\nconsole.log(claimIds(doc));                            // ['current-role', ...]\nconsole.log(findClaim(doc, \"years-experience\")?.value); // 30\n\n// Parse from a string\nconst docFromString = parseDocument('{\"aeo_version\":\"0.1\",...}');\n\n// Validate safely\nimport { safeParseDocument } from \"aeo-protocol\";\nconst result = safeParseDocument(maybeMalformed);\nif (!result.success) console.error(result.error);\n```\n\n## What it does\n\n- **Parse** — `parseDocument(raw)` and `safeParseDocument(value)` for strict and recoverable parsing\n- **Build** — full zod schemas (`documentSchema`, `entitySchema`, etc.) and inferred TypeScript types (`AeoDocument`, `Entity`, `Claim`, ...)\n- **Serialize** — `serializeDocument(doc, indent)` returns canonical JSON\n- **Fetch** — `fetchWellKnown(origin, { timeoutMs })` discovers and parses against `/.well-known/aeo.json` with `Accept: application/aeo+json, application/json`\n- **Query** — `claimIds(doc)` and `findClaim(doc, id)` for convenience\n\n## Conformance\n\nSupports the AEO Protocol at **conformance Level 1 (Declare)**. Signature verification (L2) and audit-endpoint posting (L3) deferred to v0.2.\n\n## TypeScript types\n\nEvery model has both a zod schema and an inferred type. Import either:\n\n```typescript\nimport { documentSchema, type AeoDocument } from \"aeo-protocol\";\n\nconst validated: AeoDocument = documentSchema.parse(someUnknown);\n```\n\n## Dependencies\n\n- [zod](https://github.com/colinhacks/zod) `^3.23` — runtime validation + type inference\n- Native `fetch` (Node 18+, all modern browsers and runtimes)\n\n## Development\n\n```bash\nnpm install\nnpm run typecheck\nnpm test\nnpm run build\n```\n\n## Specification\n\nFull spec at [github.com/mizcausevic-dev/aeo-protocol-spec](https://github.com/mizcausevic-dev/aeo-protocol-spec).\n\n## License\n\nMIT-licensed. Free for commercial and non-commercial use with attribution. The AEO Protocol specification this SDK implements is also MIT (see [aeo-protocol-spec](https://github.com/mizcausevic-dev/aeo-protocol-spec)).\n\n## Kinetic Gain Protocol Suite\n\n| Spec | Implementation |\n|---|---|\n| [AEO Protocol](https://github.com/mizcausevic-dev/aeo-protocol-spec) | [aeo-sdk-python](https://github.com/mizcausevic-dev/aeo-sdk-python) · **aeo-sdk-typescript** (this) · [aeo-sdk-rust](https://github.com/mizcausevic-dev/aeo-sdk-rust) · [aeo-sdk-go](https://github.com/mizcausevic-dev/aeo-sdk-go) · [aeo-cli](https://github.com/mizcausevic-dev/aeo-cli) · [aeo-crawler](https://github.com/mizcausevic-dev/aeo-crawler) |\n| [Prompt Provenance](https://github.com/mizcausevic-dev/prompt-provenance-spec) | — |\n| [Agent Cards](https://github.com/mizcausevic-dev/agent-cards-spec) | — |\n| [AI Evidence Format](https://github.com/mizcausevic-dev/ai-evidence-format-spec) | — |\n| [MCP Tool Cards](https://github.com/mizcausevic-dev/mcp-tool-card-spec) | — |\n\n---\n\n**Connect:** [LinkedIn](https://www.linkedin.com/in/mirzacausevic/) · [Kinetic Gain](https://kineticgain.com) · [Medium](https://medium.com/@mizcausevic/) · [Skills](https://mizcausevic.com/skills/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Faeo-sdk-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Faeo-sdk-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Faeo-sdk-typescript/lists"}