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

@xola/icons

v1.2.4

Published

Xola's icon set

Downloads

24,882

Readme

Xola Icons

Xola's icon set exposed as React components. This package is published on NPM as @xola/icons.

The preview for icons is published as part of the repository's Storybook on ui.xola.io.

Requirements

  • Node.js v20 or higher
  • ESM-only package - This package uses ES modules exclusively and does not support CommonJS

Installation

Install the icons package:

npm install @xola/icons

Usage

import { CalendarIcon, DownArrowIcon, TrashIcon } from "@xola/icons";

function MyComponent() {
    return (
        <div>
            <CalendarIcon size="small" />
            <DownArrowIcon size="medium" />
            <TrashIcon size="large" className="text-red-500" />
        </div>
    );
}

Available Sizes

  • small - Default size
  • medium
  • large

TypeScript Support

This package includes full TypeScript type definitions. Types are automatically available when using TypeScript.

import { CalendarIcon } from "@xola/icons";
import type { IconProps } from "@xola/icons";

const MyIcon: React.FC<IconProps> = ({ size = "small", className }) => {
    return <CalendarIcon size={size} className={className} />;
};

Development

Building the Package

npm run build

This will:

  • Build the ES module bundle
  • Generate TypeScript declaration files
  • Output to the build/ directory

Formatting

npm run format

Linting

npm run lint
npm run lint:fix

Publishing

Prerequisites

  1. Ensure you have proper NPM permissions to publish to the @xola scope
  2. Authenticate with NPM:
    npm login

Publishing Steps

  1. Update the version in package.json following semantic versioning:

    • Patch (1.2.0 → 1.2.1): Bug fixes, no breaking changes
    • Minor (1.2.0 → 1.3.0): New features, no breaking changes
    • Major (1.2.0 → 2.0.0): Breaking changes
  2. Build the package to ensure everything compiles:

    npm run build
  3. Verify the package contents before publishing:

    npm pack --dry-run

    This shows what will be included in the published package. Verify:

    • build/ directory is included
    • build/icons.es.js exists
    • build/index.d.ts exists
    • Source files (src/) are NOT included
  4. Publish to NPM:

    npm publish --access public

    Or for a beta/alpha release:

    npm publish --tag beta --access public
  5. Verify the publication:

    • Check the package page: https://www.npmjs.com/package/@xola/icons
    • Test installation in a separate project:
      npm install @xola/icons@latest

Post-Publishing

  1. Tag the release in Git:

    git tag -a icons-v1.2.0 -m "Release @xola/icons v1.2.0"
    git push origin icons-v1.2.0
  2. Update consuming projects that use @xola/icons:

    npm update @xola/icons

Package Configuration

This package is configured as ESM-only:

{
    "type": "module",
    "exports": {
        ".": {
            "types": "./build/index.d.ts",
            "import": "./build/icons.es.js"
        }
    }
}

Troubleshooting

"Cannot find module" errors

Ensure your consuming project supports ESM:

  • Add "type": "module" to your package.json, or
  • Use .mjs file extensions, or
  • Configure your bundler (Vite, Webpack, etc.) to handle ESM

TypeScript errors

Ensure your tsconfig.json has:

{
    "compilerOptions": {
        "moduleResolution": "node",
        "esModuleInterop": true
    }
}

License

See the ui-kit repository for license information.