A modern, TypeScript-first SDK for integrating with the WooCommerce Store API. Build headless or decoupled WooCommerce storefronts with full type safety.
For full documentation, guides, and API reference, visit typewoo.dev.
- 📦 Easy-to-use API for WooCommerce Store endpoints (products, cart, checkout, orders)
- 🔐 Supports both guest and authenticated users
- 🔄 Built-in interceptors for nonce, cart token, and JWT authentication
- 🛠️ Fully typed responses powered by TypeScript
- ⚡ Event-driven core with custom EventBus
- 🔌 Custom endpoints with full type inference
- ⚙️ Built with modern tooling (Nx, Vitest, Pure ESM)
npm install @typewoo/sdk axios qs zodimport { createTypewoo } from '@typewoo/sdk';
// Create your SDK instance
const sdk = createTypewoo({
baseUrl: 'https://your-store.com',
});
// Access store services
const { data: products } = await sdk.store.products.list();
const { data: cart } = await sdk.store.cart.get();MIT
This project is not affiliated with, endorsed by, or officially connected to WooCommerce, Automattic, or WordPress. WooCommerce® is a registered trademark of Automattic Inc. This is an independent, community-driven SDK that interacts with the WooCommerce Store API.