spree-typescript-sdk
Installation
SKILL.md
Spree TypeScript SDKs
Two npm packages, one shared HTTP core:
| Package | Surface | Auth | Status |
|---|---|---|---|
@spree/sdk |
Store API (/api/v3/store/*) |
Publishable key + optional JWT customer | Stable (1.x) |
@spree/admin-sdk |
Admin API (/api/v3/admin/*) |
Secret key OR JWT admin | Developer Preview (next dist-tag) |
@spree/sdk-core |
Shared HTTP, retry, error layer | n/a | Internal (not for direct use) |
Both packages publish:
dist/index.js— flat client (createClient/createAdminClient)dist/types/— generated TypeScript types from Alba serializers@spree/sdkalso publishesdist/zod/— runtime validation schemas +dist/webhooks.js— signature verifier