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

balzer-icon

v0.16.1

Published

![npm](https://img.shields.io/npm/v/balzer-icon) ![npm downloads](https://img.shields.io/npm/dm/balzer-icon) ![build](https://img.shields.io/github/actions/workflow/status/CesarBalzer/balzer-icon/release.yml) ![license](https://img.shields.io/npm/l/balzer

Readme

Balzer Icon

npm npm downloads build license

Biblioteca oficial de ícones React do ecossistema Balzer.

Compatível com React 18+, SVG otimizado, tree-shakable, build em ESModule e UMD, com documentação automática via GitHub Pages.

Os SVGs da biblioteca devem usar currentColor em fill e/ou stroke para responder corretamente à prop color do componente Icon.

Homepage: https://cesarbalzer.github.io/balzer-icon/

Package NPM: https://www.npmjs.com/package/balzer-icon/


Instalação

yarn add balzer-icon

ou

npm install balzer-icon

Uso

import { Icon } from 'balzer-icon';

export default function Example() {
  return (
    <Icon name="home" size={24} color="#000" />
  );
}

Estrutura do projeto

balzer-icon/
├── lib/                # Componentes principais
│   └── Icon.tsx
├── lib/svg/           # SVGs base e índice gerado
├── utils/
│   └── generateNames.js  # Script de geração automática
├── docs/              # Documentação (GitHub Pages)
├── dist/              # Build publicado no npm
├── vite.config.ts
├── vite.config.docs.ts
├── package.json

Como adicionar um novo ícone

1. Adicionar o SVG

Coloque o arquivo em:

lib/svg/

Exemplo:

lib/svg/user.svg

Importante:

<path fill="currentColor" />

ou

<path stroke="currentColor" />

Evite cores fixas como fill="#000" ou stroke="#000", porque isso impede que a prop color do componente altere a cor do ícone.


2. Gerar o mapeamento

yarn names

Esse comando atualiza automaticamente a lista de ícones.


3. Testar localmente

yarn dev

Ou visualizar docs:

yarn preview:docs

Build

Build da biblioteca:

yarn build

Output:

dist/

Build da documentação:

yarn build:docs

Output:

docs/

Deploy

Deploy automático ocorre em:

  • push na branch main
  • criação de release
  • execução manual do workflow

Versionamento

Este projeto usa Conventional Commits.

feat

Nova funcionalidade

git commit -m "feat: add new icons"

fix

Correção

git commit -m "fix: correct icon rendering"

chore

Manutenção

git commit -m "chore: update dependencies"

docs

Documentação

git commit -m "docs: update readme"

refactor

Refatoração

git commit -m "refactor: improve icon loader"

breaking change

git commit -m "feat!: change icon API"

Fluxo completo

# adicionar ícone
lib/svg/new-icon.svg

# gerar nomes
yarn names

# testar
yarn dev

# commit
git add .
git commit -m "feat: add new icon"

# push
git push origin main

Desenvolvimento local

yarn install
yarn dev

Arquitetura interna

A biblioteca é construída usando:

  • Vite (build tool)
  • TypeScript
  • Rollup (via Vite)
  • SVG como fonte primária
  • geração automática de tipos
  • output em ESModule e UMD

Fluxo interno:

SVG → generateNames → Icon component → Vite build → dist → npm publish

React é definido como peerDependency para evitar duplicação.


Contribuição

Passos:

git clone https://github.com/CesarBalzer/balzer-icon
cd balzer-icon

yarn install

Criar branch:

git checkout -b feat/new-icons

Adicionar ícones e gerar nomes:

yarn names

Commit:

git commit -m "feat: add new icons"

Push:

git push origin feat/new-icons

Criar Pull Request.


Licença

MIT


Autor: Cesar Balzer