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

@zydon/common-csr

v2.1.25

Published

Zydon common resources for React projects (only Client-Side Rendering (CSR))

Readme

Commons CSR (@zydon/common-csr)

Biblioteca de componentes e hooks compartilhados para projetos React com Client-Side Rendering (CSR) do ecossistema Zydon. Complementa o pacote @zydon/common com recursos especificos para renderizacao no lado do cliente.

Proposito

Fornecer componentes de UI reutilizaveis (navegacao, editores rich text, editores SQL) e hooks utilitarios que sao exclusivos para aplicacoes CSR, evitando duplicacao de codigo entre os microfrontends da Zydon.

Funcionalidades Principais

  • Componente Image: Imagem otimizada construida sobre react-lazy-load-image-component com lazy loading
  • Navegacao: Componentes de menu em tres variantes (NavSectionHorizontal, NavSectionMini, NavSectionVertical)
  • Editor rich text: Editor de texto rico construido sobre react-quill com versoes standalone e integrada a formularios
  • Editor SQL: Editor de queries SQL com highlight, disponivel como campo de formulario react-hook-form
  • Hook useActiveLink: Verifica se uma rota especifica esta ativa no React Router

Arquitetura e Stack

| Categoria | Tecnologia | |-----------|-----------| | Framework | React | | Linguagem | TypeScript | | UI | MUI (Material UI) | | Roteamento | React Router DOM | | Imagens | react-lazy-load-image-component | | Editor rich text | react-quill | | Formularios | react-hook-form |

Componentes Exportados

Componentes de UI

| Componente | Descricao | |-----------|-----------| | Image | Componente de imagem com lazy loading. Priorize este componente ao renderizar imagens | | Editor | Editor rich text construido sobre react-quill | | EditorField | Editor rich text como campo de formulario react-hook-form | | SQLEditor | Editor SQL construido sobre react-quill | | SQLEditorField | Editor SQL como campo de formulario react-hook-form |

Componentes de Navegacao

| Componente | Descricao | |-----------|-----------| | NavSectionHorizontal | Itens de navegacao dispostos horizontalmente | | NavSectionMini | Itens de navegacao em versao compacta/mini | | NavSectionVertical | Itens de navegacao dispostos verticalmente |

Hooks

| Hook | Descricao | |------|-----------| | useActiveLink | Retorna se a rota passada como parametro esta ativa ou nao |

Como Utilizar

Instalacao

yarn add @zydon/common-csr
yarn add @emotion/react @emotion/styled @mui/material react-router-dom
yarn add @types/react-lazy-load-image-component -D

Desenvolvimento

Pre-requisitos

  • Node.js
  • Yarn

Testando localmente

  1. Clone o repositorio
  2. Crie uma branch para suas alteracoes
  3. Realize as implementacoes/correcoes
  4. Compile e crie o link local:
    yarn build
    npm link
  5. Em outro projeto, conecte o pacote local:
    npm link @zydon/common-csr
  6. Utilize o componente App.tsx para testar implementacoes de forma pratica

Publicacao

Apos merge na branch main, as alteracoes sao publicadas automaticamente no npm.

Comandos

| Comando | Descricao | |---------|-----------| | yarn build | Compila o pacote | | npm link | Cria link simbolico para testes locais |