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

enefit-toolkit

v0.0.6

Published

Enefit Toolkit is a package that includes a set of tools and utilities to streamline development workflows, including TypeScript support, Storybook integration, and testing utilities.

Downloads

393

Readme

Enefit Toolkit

Enefit Toolkit is a package that includes a set of tools and utilities to streamline development workflows, including TypeScript support, Storybook integration, and testing utilities.

GitHub Repository

npm Package

Storybook

Installation

To install this toolkit in your project, run the following command:

npm install enefit-toolkit

Development

Scripts

Here are the available npm scripts you can use during development:

  • build: Builds the TypeScript files and runs Vite for bundling.

    npm run build
  • lint: Lints your code using ESLint.

    npm run lint
  • lint:fix: Lints and automatically fixes issues in your code.

    npm run lint:fix
  • format: Runs Prettier to check if your code is formatted correctly.

    npm run format
  • format:fix: Automatically formats your code using Prettier.

    npm run format:fix
  • stylelint: Lints your CSS files using Stylelint.

    npm run stylelint
  • stylelint:fix: Automatically fixes CSS issues using Stylelint.

    npm run stylelint:fix
  • storybook: Starts Storybook in development mode (default port 6006).

    npm run storybook
  • build-storybook: Builds the Storybook project for production.

    npm run build-storybook
  • build-storybook-ci: Builds Storybook for CI, outputting to the storybook-static folder.

    npm run build-storybook-ci
  • test: Runs tests with Vitest.

    npm run test
  • coverage: Runs tests with Vitest and generates a coverage report.

    npm run coverage

TypeScript

The package is built with TypeScript. You can run tsc to compile the TypeScript code, or use the build command (npm run build) to bundle the toolkit with Vite.

Testing

This package uses Vitest for running tests. Make sure you have the necessary testing libraries installed, such as:

  • @testing-library/react
  • vitest

Run the tests with:

npm run test

For coverage reports, run:

npm run coverage

Storybook

Storybook is integrated to view and test UI components in isolation. Run the following command to start Storybook locally:

npm run storybook

For production builds of Storybook, run:

npm run build-storybook

Storybook CI

For CI/CD environments, build the Storybook output with:

npm run build-storybook-ci

The build will output to the storybook-static directory.

Development Environment

Prerequisites

  • Node.js (version 18+)
  • npm (version 8+)

Install the dependencies by running:

npm install

Code Formatting & Linting

To ensure your code follows consistent formatting and quality standards, the following tools are used:

  • ESLint for linting JavaScript and TypeScript code.
  • Prettier for code formatting.
  • Stylelint for CSS linting.

You can run the respective commands to fix issues or check the code quality:

npm run lint
npm run lint:fix
npm run format
npm run format:fix
npm run stylelint
npm run stylelint:fix

Contributing

Feel free to fork this repository, submit issues, and make pull requests. Please make sure that your code follows the project's linting and formatting rules.

This should now be properly structered and released in npm. Let me know if you need any further adjustments and I am happy to collabrate!