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

decathlon-ui

v0.3.47

Published

Biblioteca de componentes React Native com Storybook e documentação via GitHub Pages.

Readme

My React Native Library

Biblioteca de componentes React Native com Storybook para documentação hospedada no GitHub Pages.

Scripts importantes

| Script | Descrição | | ------ | --------- | | npm run storybook | Inicia o Storybook em modo desenvolvimento (porta 6006). | | npm run build-storybook | Gera a versão estática em docs/ para publicar no GitHub Pages. | | npm run build | Compila os componentes TypeScript para dist/. Utilizado antes de publicar no npm. | | npm run generate-icons | Gera componentes React Native a partir dos arquivos SVG em src/icons/foundations/ e atualiza automaticamente o index.ts com os exports. | | npm run generate-icon-exports | Atualiza apenas o arquivo src/icons/index.ts com os exports dos ícones (adiciona sufixo "Icon" automaticamente). |

Gerando Ícones

Para adicionar novos ícones à biblioteca:

  1. Coloque os arquivos .svg na pasta src/icons/foundations/
  2. Execute npm run generate-icons

O script irá:

  • Converter os arquivos SVG em componentes React Native
  • Gerar automaticamente os exports no src/icons/index.ts com o sufixo "Icon"
  • Configurar as props size e color automaticamente

Exemplo: O arquivo star.svg será convertido em um componente e exportado como StarIcon.

Publicação

  1. Execute npm run build para gerar a pasta dist.
  2. Faça login no npm (npm login).
  3. npm publish – apenas o conteúdo de dist será incluído (veja campo files em package.json).

GitHub Pages

Após rodar npm run build-storybook, faça commit da pasta docs/. No repositório do GitHub, configure Settings → Pages para servir a partir da pasta docs da branch main.

Uso no React Native

npm install my-react-native-library
import { Button } from 'my-react-native-library';

<Button title="Clique-me" onPress={() => console.log('oi')} />

Roadmap

  • [ ] Adicionar mais componentes
  • [ ] Testes automatizados

MIT License