contentstack-javascript-marketplace
Installation
SKILL.md
Contentstack JavaScript Marketplace SDK
Mental model
contentstack.client(options)(lib/contentstack.js) creates an axios-based HTTP client pointed at the Developer Hub host (via@contentstack/utils+region), then wraps it withcontentstackClient(lib/contentstackClient.js).- Auth: Pass
authtokenand/orauthorization, or callloginto setauthtokenon shared axios defaults. OptionalrefreshTokencallback supports rotation. - Marketplace entry:
client.marketplace(organization_uid)returnslib/marketplace/index.js— apps (app(),findAllApps, …), installations, hosting/deployments, webhooks, OAuth underapp/oauth, authorization helpers, app requests.
Where to change things
| Concern | Primary paths |
|---|---|
| Client defaults, User-Agent, region → host | lib/contentstack.js, lib/core/region.js |
| Login / logout / marketplace root | lib/contentstackClient.js |
| Axios, retries (429), timeout, query encoding | lib/core/contentstackHTTPClient.js |
| Request queuing | lib/core/concurrency-queue.js |
| Error shape | lib/core/contentstackError.js |
| Marketplace resources | lib/marketplace/**/*.js |
| Public TypeScript types | types/**/*.d.ts |