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

@marsaude/sira-components

v1.0.9

Published

```markdown # Sira UI Components (@marsaude/sira-components)

Readme

# Sira UI Components (@marsaude/sira-components)

Biblioteca de componentes Angular reutilizáveis para o Design System Sira.

## 🛠️ Build e Desenvolvimento

Para compilar a biblioteca localmente:

```bash
# Compilar uma vez
ng build @marsaude/sira-components

# Compilar em modo "watch" (recompila ao salvar arquivos)
ng build @marsaude/sira-components --watch

Os arquivos compilados serão gerados na pasta dist/marsaude/sira-components.


📦 Instalação

Via NPM (Recomendado)

Para instalar a versão mais recente publicada no registro:

npm install @marsaude/sira-components

Caso tenha conflitos de versão do Angular, use:

npm install @marsaude/sira-components --legacy-peer-deps

Via Arquivo Local (Para testes antes de publicar)

Se você gerou um arquivo .tgz localmente (npm pack), instale assim:

npm install ./caminho/para/dist/marsaude/sira-components/marsaude-sira-components-1.0.X.tgz

🚀 Como Usar

1. Importar no Componente (Standalone)

Importe os componentes diretamente no imports do seu componente Angular:

import { Component } from '@angular/core';
import { AlertComponent, NavCardComponent } from '@marsaude/sira-components';

@Component({
  selector: 'app-home',
  standalone: true,
  imports: [AlertComponent, NavCardComponent],
  template: `
    <div siraAlert theme="info" title="Bem-vindo">
      Componentes carregados com sucesso!
    </div>
  `
})
export class HomeComponent {}

2. Importar os Estilos (SCSS)

Para que os componentes tenham a aparência correta, adicione o import global no seu arquivo styles.scss da aplicação:

/* No arquivo src/styles.scss */
@import '@marsaude/sira-components/styles';

☁️ Publicação no NPM

Pré-requisitos

Certifique-se de que você está logado ou com o token configurado.

Passo a Passo para Publicar

  1. Atualize a versão:
# Opções: patch (1.0.0 -> 1.0.1), minor (1.0.0 -> 1.1.0) ou major (1.0.0 -> 2.0.0)
cd projects/marsaude/sira-components
npm version patch
cd ../../..
  1. Faça o Build:
ng build @marsaude/sira-components
  1. Publique:
cd dist/marsaude/sira-components
npm publish --access public

🔑 Renovação do Token de Acesso (Granular Token)

Utilizamos Granular Access Tokens para publicar sem precisar digitar OTP (2FA) a cada comando. Esses tokens expiram e precisam ser renovados periodicamente.

Quando o token expirar (Erro 401/403 no publish):

  1. Acesse npmjs.com e faça login.
  2. Clique na Foto de Perfil > Access Tokens.
  3. Clique em Generate New Token > Granular Access Token.
  4. Configure assim:
  • Name: "Computador [Seu Nome] - Publish"

  • Expiration: 90 dias (ou Custom)

  • Permissions:

  • Packages and scopes: Selecione @marsaude (ou sua organização).

  • Permissions: Read and write.

  • ✅ Bypass 2FA requirements: Marque esta opção (obrigatório para publish direto sem digitar código OTP).

  1. Clique em Generate Token e copie o código (npm_...).

Atualizar no computador local:

No terminal, rode o comando abaixo substituindo pelo novo token:

npm config set //registry.npmjs.org/:_authToken=npm_seu_novo_token_aqui

Pronto! Você pode voltar a publicar normalmente.