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

@moreyears/icons

v1.1.0

Published

Official icon library for More Years — React components and Web Components for all icon weights

Readme

@moreyears/icons

Official icon library for More Years. Available as React components and Web Components.

Installation

npm install @moreyears/icons

React Usage

import { Icon } from '@moreyears/icons';

// Basic usage
<Icon name="mailbox" />

// With weight and customisation
<Icon name="mailbox" weight="bold" size={32} color="#333" />

// For linear/outline weights, you can adjust stroke width
<Icon name="mailbox" weight="linear" strokeWidth={1.5} />

Available Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | name | string | — | Icon name (slug, display name, or full id) | | weight | string | "linear" | Icon weight variant | | size | number \| string | 24 | Icon size in pixels | | color | string | "currentColor" | Icon color | | strokeWidth | number \| string | — | Stroke width (for linear/outline weights) | | className | string | — | Additional CSS class |

Available Weights

  • broken
  • line-duotone
  • linear (default)
  • outline
  • bold
  • bold-duotone

Helper Functions

import { getIconSvg, getIconInfo, getAllIcons, getIconsByCategory, getCategories } from '@moreyears/icons';

// Get raw SVG string
const svg = getIconSvg('mailbox', 'bold');

// Get icon metadata
const info = getIconInfo('mailbox');
// → { name: "Mailbox", slug: "mailbox", category: "messages-conversation", weights: [...] }

// List all icons
const icons = getAllIcons();

// List icons by category
const messageIcons = getIconsByCategory('messages-conversation');

// List all categories
const categories = getCategories();

CDN / Web Component Usage

For non-React projects, use the Web Component via CDN:

<!-- Load from CDN -->
<script src="https://cdn.jsdelivr.net/npm/@moreyears/icons/dist/web-component.js"></script>

<!-- Use anywhere in your HTML -->
<moreyears-icon name="mailbox" weight="bold" size="24" color="#333"></moreyears-icon>

<!-- With stroke width for linear icons -->
<moreyears-icon name="mailbox" weight="linear" stroke-width="1.5"></moreyears-icon>

Web Component Attributes

| Attribute | Default | Description | |-----------|---------|-------------| | name | — | Icon name | | weight | "linear" | Icon weight | | size | "24" | Size in pixels | | color | "currentColor" | Icon color | | stroke-width | — | Stroke width |

Direct SVG Access

You can also import SVGs directly:

// Import a specific SVG file
import mailboxBold from '@moreyears/icons/svgs/bold/messages-conversation/mailbox.svg';

Or access the manifest for building custom tooling:

import manifest from '@moreyears/icons/manifest';

Manifest Structure

The manifest provides full metadata for every icon:

{
  "icons": {
    "messages-conversation/mailbox": {
      "name": "Mailbox",
      "slug": "mailbox",
      "category": "messages-conversation",
      "categoryName": "Messages, Conversation",
      "weights": [
        { "weight": "Bold", "weightSlug": "bold", "path": "svgs/bold/messages-conversation/mailbox.svg" }
      ]
    }
  },
  "categories": {
    "messages-conversation": {
      "name": "Messages, Conversation",
      "slug": "messages-conversation",
      "icons": ["mailbox", "chat-square", ...]
    }
  }
}

Building from Source

# Install dependencies
npm install

# Build the package
npm run build

The build script generates:

  • dist/index.mjs — React component (ESM)
  • dist/index.js — React component (CJS)
  • dist/web-component.mjs — Web Component (ESM)
  • dist/web-component.js — Web Component (IIFE, for CDN)
  • dist/index.d.ts — TypeScript definitions
  • dist/manifest.json — Icon manifest