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

miraiedge-ui-lib

v0.0.20

Published

This project is the **UI component library** for **MiraiEdge Technologies**, built with modern frontend tools and practices. It is a reusable and scalable library developed using **React**, **TypeScript**, **Vite**, **Storybook**, **Biome** and **Husky**

Readme

MiraiEdge UI Library

This project is the UI component library for MiraiEdge Technologies, built with modern frontend tools and practices. It is a reusable and scalable library developed using React, TypeScript, Vite, Storybook, Biome and Husky..

All user interfaces within MiraiEdge projects will be built using these standardized and tested components to ensure design consistency, reusability, and developer efficiency.


🛠️ Tech Stack

  • React – Component-based UI
  • TypeScript – Type safety and enhanced development experience
  • Vite – Fast development build tool
  • Storybook – Component-driven development environment
  • Biome – Linting, formatting, and code quality enforcement
  • Husky – Git hooks management to enforce code quality checks pre-commit

📦 Getting Started

1. Clone the Repository

git clone [email protected]:miraiedge/miraiedge-ui-lib.git
cd miraiedge-ui-lib

2. Install Dependencies

npm install

3. Run the storybook in development

npm run storybook

3. Build the storybook

npm build storybook

Format and Lint using Biome

To ensure formatting on save and import sorting, configure Biome in your editor (e.g., in VSCode, add the Biome extension and set it as the default formatter).----

Pre-commit Validation with Husky

As part of our development workflow, Husky enforces code quality by running automated checks before every commit. These checks ensure that only well-formatted, type-safe, and secure code is committed to the repository.

The following validations are run in order:

Biome Lint Check Ensures that your code follows formatting and linting rules defined in biome.json. If issues are found, Biome will attempt to auto-fix them. If it cannot, the commit will be blocked until the issues are resolved.

echo "Running Biome lint check..."
npx biome check --write

TypeScript Type Check Verifies that your code has no type errors using the TypeScript compiler. This ensures that runtime errors caused by type mismatches are caught early.

echo "Running type check..."
npx tsc --noEmit

Security Audit with npm Runs npm audit to detect known vulnerabilities in your dependencies. If any moderate or higher severity issues are found, the commit is blocked until resolved.

echo "Running npm audit (security check)..."
npm audit --audit-level=moderate

These checks are defined in .husky/pre-commit and run automatically—no manual steps are needed. This helps maintain a secure, stable, and high-quality codebase across the team.

Biome extension setup in VS Code

To enable automatic code formatting and linting with Biome in VS Code, install the Biome extension (published by biomejs) from the Extensions Marketplace. Then, update your VS Code settings.json to set Biome as the default formatter for JavaScript, TypeScript, and JSON files. Also, enable editor.formatOnSave to apply formatting automatically on every save. This setup helps enforce consistent code style and import sorting across the project.


Folder structure

.
├── .husky/ #Pre-Commit Hook
├── .storybook/ # Storybook configuration
│ ├── main.ts
│ └── preview.ts
├── .vscode/ # Editor settings
│ └── settings.json
├── src/ # Source files
│ ├── components/
│ │ └── Button/
│ │    ├──── Button.component.tsx
│ │    └──── Button.stories.tsx
│ ├── App.css
│ └── vite-env.d.ts
├── .gitignore
├── .nvmrc
├── biome.json # Formatter config
├── eslint.config.js # Linting config
├── index.html
├── package.json
├── package-lock.json
├── tsconfig.json
├── tsconfig.app.json
├── tsconfig.node.json
├── vite.config.ts
└── README.md