You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client for the Content Delivery API (CDA): read published content, assets, taxonomies, sync, and live preview from a stack. (This is not the Content Management API / CMA client — see @contentstack/management.)
Per-platform http and localstorage implementations
config.js
Default CDN host, API version, URL paths (imported by stack.js)
webpack/
Build configs per target
dist/**
Built artifacts (package.jsonmain / browser / react-native)
Common commands
npm install
npm run build # all webpack targets (also runs on prepare / pretest)
npm run lint # eslint src test
npm run format # eslint src test --fix
npm run test# test:e2e + test:typescript (pretest runs build)
npm run test:e2e # Jest JS tests under test/ (see jest.js.config.js)
npm run test:typescript # Jest + ts-jest for test/typescript
npm run generate-docs # JSDoc (docs-config.json)
Live API tests
test/config.js loads .env and requiresHOST, API_KEY, DELIVERY_TOKEN, ENVIRONMENT. Without them, importing test/config.js throws.
Jest e2e tests use dist/node/contentstack.js (built output). Run npm run build (or npm test, which runs pretest) before relying on fresh src/ changes.