explorer 0,0,0,0,0,0 travis-ci Bower circleci gulp npm

Data Explorer by Keen IO - point-and-click interface for analyzing and visualizing event data.

Keen IO Explorer

The Keen IO Explorer is an open source point-and-click interface for querying and visualizing your event data. It’s maintained by the team at Keen IO.

Check out the demo here.. Read on for instructions on how to use the Explorer on your website or in your web app and how to get set up to develop with the Explorer.

Table of Contents

  1. How to use Explorer on your site or in your app
  2. How to develop with the Explorer
  3. FAQ
  4. Contributing
  5. Tech used in this project

How to use Explorer on your site or in your app

Include the necessary files

You have three options for including the necessary Explorer files:

Option 1: Use the hosted assets from our CDN
  <!-- Include Bootstrap from CDN. We use bootstrap as our CSS framework for Explorer -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  <!-- Include Explorer CSS from CDN -->
  <link rel="stylesheet" href="https://d26b395fwzu5fz.cloudfront.net/apps/keen-explorer-2.3.0.min.css">
  <!-- Include jQuery from Google. We use jQuery for a few of our UI components, like calendar pickers. -->
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  <!-- Include keen.js from CDN. This is our Javascript SDK that powers querying and visualizations in Explorer. -->
  <script src="https://d26b395fwzu5fz.cloudfront.net/3.4.0-rc4/keen.min.js" type="text/javascript"></script>
  <!-- Include keen-explorer.js from CDN. -->
  <script src="https://d26b395fwzu5fz.cloudfront.net/apps/keen-explorer-2.3.0.min.js"></script>
Option 2: Include the files yourself

You’d need to include all of the same assets as those listed in the CDN example above. You can download the Explorer source code to get the keen-explorer.js and keen-explorer.css files (as well as the minified versions). And you can choose to include jQuery and Bootstrap however you wish, from CDNs or using downloaded copies.

Option 3: Install using NPM

This is as easy as npm install keen-explorer

Get your project ID & API keys

If you haven’t done so already, login to Keen IO to create a project for your app. You’ll need a Keen IO account to create a project. The Project ID and API Keys are available on the Project Overview page. You will need these for the next steps.

Configure the Keen.js client and initialize Explorer

Somewhere on the page that you want to show Explorer you’ll need to configure a Keen.js client and pass that into the initialization of a new Explorer. Here’s how you do it:

<div id="explorer"></div>
<script type="text/javascript">
  Keen.ready(function() {
    // Configure a new Keen.js client with your project ID, read key and master key.
    var client = new Keen({
      projectId: "YOUR_PROJECT_ID",
      readKey: "YOUR_PROJECT_READ_KEY",
      masterKey: "YOUR_PROJECT_MASTER_KEY"

    var app = new Keen.Explorer.App({
      // Pass that client into a new Explorer
      client: client,
      // Optionally add in saved queries support:
      // Saved queries is entirely optional. If you set it to true, a "saved queries" feature
      // will be available and you can save the state of the query you're working
      // on so that they can be looked up at a later time.
      savedQueries: true,
      // The targetId is the id of the DOM Node you want to display Explorer inside.
      targetId: 'explorer'

And that’s it. You’re done!

How to develop with the Explorer

  1. git clone this repository or Download the source code
  2. Navigate to the project directory and make a copy of or rename the demo file: cp demo/example_index.html demo/index.html or mv demo/example_index.html demo/index.html
  3. Configure the Keen.js client in the demo file at demo/index.html with your project ID and Keen IO API keys.
  4. Install the dependencies with npm install.
  5. Run the development script with npm run dev or export PORT=8082; npm run dev.
  6. You can now view the demo locally at http://localhost:8081/ or your specified port.

Building the project:

The project is built with Gulp.js.

  • Run npm run production from the root directory of the project to build ALL files, including the minified versions for production use.


Run Unit Tests * Run npm run test to run all the tests. Currently there are only unit tests.

Run In Browser Mocha Unit Tests This isn’t normally requried, but if you need to, you can run the tests in the browser.

  • Run a server on another port, we use http-server on port 8082
  • See the mocha unit test suite run on http://localhost:8082/test/unit/


Is this open source Keen Explorer different than the one on keen.io? Nope! We have recently moved all our development on the Keen Explorer to this open source version.

I have questions about using the project! Where/who do I ask? If you have any questions about using this project, Explorer feel free to contact us anytime at [email protected].


To contribute to this project:

  • Fork the repo.
  • Submit a Pull Request with test coverage.
  • Follow our PR template, which includes the following sections:

## What does this PR do? How does it affect users?

## How should this be tested?

Step through the code line by line. Things to keep in mind as you review:
 - Are there any edge cases not covered by this code?
 - Does this code follow conventions (naming, formatting, modularization, etc) where applicable?

Fetch the branch and/or deploy to staging to test the following:

- [ ] Does the code compile without warnings (check shell, console)?
- [ ] Do all tests pass?
- [ ] Does the UI, pixel by pixel, look exactly as expected (check various screen sizes, including mobile)?
- [ ] If the feature makes requests from the browser, inspect them in the Web Inspector. Do they look as expected (parameters, headers, etc)?
- [ ] If the feature sends data to Keen, is the data visible in the project if you run an extraction (include link to collection/query)?
- [ ] If the feature saves data to a database, can you confirm the data is indeed created in the database?

## Related tickets?

Screenshots encouraged! Would an animated GIF be more informative than a screenshot? Then we recommend Recordit.

Tech used in this project

These are the major technologies used in the project.

  • ReactJS for UI Components & input handling.
  • Flux for help managing the data model layer.
  • Bootstrap for our CSS framework.
  • NPM for dependency management.
  • Browserify to compile modules for use in the browser.
  • GulpJS for a task/build runner.

Related Repositories



Data Explorer by Keen IO - point-and-click interface for analyzing and visualizing event data. ...



Artist Explorer is a music discovery tool to to explore artists and music by browsing artists through a relationship tree ...



A project explorer sidebar ...



Block explorer showcasing the BlockCypher APIs. ...



DEPRECATED - A Block Explorer clone built using node-bitcoin-p2p ...

Top Contributors

aroc dustinlarimer josephwegner joannecheng sfalkoff tbarn lexicography anthonymayer jacklittleton stof garethtdavies clayallsopp jjb cettox c-lillini commuterjoy


package version
classnames 2.1.2
flux ^2.0.3
json-stable-stringify 1.0.0
keen-analysis 1.2.2
keen-dataviz 1.1.1
keymirror ~0.1.0
lodash 4.0.0
moment ^2.7.0
qs 2.2.3
react ^0.14.3
react-addons-test-utils ^0.14.3
react-dom ^0.14.3
react-highlight ^0.9.0
rquery ^3.1.1
string ^2.0.1
dev autoprefixer-loader ^3.2.0
babel-core ^6.17.0
babel-loader ^6.2.5
babel-preset-es2015 ^6.16.0
babel-preset-latest ^6.24.1
babel-preset-react ^6.24.1
browserify 11.2.0
browserify-shim ~3.8.0
chai ^2.3.0
chai-as-promised ^5.0.0
connect-history-api-fallback 0.0.5
css-loader ^0.25.0
extract-text-webpack-plugin ^1.0.1
gulp ^3.9.1
gulp-autoprefixer ~2.1.0
gulp-awspublish 0.0.23
gulp-clean ~0.3.1
gulp-connect 2.0.6
gulp-less 3.0.0
gulp-mocha ^1.0.0
gulp-mocha-phantomjs 0.8.1
gulp-mocha-selenium ^1.0.0
gulp-react 2.0.0
gulp-rename ~1.2.0
imports-loader ^0.6.5
jquery-browserify ^1.8.1
keen-js ^3.3.0
less ^2.7.1
less-loader ^2.2.3
phantomjs 1.9.7-15
reactify ~0.15.1
run-sequence ~1.0.1
sinon 1.14.1
stringify ~3.0.0
style-loader ^0.13.1
vinyl-source-stream 1.0.0
webpack ^1.13.2


-   v2.3.0 zip tar
-   v2.2.0 zip tar
-   v2.1.0 zip tar
-   v2.0.0 zip tar
-   v1.0.0 zip tar