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

create-tableau-dashboard-extension

v0.1.4

Published

This project helps create a basic Tableau dashboard extension. More information about building dashboard extensions for Tableau can be found [here](https://tableau.github.io/extensions-api/).

Downloads

8

Readme

Create a Tableau Dashboard Extension Starter

This project helps create a basic Tableau dashboard extension. More information about building dashboard extensions for Tableau can be found here.

Using the starter tool

To get your first Tableau dashboard extension up and running, execute the command below:

npx create-tableau-dashboard-extension myExtensionName

This will create a starter dashboard extension, as well as the trex file needed to run it. After the build process completes, it will print out the command you need to start the web app. It should be something like this:

cd create-tableau-dashboard-extension/{myExtensionName} && npm start

This will start up the web app, but you still need to open it in Tableau. Open Tableau Desktop and goto any dashboard. Drag in a Dashboard Extension object, and navigate to the trex file in your create-tableau-dashboard-extension directory.

Note: This tool has a dependency on git being installed, in order to pull source code for the web app. If you haven't done so already, please download and install git

How does this dashboard extension work?

When you run the npx command, a react web app is created with the following directory structure.
React app directory structure

Dashboard Extension

The dashboard extension rendering is controlled by src/components/DashboardExtension.js. It shows a prompt if the extension has not been configured, or displays some statistics of the selected sheet. This isn't meant to be useful, more to show how you can detect whether the extension has been configured or not.

Config popup

The config popup window is controlled by src/components/Config.js. The contents of the popup are just to show common input types (dropdown menus, sliders, checkboxes, etc). None of them are actually used, except for the sheet selector dropdown. The UI components shown are leveraging Tableau's React UI to ensure the components look like the rest of Tableau.

Routing

One thing that may seem unusual about this web app, is that it does not use the standard react-router-dom package. In order for a dashboard extension to qualify as a "sandboxed extension", it cannot use standard routing. Instead, this project uses the react-app-rewired package to allow for multiple entry points (public/index.html & public/config.html)