polar-integration
Installation
SKILL.md
Polar SDK integration
A standalone guide to wiring up Polar's three core HTTP endpoints — Checkout, Customer Portal, and Webhooks — using @polar-sh/sdk directly. The recipes are framework-agnostic Web Standards (Request/Response); each section also lists the small idiomatic adjustments per framework.
Setup
Install the SDK:
npm install @polar-sh/sdk
# or pnpm / yarn / bun
Don't install @polar-sh/<framework> packages (e.g. @polar-sh/nextjs, @polar-sh/express, @polar-sh/hono, etc.) — they are deprecated. @polar-sh/sdk is all you need for these recipes.
Required environment variables (use whatever loader your framework provides — process.env, Deno.env, import.meta.env, etc.):