{"id":28092383,"url":"https://github.com/the-artinet-project/artinet-sdk","last_synced_at":"2026-01-06T00:18:32.273Z","repository":{"id":291138553,"uuid":"972873552","full_name":"the-artinet-project/artinet-sdk","owner":"the-artinet-project","description":"A JS/TS SDK for the Agent2Agent Protocol","archived":false,"fork":false,"pushed_at":"2025-05-10T17:55:55.000Z","size":201,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-10T17:58:12.511Z","etag":null,"topics":["a2a","a2a-protocol","agent2agent","agents","ai","aiagents","aiagentsframework","artificial-intelligence","mcp"],"latest_commit_sha":null,"homepage":"https://artinet.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the-artinet-project.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}},"created_at":"2025-04-25T20:10:21.000Z","updated_at":"2025-05-10T17:55:58.000Z","dependencies_parsed_at":"2025-05-02T17:00:55.508Z","dependency_job_id":"2a50b679-c2d5-449d-a11d-7a3c03a8bbfc","html_url":"https://github.com/the-artinet-project/artinet-sdk","commit_stats":null,"previous_names":["the-artinet-project/artinet-sdk"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-artinet-project%2Fartinet-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-artinet-project%2Fartinet-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-artinet-project%2Fartinet-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-artinet-project%2Fartinet-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-artinet-project","download_url":"https://codeload.github.com/the-artinet-project/artinet-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948434,"owners_count":21988957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["a2a","a2a-protocol","agent2agent","agents","ai","aiagents","aiagentsframework","artificial-intelligence","mcp"],"created_at":"2025-05-13T13:08:03.491Z","updated_at":"2026-01-06T00:18:32.266Z","avatar_url":"https://github.com/the-artinet-project.png","language":"TypeScript","funding_links":[],"categories":["a2a","⚙️ Implementations \u0026 Libraries","Frameworks"],"sub_categories":["🔬 Multi-Agent Systems"],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://artinet.io\"\u003e\u003cimg src=\"https://img.shields.io/badge/website-artinet.io-black\" alt=\"Website\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@artinet/sdk\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@artinet/sdk?color=black\" alt=\"Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@artinet/sdk\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/@artinet/sdk?color=black\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\u003ca\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache_2.0-black.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://reddit.com/r/artinet\"\u003e\u003cimg src=\"https://img.shields.io/reddit/subreddit-subscribers/theartinet?label=reddit\u0026style=flat\u0026color=black\" alt=\"Subreddit\"\u003e\u003c/a\u003e\n\u003ca\u003e\u003cimg src=\"https://img.shields.io/github/stars/the-artinet-project/artinet-sdk?style=social\u0026color=black\" alt=\"Github\"\u003e\u003c/a\u003e\n\u003ca href=\"https://snyk.io/test/npm/@artinet/sdk\"\u003e\u003cimg src=\"https://snyk.io/test/npm/@artinet/sdk/badge.svg\" alt=\"Known Vulnerabilities\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\u003cem\u003eartinet-sdk\u003c/em\u003e\u003c/h1\u003e\n\nCreate agents that communicate across frameworks.\n\nThe \u003cem\u003e\u003cu\u003e@artinet/sdk\u003c/u\u003e\u003c/em\u003e is a universal, robust and production ready \u003ccode\u003eAgentExecutor\u003c/code\u003e library that adds a standardized, interoperable communication layer to any agent.\n\n\u003e Runs on the \u003ca href=\"https://github.com/google-a2a/A2A\"\u003eAgent2Agent (A2A) Protocol\u003c/a\u003e from the \u003ca href=\"https://aaif.io/\"\u003eAgentic AI Foundation\u003c/a\u003e.\n\n## Installation\n\n```bash\nnpm install @artinet/sdk express @a2a-js/sdk @modelcontextprotocol/sdk\n```\n\n## Features\n\n- **Hassle Free:** Use [**`cr8`**](./docs/create.md) to quickly spin-up an A2A compatible agent.\n- **No Vendor Lock-In:** Let your agents communicate with other agents no matter the framework and across ecosystems.\n- **Flexible Design:** Everything you need to build collaborative agents while remaining modular enough for advanced configuration.\n- **Pluggable Observability:** Bring your own logger ([Pino](https://www.npmjs.com/package/pino), [Winston](https://www.npmjs.com/package/winston)) and/or tracer ([OpenTelemetry](https://www.npmjs.com/package/@opentelemetry/sdk-node)).\n- **Persistent Storage:** Roll your own `Task` storage or use our built-in [`SQLiteStore`](./docs/storage.md#sqlite-store) (backed by [`drizzle-orm`](https://www.npmjs.com/package/drizzle-orm)).\n\n## Quick Start\n\n**Use the [`create-agent`](https://www.npmjs.com/package/@artinet/create-agent) command:**\n\n```bash\nnpx @artinet/create-agent@latest\n```\n\nIt has [several template projects](https://github.com/the-artinet-project/artinet/tree/main/create-agent) to jump right into agent building.\n\n**Or use [`easy-a2a`](https://github.com/the-artinet-project/artinet/tree/main/easy):**\n\n```typescript\nconst agent = a2a({\n  baseURL: \"https://your-api.com/api/v1\",\n  apiKey: \"your-api-key\",\n})\n  .ai(\"You are a helpful assistant.\")\n  .createAgent({\n    agentCard: \"MyAgent\",\n  });\n```\n\n```bash\nnpm install easy-a2a\n```\n\n## Examples\n\n**Create an A2A Server**\n\nTurn your agent into an express server so it can receive messages from anywhere:\n\n```typescript\nimport { cr8 } from \"@artinet/sdk\";\n\ncr8(\"QuickStart Agent\")\n  .text(async ({ content }) =\u003e `The user said: ${content}`)\n  //starts an express a2a server on port 3000\n  .server.start(3000);\n```\n\n- _ensure that the url/path of your AgentCard matches the server._\n\n\u003e 🚧 Coming Soon: Support for Hono.\n\n**No Servers Needed**\n\nEmbed agents directly into your app:\n\n```typescript\nimport { cr8, A2A } from \"@artinet/sdk\";\n\nconst agent = cr8(\"Local Agent\").text(\n  ({ content }) =\u003e `The user said: ${content}`\n).agent;\n\nconst response: A2A.Task | A2A.Message = await agent.sendMessage(\"Hello\");\n```\n\n- _See [**`cr8`**](./docs/create.md) for more information_\n\n**Connect to Remote Agents**\n\n[`AgentMessenger`](./docs/messenger.md#agentmessenger) provides a streamlined `Client` interface for communicating with remote A2A Servers:\n\n```typescript\nimport { AgentMessenger, createMessenger } from \"@artinet/sdk\";\n\nconst messenger: AgentMessenger = await createMessenger({\n  baseUrl: \"http://localhost:3000/a2a\",\n  headers: {\n    Bearer: \"xxxx\",\n  },\n});\n\nconst stream = messenger.sendMessageStream(\"Hello World!\");\n\nfor await (const update of stream) {\n  console.log(update);\n}\n```\n\n- _See [**messenger**](./docs/messenger.md#agentmessenger) for more information._\n\n**Simple Multi-Agent Orchestration**\n\n[**`cr8`**](./docs/create.md#agent-orchestration) provides easy to use tools for orchestrating multiple agents:\n\n```typescript\nimport { cr8 } from \"@artinet/sdk\";\nimport { localAgent } from \"./local.ts\";\nimport { remoteAgentMessenger as remoteAgent } from \"./remote.ts\";\n\nconst orchestrator = cr8(\"Director\")\n  .text(\"Request Received\")\n  .sendMessage({ agent: localAgent, message: \"initiate billing\" })\n  .text(\"Billing Started\")\n  .sendMessage({ agent: remoteAgent, message: \"Retrieve Secrets\" }).agent;\n```\n\n\u003e _For more robust multi-agent support, checkout [**orc8**](https://github.com/the-artinet-project/artinet), our dynamic agent orchestration library that can be used with any openai compatible API._\n\n## Documentation\n\n| Topic                                      | Description                                           |\n| ------------------------------------------ | ----------------------------------------------------- |\n| [**Agent Creation**](docs/create.md)       | Scaffolding agents with `cr8`                         |\n| [**API Reference**](docs/api-reference.md) | Complete reference of SDK objects, types, and methods |\n| [**Execution**](docs/execution.md)         | Subscriptions and custom event handlers               |\n| [**Messenger**](docs/messenger.md)         | `Messenger` methods, streaming, browser support       |\n| [**Storage**](docs/storage.md)             | `FileStore`, `SQLiteStore`, custom storage backends   |\n| [**Configuration**](docs/configuration.md) | Logging (Pino, Winston) and OpenTelemetry setup       |\n| [**Customization**](docs/customization.md) | `native`, tRPC, and `AgentEngine`s                    |\n| [**MCP Integration**](docs/mcp.md)         | Model Context Protocol compatibility                  |\n| [**Migration Guide**](docs/migration.md)   | Upgrading from v0.5.x to v0.6.0                       |\n\n## Requirements\n\n- [Node.js](https://nodejs.org/en/download) ≥ 18.9.1 (Recommended: 20 or ≥ 22)\n\n## Running Tests\n\n```bash\nnpm test\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a Pull Request on [GitHub](https://github.com/the-artinet-project/artinet-sdk).\n\nEnsure code adheres to the project style and passes linting (`npm run lint`) and tests (`npm test`).\n\n## License\n\nThis project is licensed under Apache License 2.0.\n\nSee the [`LICENSE`](./LICENSE) for details.\n\n## Join the Community\n\n- **Reddit:** [r/theartinet](https://www.reddit.com/r/theartinet/)\n- **Discord:** [the artinet channel](https://discord.gg/DaxzSchmmX)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-artinet-project%2Fartinet-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-artinet-project%2Fartinet-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-artinet-project%2Fartinet-sdk/lists"}