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

@altrex-ui/icons

v1.0.0

Published

Altrex Icons - SVG icon library

Downloads

23

Readme

Altrex Icons

1,585 free SVG icons organized into three categories: Free, Brand, and Flag icons.

Altrex Icons is an open-source icon library providing high-quality SVG icons optimized for web use. All icons are available as SVG sprites and Iconify JSON format for easy integration into any project.

Credits: This library is built upon CoreUI Icons by creativeLabs Łukasz Holeczek. The original icon designs and source SVG files are from the CoreUI Icons project. We've restructured the build system to follow modern icon library patterns (SVG sprites + Iconify format) while maintaining full attribution to the original creators.

Table of Contents

Installation

NPM

npm install @altrex/icons

Yarn

yarn add @altrex/icons

Icon Categories

The library includes 1,585 icons organized into three categories:

| Category | Count | Prefix | Description | |----------|-------|--------|-------------| | Generic | 556 icons | generic- | General-purpose UI icons (linear style) | | Brand | 830 icons | brand- | Company and product logos | | Flag | 199 icons | flag- | Country flags |

Usage

SVG Sprites

The most efficient way to use icons in web applications. All 1,585 icons are included in a single sprite file.

HTML Usage

<!-- Generic icons -->
<svg width="24" height="24">
  <use href="node_modules/@altrex/icons/altrex.svg#generic-apple"/>
</svg>

<!-- Brand icons -->
<svg width="24" height="24">
  <use href="node_modules/@altrex/icons/altrex.svg#brand-twitter"/>
</svg>

<!-- Flag icons -->
<svg width="24" height="24">
  <use href="node_modules/@altrex/icons/altrex.svg#flag-us"/>
</svg>

ES Modules (Webpack, Vite, etc.)

import altrexSprite from '@altrex/icons/altrex.svg';

Iconify JSON

Iconify format enables framework-agnostic icon usage and is compatible with popular icon libraries.

Import Iconify JSON

// ES Modules
import genericIcons from '@altrex/icons/iconify/altrex-generic.json';
import brandIcons from '@altrex/icons/iconify/altrex-brand.json';
import flagIcons from '@altrex/icons/iconify/altrex-flag.json';

Use with Iconify Libraries

React:

import { Icon } from '@iconify/react';
import genericIcons from '@altrex/icons/iconify/altrex-generic.json';

// Register icon set
import { addCollection } from '@iconify/react';
addCollection(genericIcons);

// Use icons
<Icon icon="altrex-generic:generic-apple" />

Vue:

<template>
  <Icon icon="altrex-generic:generic-apple" />
</template>

<script setup>
import { Icon, addCollection } from '@iconify/vue';
import genericIcons from '@altrex/icons/iconify/altrex-generic.json';

addCollection(genericIcons);
</script>

Svelte:

<script>
import { Icon, addCollection } from '@iconify/svelte';
import genericIcons from '@altrex/icons/iconify/altrex-generic.json';

addCollection(genericIcons);
</script>

<Icon icon="altrex-generic:generic-apple" />

Direct Icon Access

Individual SVG Files

All source SVG files are available in the icons/ directory:

icons/
├── generic/    # 556 SVG files
├── brand/      # 830 SVG files
└── flag/       # 199 SVG files

Icon Inventory (JSON)

Use icons.json to programmatically access icon names:

import icons from '@altrex/icons/icons.json';

console.log(icons.generic);  // ["generic-3d", "generic-4k", "generic-account-logout", ...]
console.log(icons.brand);    // ["brand-500px", "brand-abstract", ...]
console.log(icons.flag);     // ["flag-ad", "flag-ae", ...]

Build from Source

Prerequisites

  • Node.js >= 24
  • npm or yarn

Build Steps

# Install dependencies
npm install

# Run full build
npm run build

Build Scripts

| Script | Description | |--------|-------------| | npm run clean | Remove generated files | | npm run optimize | Optimize SVG files with SVGO | | npm run sprite | Generate icons.json inventory | | npm run json | Create SVG sprite files | | npm run iconify | Export Iconify JSON format | | npm run build | Run all build steps |

Build Pipeline

The build process follows these steps:

  1. Optimize (svgo) - Cleans and optimizes all SVG files
  2. Inventory (createIconsJson.cjs) - Generates icons.json with categorized icon names
  3. Sprite (createSvgSprite.js) - Creates single SVG sprite (altrex.svg) with all 1,585 icons
  4. Iconify (exportIconify.js) - Exports Iconify JSON format (iconify/ directory)

Project Structure

altrex-icons/
├── icons/                          # Source SVG files (1,585 files)
│   ├── generic/                    # 556 generic icons
│   ├── brand/                      # 830 brand icons
│   └── flag/                       # 199 flag icons
├── iconify/                        # Iconify JSON exports
│   ├── altrex-generic.json        # Generic icons in Iconify format
│   ├── altrex-brand.json          # Brand icons in Iconify format
│   └── altrex-flag.json           # Flag icons in Iconify format
├── scripts/                        # Build scripts
│   ├── createIconsJson.cjs        # Generate icons.json
│   ├── createSvgSprite.js         # Generate SVG sprite
│   └── exportIconify.js           # Generate Iconify JSON
├── altrex.svg                      # SVG sprite with all 1,585 icons
├── icons.json                      # Icon inventory metadata
├── svgo.config.mjs                # SVG optimization config
├── package.json                    # NPM package config
└── README.md                       # This file

Generated Files

After running npm run build, the following files are generated:

| File | Size | Description | |------|------|-------------| | altrex.svg | ~4.8 MB | SVG sprite with all 1,585 icons | | icons.json | ~31 KB | Icon inventory (categorized names) | | iconify/altrex-generic.json | ~411 KB | Iconify JSON (generic icons) | | iconify/altrex-brand.json | ~1.4 MB | Iconify JSON (brand icons) | | iconify/altrex-flag.json | ~3.3 MB | Iconify JSON (flag icons) |

Icon Naming Convention

Icons follow a consistent naming pattern:

  • Generic icons: generic-{name} (e.g., generic-apple, generic-airplane-mode)
  • Brand icons: brand-{name} (e.g., brand-twitter, brand-facebook)
  • Flag icons: flag-{code} (e.g., flag-us, flag-gb, flag-fr)

Styling Icons

Size Control

/* CSS */
svg {
  width: 24px;
  height: 24px;
}
<!-- HTML -->
<svg width="24" height="24">
  <use href="altrex.svg#generic-apple"/>
</svg>

Color Control

Icons use var(--ci-primary-color, currentColor) which allows easy color customization:

/* Method 1: currentColor (inherits from parent) */
.icon-wrapper {
  color: #ff6b6b;
}

/* Method 2: CSS variable */
.icon-wrapper {
  --ci-primary-color: #4dabf7;
}

Responsive Icons

.icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.large-icon {
  font-size: 2rem;
}

Browser Support

SVG sprites are supported in all modern browsers:

  • Chrome/Edge (latest)
  • Firefox (latest)
  • Safari (latest)
  • iOS Safari (latest)
  • Android Browser (latest)

For older browsers, consider using a polyfill like svg4everybody.

Credits & Attribution

This library is based on CoreUI Icons created by:

All original icon designs are from the CoreUI Icons project. This derivative work restructures the build system and distribution format while maintaining the original icon artwork.

License

Code & Build System

MIT License - Copyright (c) 2026 Altrex

The build scripts, configuration files, and distribution format are licensed under the MIT License.

Icon Artwork

The icon artwork follows the original CoreUI Icons licensing:

  • CoreUI Icons Free (Linear icons) - CC BY 4.0 License

    • All generic icons (generic-* prefix) are licensed under Creative Commons Attribution 4.0
    • You can use them for commercial and non-commercial projects
    • Attribution to CoreUI is appreciated but not required
  • Brand Icons (brand-* prefix)

    • Brand icons are trademarks of their respective owners
    • Use of these trademarks does not indicate endorsement
    • Only use brand logos to represent the actual company/product/service
  • Flag Icons (flag-* prefix)

    • Flag icons are in the public domain (CC0 1.0 Universal)

For complete licensing details, see the original CoreUI Icons repository.


Original Icon Library: CoreUI Icons Original Documentation: coreui.io/icons