spree-typescript-sdk

Develop TypeScript clients for Spree Commerce Store and Admin APIs.

4|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/spree/agent-skills --skill spree-typescript-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spree-typescript-sdk
Source: https://github.com/spree/agent-skills/tree/main/skills/spree-typescript-sdk
Command: npx skills add https://github.com/spree/agent-skills --skill spree-typescript-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @spree/sdk, @spree/admin-sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the development of TypeScript clients for Spree Commerce, enabling developers to interact with the Spree API efficiently.

Core Features & Use Cases

  • SDKs for Store and Admin APIs: Offers ready-to-use SDKs for the Store and Admin APIs of Spree Commerce.
  • Authentication and Authorization: Supports both publishable key and JWT for authentication, catering to different client types.
  • CRUD Operations: Facilitates full CRUD operations on various Spree resources.
  • Error Handling and Retry Mechanisms: Provides robust error handling and configurable retry logic.
  • Use Case: Develop a Next.js storefront or a custom admin tool that interacts with the Spree API.

Quick Start

Install the @spree/sdk and @spree/admin-sdk packages to start building your client.

Frequently Asked Questions about spree-typescript-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a TypeScript client for Spree Commerce APIs?

To build a TypeScript client for Spree Commerce, you can use this Skill to generate ready-to-use SDKs for both Store and Admin APIs, handling CRUD operations and authentication efficiently.

Does the Spree SDK support JWT authentication and publishable keys?

Yes, the Spree SDK supports both publishable key and JWT authentication mechanisms, allowing you to cater to different client types when interacting with the Store or Admin APIs.

How do I handle API errors and retries in a Spree Commerce TypeScript client?

Handling API errors and retries in a Spree Commerce TypeScript client is managed by the SDK's built-in robust error handling and configurable retry logic, ensuring reliable API communication.

Can I use the Spree TypeScript SDK to develop a Next.js storefront?

Yes, you can use the Spree TypeScript SDK to develop a Next.js storefront, as it provides the necessary tools to interact seamlessly with the Spree Store API for frontend operations.

What is the best way to interact with Spree Commerce resources using TypeScript?

The best way to interact with Spree Commerce resources using TypeScript is through the SDK, which facilitates full CRUD operations on various resources while maintaining type safety.

Do I need to install separate packages for Spree Store and Admin API clients?

Yes, you need to install both the @spree/sdk and @spree/admin-sdk packages to build clients for the Store and Admin APIs respectively, ensuring full coverage for your application.