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

detl-optimizely-export

v0.0.0

Published

A CLI for exporting data from Optimizely

Readme

DETL Optimizely Export CLI

This is a CLI tool for exporting the decisions and events data from experiments that have ran in Optimizely. This allows you to see the data behind a particular experiment and how it performed over time as well as debug issues with result data.

To use this tool, you can follow the instructions below if you have an NPM account set up, if you don't then please do the following after cloning the repository:

1: Run pnpm install to install the dependencies. 2: Export your Optimizely API key as an environment variable called OPTIMIZELY_TOKEN. 3: Run the command pnpm run run export <EXPERIMENTID> <DATE> to export the data for a specific experiment and date.

  • For example pnpm run run export 9300002425237 2025-06-27 will export the data for the experiment with ID 9300002425237 for the date 2025-06-27.

If you'd like these files to be in a JSON format, you can run the following command after exporting the data:

pnpm run run transform

This will transform the exported Parquet files into the JSON format.

Usage

$ npm install -g detl-optimizely-export
$ detl-optimizely-export COMMAND
running command...
$ detl-optimizely-export (--version)
detl-optimizely-export/0.0.0 darwin-arm64 node-v22.17.0
$ detl-optimizely-export --help [COMMAND]
USAGE
  $ detl-optimizely-export COMMAND
...

Commands

detl-optimizely-export autocomplete [SHELL]

Display autocomplete installation instructions.

USAGE
  $ detl-optimizely-export autocomplete [SHELL] [-r]

ARGUMENTS
  SHELL  (zsh|bash|powershell) Shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  Display autocomplete installation instructions.

EXAMPLES
  $ detl-optimizely-export autocomplete

  $ detl-optimizely-export autocomplete bash

  $ detl-optimizely-export autocomplete zsh

  $ detl-optimizely-export autocomplete powershell

  $ detl-optimizely-export autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

detl-optimizely-export export EXPERIMENTID DATE

Export experiment data from Optimizely

USAGE
  $ detl-optimizely-export export EXPERIMENTID DATE [--type <value>]

ARGUMENTS
  EXPERIMENTID  The id for the experiment you want to export
  DATE          The date for the data you want to export

FLAGS
  --type=<value>  [default: decisions] The type of data you want to export

DESCRIPTION
  Export experiment data from Optimizely

See code: src/commands/export/index.ts

detl-optimizely-export help [COMMANDS]

Display help for detl-optimizely-export.

USAGE
  $ detl-optimizely-export help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for detl-optimizely-export.

See code: @oclif/plugin-help

detl-optimizely-export transform

Transform the exported experiment data from Optimizely to JSON

USAGE
  $ detl-optimizely-export transform

DESCRIPTION
  Transform the exported experiment data from Optimizely to JSON

See code: src/commands/transform/index.ts