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

@macolmenerori/component-library

v1.0.2

Published

A modern React component library built with TypeScript, providing reusable UI components for your React applications.

Readme

@macolmenerori/component-library

A modern React component library built with TypeScript, providing reusable UI components for your React applications.

Features

  • Built with React 19 and TypeScript
  • Fully typed components with TypeScript declarations
  • ESM and CommonJS support
  • Tree-shakeable exports
  • Strict TypeScript configuration for type safety

Installation

This package is published to npm and can be installed directly without any additional configuration.

Using npm:

npm install @macolmenerori/component-library

Using pnpm:

pnpm add @macolmenerori/component-library

Using yarn:

yarn add @macolmenerori/component-library

Usage

Import components from the library and use them in your React application.

Available Components

A visually appealing theme toggle component with sun/moon animations, clouds, and stars.

Props:

  • enableDarkMode (boolean, required): Current dark mode state
  • setEnableDarkMode (function, required): Callback to update dark mode state
  • size (optional): Size variant - 'small', 'medium', or 'large' (default: 'large')

Example:

import { useState } from 'react';
import { ThemeSwitch } from '@macolmenerori/component-library';

function App() {
  const [darkMode, setDarkMode] = useState(false);

  return (
    <div>
      <ThemeSwitch enableDarkMode={darkMode} setEnableDarkMode={setDarkMode} size="medium" />
    </div>
  );
}

A simple and flexible markdown renderer with GitHub Flavored Markdown (GFM) support, including tables, task lists, strikethrough, and code blocks.

Props:

  • content (string, required): The markdown string to render
  • className (string, optional): CSS class name for the container element

Features:

  • Full GitHub Flavored Markdown support
  • Tables, task lists, strikethrough
  • Code blocks with syntax highlighting support
  • Autolinks
  • Customizable styling via className prop

Example:

import MarkdownRender from '@macolmenerori/component-library';

function App() {
  const markdownContent = `
# Hello World

This is **bold** and this is *italic*.

## Features
- Lists
- ~~Strikethrough~~
- [Links](https://example.com)
- \`inline code\`

| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
  `;

  return (
    <div>
      <MarkdownRender content={markdownContent} className="my-markdown" />
    </div>
  );
}

Peer Dependencies

This library requires the following peer dependencies:

  • React: ^18.0.0 or ^19.0.0
  • React DOM: ^18.0.0 or ^19.0.0

Make sure these are installed in your project.

Development

This section is for contributors working on the library itself.

Prerequisites

  • Node.js >= 22.0.0 and < 23.0.0
  • pnpm 10.24.0

Setup

pnpm install

Available Scripts

  • pnpm dev - Start the development server on port 3000
  • pnpm build - Build the library for distribution
  • pnpm preview - Preview the production build
  • pnpm prettify - Format code with Prettier
  • pnpm lint - Lint code with ESLint
  • pnpm types - Type check with TypeScript

Building

To build the library:

pnpm build

This will generate:

  • ESM bundle at dist/index.js
  • CommonJS bundle at dist/index.cjs
  • TypeScript declarations at dist/types/

Publishing

To publish a new version:

  1. Build the library: pnpm build
  2. Publish: pnpm publish

Technology Stack

  • React 19.0.0 - UI library
  • TypeScript 5.7.3 - Type safety
  • Vite 7.0.5 - Build tool and dev server
  • ESLint - Code linting
  • Prettier - Code formatting

License

MIT

Repository

https://github.com/macolmenerori/component-library