๐ The most complete, production-ready TypeScript SDK for Shopee Open API ๐
Build powerful Shopee integrations with confidence using our fully-featured SDK that covers 100% of Shopee's API endpoints. Trusted by developers, built by the community.
AI Onboarding & LLM Guide - A high-context onboarding guide specifically written for AI Agents and LLMs to quickly understand the codebase architecture and start coding.
VideoManager - Shopee Video features and analytics
Installation
npminstall@congminh1254/shopee-sdk
Requirements: Node.js >= 20.0.0
What You Get
โ Complete TypeScript definitions for all 29 API managers
โ Automatic token refresh and management
โ Built-in error handling and retry logic
โ Zero dependencies (except node-fetch)
โ Full documentation and examples
Quick Start
Get up and running in minutes! Here's how easy it is to integrate with Shopee:
This SDK is built with reliability and correctness as first-class citizens, boasting extensive test coverage across both simulated unit environments and live external sandbox systems.
1. Unit Tests
Mock Manager Coverage: Over 690+ unit tests validating standard parameters, response layouts, request sign-generation, and error boundaries for all 29 API managers.
100% Code Coverage: All core and manager logic files maintain a strict 100% statement, branch, and line code coverage.
Run unit tests:
npmruntest
2. Live Sandbox Integration Tests
Our integration test suite executes real HTTP requests against the live Shopee Sandbox environment (using dynamic OAuth credentials) to verify end-to-end integration safety:
Vouchers: Tests the full CRUD lifecycle (creating, fetching, updating limits, and automatically cleaning up/deleting test vouchers).
Media & Videos: Verifies safe transparent PNG uploads, video session initialization, and a complete chunked video upload workflow utilizing a built-in, highly-optimized 10-second Base64 MP4 H.264 video fixture.