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

@eppo/js-client-sdk-common

v4.15.3

Published

Common library for Eppo JavaScript SDKs (web, react native, and node)

Readme

Common library for Eppo's JavaScript SDK

Test and lint SDK

Getting Started

Refer to our SDK documentation for how to install and use the SDK.

Local development

To set up the package for local development, run make prepare after cloning the repository

Troubleshooting

  • Jest encountered an unexpected token
Details:

/.../node_modules/@eppo/js-client-sdk-common/node_modules/uuid/dist/esm-browser/index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { default as v1 } from './v1.js';
                                                                                  ^^^^^^
SyntaxError: Unexpected token 'export'

Add the following line to your jest.config.js file: transformIgnorePatterns: ['<rootDir>/node_modules/(?!(@eppo|uuid)/)'],

Installing local package

It may be useful to install the local version of this package as you develop the client SDK or Node SDK. This can be done in two steps:

  1. Open the directory with the client SDK you want to add this library to, and run make prepare
  2. Add the local version of this library to the SDK you are developing by running yarn add --force file:../js-client-sdk-common (this assumes both repositories were cloned into the same directory)

Publishing Releases

When publishing releases, the following rules apply:

  • Standard Release:

    • Create a release with tag format vX.Y.Z (e.g., v4.3.5)
    • Keep "Set as latest release" checked
    • Package will be published to NPM with the latest tag
  • Pre-release:

    • Create a release with tag format vX.Y.Z-label.N (e.g., v4.3.5-alpha.1)
    • Check the "Set as pre-release" option
    • Package will be published to NPM with the pre-release label as its tag (e.g., alpha.1)

Note: The release will not be published if:

  • A pre-release is marked as "latest"
  • A pre-release label is used without checking "Set as pre-release"

Tools

Bootstrap Configuration

You can generate a bootstrap configuration string from either the command line or programmatically via the ConfigurationWireHelper class.

The tool allows you to specify the target SDK this configuration will be used on. It is important to correctly specify the intended SDK, as this determines whether the configuration is obfuscated (for client SDKs) or not (for server SDKs).

Command Line Usage

Install as a project dependency:

# Install as a dependency
npm install --save-dev @eppo/js-client-sdk-common

# or, with yarn
yarn add --dev @eppo/js-client-sdk-common

Common usage examples:

# Basic usage
yarn bootstrap-config --key <sdkKey> --output bootstrap-config.json

# With custom SDK name (default is 'js-client-sdk')
yarn bootstrap-config --key <sdkKey> --sdk android

# With custom base URL
yarn bootstrap-config --key <sdkKey> --base-url https://api.custom-domain.com

# Output configuration to stdout
yarn bootstrap-config --key <sdkKey> 

# Show help
yarn bootstrap-config --help

The tool accepts the following arguments:

  • --key, -k: SDK key (required, can also be set via EPPO_SDK_KEY environment variable)
  • --sdk: Target SDK name (default: 'js-client-sdk')
  • --base-url: Custom base URL for the API
  • --output, -o: Output file path (if not specified, outputs to console)
  • --help, -h: Show help

Programmatic Usage

import { ConfigurationHelper } from '@eppo/js-client-sdk-common';

async function getBootstrapConfig() {
  // Initialize the helper
  const helper = ConfigurationHelper.build(
    'your-sdk-key',
    {
      sdkName: 'android', // optional: target SDK name (default: 'js-client-sdk')
      baseUrl: 'https://api.custom-domain.com', // optional: custom base URL
    });

  // Fetch the configuration
  const config = await helper.fetchConfiguration();
  const configString = config.toString();

  // You are responsible to transport this string to the client
  const clientInitialData = {eppoConfig: eppoConfigString};

  // Client-side
  const client = getInstance();
  const initialConfig = configurationFromString(clientInitialData.eppoConfig);
  client.setInitialConfig(configurationFromString(configString));
}

The tool will output a JSON string containing the configuration wire format that can be used to bootstrap Eppo SDKs.