npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@contentstack/core

v1.3.9

Published

[![Contentstack](https://www.contentstack.com/docs/static/images/contentstack.png)](https://www.contentstack.com/)

Readme

@contentstack/core

Contentstack

TypeScript Core SDK for Contentstack - A foundational library providing core modules and utilities for Contentstack TypeScript SDKs.

About Contentstack

Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. Read More.

Description

This package contains core modules and utilities used by the Contentstack TypeScript Delivery SDK. It provides essential functionality including HTTP client configuration, error handling, request management, parameter serialization, and retry policies.

Features

  • HTTP Client: Configurable Axios-based HTTP client with support for custom adapters
  • Error Handling: Comprehensive error classes for API and Contentstack-specific errors
  • Request Management: Request handling with interceptors and custom error callbacks
  • Parameter Serialization: Custom parameter serialization for API requests
  • Retry Policies: Built-in retry logic for handling rate limits and transient errors
  • TypeScript Support: Full TypeScript definitions included
  • Multiple Build Formats: Supports CommonJS, ESM, UMD, and TypeScript declarations

Important Note

This package is an internal dependency used by Contentstack TypeScript SDKs. End users should not install this package directly. Instead, install the appropriate Contentstack SDK (e.g., Contentstack TypeScript Delivery SDK), which will automatically include this package as a dependency.

For SDK Developers

If you are developing or maintaining a Contentstack SDK and need to use this core package directly, you can install it as a dependency:

npm install @contentstack/core

Then import the modules:

import {
  httpClient,
  // ... other exports
} from '@contentstack/core';

Development

Prerequisites

  • Node.js version 4.4.7 or later

Setup

Clone the repository and install dependencies:

git clone https://github.com/contentstack/contentstack-js-core.git
cd contentstack-js-core
npm install

Build

Build all output formats (CommonJS, ESM, UMD, and TypeScript declarations):

npm run build

Build specific formats:

npm run build        # Build all
npm run build:cjs    # CommonJS
npm run build:esm    # ES Modules
npm run build:umd    # UMD
npm run build:types  # TypeScript declarations

Testing

Run unit tests:

npm run test

Run linting:

npm run lint

Packaging

Create a package tarball:

npm run package

Clean

Clean build artifacts:

npm run clean

License

This project is licensed under the MIT License. See the LICENSE.txt file for details.

Repository

Related Projects

Support

For issues and feature requests, please visit the GitHub Issues page.


Copyright (c) 2016-2025 Contentstack. All rights reserved.