{"id":48924223,"url":"https://github.com/primitivedotdev/sdks","last_synced_at":"2026-06-14T11:00:40.390Z","repository":{"id":350767762,"uuid":"1180243961","full_name":"primitivedotdev/sdks","owner":"primitivedotdev","description":"The CLI \u0026 SDKs for primitive","archived":false,"fork":false,"pushed_at":"2026-06-08T23:19:56.000Z","size":3448,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T01:24:46.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.primitive.dev/","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/primitivedotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-12T21:08:50.000Z","updated_at":"2026-06-08T23:17:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/primitivedotdev/sdks","commit_stats":null,"previous_names":["primitivedotdev/sdks"],"tags_count":154,"template":false,"template_full_name":null,"purl":"pkg:github/primitivedotdev/sdks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivedotdev%2Fsdks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivedotdev%2Fsdks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivedotdev%2Fsdks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivedotdev%2Fsdks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primitivedotdev","download_url":"https://codeload.github.com/primitivedotdev/sdks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivedotdev%2Fsdks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34318525,"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-06-14T02:00:07.365Z","response_time":62,"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":[],"created_at":"2026-04-17T06:05:50.708Z","updated_at":"2026-06-14T11:00:40.362Z","avatar_url":"https://github.com/primitivedotdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Primitive SDKs\n\n[![SDK Checks](https://github.com/primitivedotdev/sdks/actions/workflows/sdk-checks.yml/badge.svg?branch=main)](https://github.com/primitivedotdev/sdks/actions/workflows/sdk-checks.yml)\n\nMonorepo for the Primitive SDKs.\n\nPrimitive is an inbound and outbound email platform. The SDKs are centered on a\nsmall default workflow:\n\n1. receive an inbound email\n2. inspect a normalized email object\n3. send, reply, or forward synchronously\n\n## SDKs\n\n| SDK | Install target | README |\n| --- | --- | --- |\n| Node.js | `npm install @primitivedotdev/sdk` | `sdk-node/README.md` |\n| Python | `pip install primitivedotdev` | `sdk-python/README.md` |\n| Go | `go get github.com/primitivedotdev/sdks/sdk-go@latest` | `sdk-go/README.md` |\n\n## Default API shape\n\nAcross the SDKs, the default story is:\n\n- receive inbound mail with `receive(...)`\n- create an outbound client with `client(...)`\n- send new mail with `send(...)`\n- continue a thread with `reply(...)`\n- forward a message with `forward(...)`\n\nThe Node.js end-state looks like this:\n\n```ts\nimport primitive from \"@primitivedotdev/sdk\";\n\nconst client = primitive.client({\n  apiKey: process.env.PRIMITIVE_API_KEY!,\n});\n\nexport async function POST(req: Request) {\n  const email = await primitive.receive(req, {\n    secret: process.env.PRIMITIVE_WEBHOOK_SECRET!,\n  });\n\n  await client.reply(email, \"Thank you for your email.\");\n\n  return Response.json({ ok: true });\n}\n```\n\n## Advanced surfaces\n\nThe low-level and generated APIs still exist for advanced use cases:\n\n- webhook verification/parsing helpers\n- generated HTTP API packages\n- OpenAPI exports\n- contract tooling\n- raw MIME parsing helpers\n- CLI\n\nThe SDK refresh keeps those escape hatches available, but the primary docs story\nfocuses on the inbound/outbound automation flow above.\n\n## Repository layout\n\n```text\nsdks/\n  .github/workflows/\n  openapi/\n  json-schema/\n  sdk-go/\n  sdk-node/\n  sdk-python/\n  test-fixtures/\n```\n\n## Development\n\nUse the root `Makefile` as the main task interface:\n\n```bash\nmake node-generate python-generate go-generate\nmake check\nmake build\nmake shared-check\n```\n\nThe `Makefile` wraps each SDK's native commands. You can still run them directly\n from each SDK directory when needed:\n\n```bash\ncd sdk-node \u0026\u0026 pnpm typecheck \u0026\u0026 pnpm test\ncd sdk-python \u0026\u0026 uv sync --dev \u0026\u0026 uv run pytest \u0026\u0026 uv run ruff check . \u0026\u0026 uv run basedpyright\ncd sdk-go \u0026\u0026 go test ./... \u0026\u0026 go test -run TestSharedCompatibilityFixtures ./...\n```\n\n## Documentation\n\n- `docs/architecture.md` gives the repository architecture and package layout\n- `docs/schema-generation.md` documents schema/codegen flow\n- `docs/repo-model.md` documents the monorepo task model\n- `RELEASE.md` documents the release process\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivedotdev%2Fsdks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimitivedotdev%2Fsdks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivedotdev%2Fsdks/lists"}