Skip to content
/ sdk Public

TypeScript-first SDK for integrating with the WooCommerce Store API & Rest API

Notifications You must be signed in to change notification settings

typewoo/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

537 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@typewoo/sdk

A modern, TypeScript-first SDK for integrating with the WooCommerce Store API. Build headless or decoupled WooCommerce storefronts with full type safety.

📚 Documentation

For full documentation, guides, and API reference, visit typewoo.dev.

✨ Features

  • 📦 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)

📦 Installation

npm install @typewoo/sdk axios qs zod

🚀 Quick Start

import { 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();

📖 Learn More

📄 License

MIT

⚠️ Disclaimer

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.

About

TypeScript-first SDK for integrating with the WooCommerce Store API & Rest API

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5