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

@ev-forge/icons

v1.0.0

Published

A lightweight icon library delivering Font Awesome's high-quality icons via a framework-agnostic Web Component, with perfect, icon-level tree-shaking.

Readme

@ev-forge/icons

NPM Version Bundle Size License: MIT

A lightweight icon library delivering Font Awesome's high-quality icons via a framework-agnostic Web Component, with perfect, icon-level tree-shaking.


✨ Philosophy

@ev-forge/icons is designed with three core principles:

  1. Performance First: The library uses an architecture that allows for perfect, icon-level tree-shaking. Your final bundle will only include the icons you explicitly import, resulting in the smallest possible footprint.
  2. Framework Agnostic: Built with native Web Components, @ev-forge/icons works seamlessly in any environment—React, Svelte, Vue, Astro, or simple HTML—without wrappers or overhead.
  3. Extensible by the community: Propose new icons to create the most complete icon library with high quality.

🏁 Get Started

In Vite/React

  1. Installation
npm i @ev-forge/icons
  1. Add types for web component into tsconfig.json
{
  "include": ["node_modules/@ev-forge/icons/dist/global.d.ts"]
}
  1. Import and Use
import { solidHouse } from "@ev-forge/icons";

function MyApp() {
  return (
    <div>
      <ev-icon svg={solidHouse} class="w-6 text-blue-500" />
    </div>
  );
}

In NextJs

npm i @ev-forge/icons
  1. Add types for web component, create a file ev-forge-icons.d.ts and copy inside
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="node_modules/@ev-forge/icons/dist/global.d.ts" />
  1. (Optional) For Next.js with Server-Side Rendering (SSR): To ensure icons render correctly, you must register the component library on the client-side. Create the file IconLibraryRegistry.tsx and paste the following code:
"use client";

import { useEffect } from "react";

export const IconLibraryRegistry = () => {
  useEffect(() => {
    import("@ev-forge/icons");
  }, []);
  return null;
};
  1. Import and Use
// 1. import icons
import { solidHouse } from "@ev-forge/icons";

// 2. use them in ev-icon
function MyApp() {
  return (
    <div>
      <ev-icon svg={solidHouse} class="w-6 text-blue-500" />
    </div>
  );
}

In Astro/React

npm i @ev-forge/icons
  1. Add types for web component into tsconfig.json
{
  "include": ["node_modules/@ev-forge/icons/dist/global.d.ts"]
}
  1. (Optional) For Astro with Server-Side Rendering (SSR): To ensure icons render correctly, you must register the component library on the client-side. Add the script into your Layout
<script>
  import "@ev-forge/icons";
</script>
  1. Import and Use
// ℹ️ example in react:
import { solidHouse } from "@ev-forge/icons";

function MyApp() {
  return (
    <div>
      <ev-icon svg={solidHouse} class="w-6 text-blue-500" />
    </div>
  );
}
// ℹ️ example in astro Jsx:
---
import { solidRocket } from "@ev-forge/icons";

import Layout from "../layouts/Layout.astro";
---

<Layout>
  <a href="/" class="p-2 flex items-center gap-2">
  Get Started <ev-icon svg={solidRocket}></ev-icon>
  </a>
</Layout>

🎨 Styling

Styling ev-icon is simple and uses the standard CSS properties you already know. There are no special variables to learn.

The component is a display: inline-flex element that defaults to 1em width and height, scaling with the surrounding font size. The internal SVG will automatically inherit the text color.

Using Utility Classes (like Tailwind CSS)

Apply size and color classes directly to the component.

<!-- A 24px (w-6) red icon -->
<ev-icon svg="{solidRadio}" class="w-6 text-red-500" />

Using a Global Stylesheet

You can set default styles for all icons in your application.

/* In your main index.css */
ev-icon {
  width: 1.5rem; /* Default size for all icons */
  height: 1.5rem;
  color: #333;
}

ev-icon.success {
  color: green;
}

💡 Advanced Usage

Using in Plain HTML

For projects without a JavaScript bundler, we recommend copying the raw SVG content directly into your HTML. This is often more performant than loading a JavaScript library for simple use cases. A full list of icons can be found on the Font Awesome website.

📄 License

The source code for @ev-forge/icons is released under the MIT License.

The base icons are provided by Font Awesome Free and are licensed under CC BY 4.0.