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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ekko-earth/dashboard-components

v0.0.262

Published

The Ekko Earth component library

Readme

Ekko Components Library

Prerequisites:

  1. Node version 16
  2. Yarn or NPM
  3. Typescript
  4. CSS Modules

Local Setup

Install all dependencies

yarn

Available Scripts

In the project directory, you can run:

yarn storybook

Runs StoryBook in the development mode.
Open http://localhost:6006 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the terminal.
See the section about running tests for more information.

Creating new components

To create a new component, there are 6 steps:

  • Create {component-name}.tsx shell file | where the main definition and logic is maintained, all imports will end up in this file
  • Create {component-name}.interface.ts file | where the type specification and required/optional properties are defined
  • Create {component-name}.stories.tsx file | where the component is defined for Storybook documentation, rendering, and able for QA testing
  • Create {component-name}.test.tsx file | where the component rendering and internal logic is tested
  • Create {component-name}.styles.tsx file | where the component styles and handling of advanced property usage are defined
  • Create an index.ts file | where the component is exported for React and Storybook consumption

Testing the Component build

We will need to first create the build, to do this we run:

npm pack

This will create a tarball of the dist folder e.g. ekko-earth-dashboard-components-0.X.1.tgz
Next we create our project to test with, in this case test-app

npx create-react-app test-app --template=typescript

Once we have the test app created we pull in the package using the tarball created in step 1 Wo this by editing the package.json in the test app with the following dependency

{
 ....,
 "@ekko-earth/dashboard-components": "file:./PATH/TO/COMPONENT_REPO/ekko-earth-dashboard-components-0.X.0.tgz",
 ....
}

We can now use the package in the test app as per norm e.g.

import {Button} from '@ekko-earth/dashboard-component';

Gotchas

  1. When using a GUI client for source tree management you could run into a pre-commit error \
  • This happens mostly because the client doesn't have permission to run the husky sh files
    • solve this by running chmod -x .husky/pre-commit and chmod -x .husky/pre-push in the project root directory