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

@atlaskit/tmp-editor-statsig

v44.2.0

Published

Temp plugin to ease use of statsig feature flags until platform feature flags are available

Readme

@atlaskit/tmp-editor-statsig

Temp plugin to ease use of statsig feature flags until platform feature flags are available Temp plugin to ease use of statsig experiment until a platform solution is available.

Warning: This is a temporary solution and will be removed once there is a platform solution for statsig experiments.

Warning: This requires per product setup via the `setupEditorExperiments` api (products without this setup will receive the default value setup for experiments).

Usage

Experiments

All experiments must be registered in the `editorExperimentsConfig` object in the experiments.ts file.

Once they are registered, they can be accessed using the `editorExperiment` function from `@atlaskit/tmp-editor-statsig/experiments`.

Boolean experiments

import { editorExperiment } from '@atlaskit/editor-statsig-tmp/experiments';

if (editorExperiment('editor_inline_comments_on_inline_nodes', true)) {
	// do something
} else {
 	// do something else
}

Multivariate experiments

import { editorExperiment } from '@atlaskit/editor-statsig-tmp/experiments';

switch (true) {
	case editorExperiment('editor_new_control_variants', 'variant-one'): {
		// do something for variant one
		return
	}
	case editorExperiment('editor_new_control_variants', 'variant-two'): {
		// do something for variant two
		return
	}
	case editorExperiment('editor_new_control_variants', 'variant-three'): {
		// do something for variant three
		return
	}
}
`}


### Testing experiments

#### Atlaskit examples

Not yet supported.

#### Jest tests
##### Boolean experiments

```tsx
import { eeTest } from '@atlaskit/tmp-editor-statsig/editor-experiments-test-utils';

eeTest('example-boolean', {
	true: () => {
		expect(editorExperiment('example-boolean', true)).toBe(true);
	},
	false: () => {
		expect(editorExperiment('example-boolean', false)).toBe(false);
	},
});
Multivariate experiments
import { eeTest } from '@atlaskit/tmp-editor-statsig/editor-experiments-test-utils';

eeTest('example-multivariate', {
	one: () => {
		expect(editorExperiment('example-boolean')).toBe('variant-one');
	},
	two: () => {
		expect(editorExperiment('example-boolean')).toBe('variant-two');
	},
	three: () => {
		expect(editorExperiment('example-boolean')).toBe('variant-three');
	},
});

Playwright tests

Editor Experiments are setup similar to platformFeatureFlags.

test.use({
	adf: exampleAdf,
	platformFeatureFlags: {
		// ...
	},
	editorExperiments: {
		'example-boolean': true,
		'example-multivariate': 'variant',
	},
});

Configuration

import { setupEditorExperiments } from '@atlaskit/tmp-editor-statsig/experiments';

// Example confluence setup
setupEditorExperiments('confluence');

// Example dev util setup -- takes overrides as a second param (and otherwise defaults all experiments to their default values)
setupEditorExperiments('test', { 'example-boolean': true });
```tsx


## Usage

Detailed docs and example usage can be found
[here](https://atlaskit.atlassian.com/packages/editor/tmp-editor-feature-gate-js-client).