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

@janderdev/j-lib

v1.0.10

Published

J-lib é uma biblioteca de componentes reutilizáveis em React para facilitar o desenvolvimento de interfaces de usuário. Ela oferece uma série de componentes configuráveis para simplificar a criação de interfaces flexíveis e acessíveis.

Readme

J-lib

J-lib é uma biblioteca de componentes reutilizáveis em React para facilitar o desenvolvimento de interfaces de usuário. Ela oferece uma série de componentes configuráveis para simplificar a criação de interfaces flexíveis e acessíveis.

Instalação

Para adicionar J-lib ao seu projeto, execute o seguinte comando no terminal:

npm install @janderdev/j-lib
# ou
yarn add @janderdev/j-lib

Componentes

J_input

O J_input é um campo de entrada altamente configurável com diversos adornos à esquerda e à direita, além de várias opções de personalização.

Uso

Aqui está um exemplo de como usar o componente J_input da biblioteca:

import React, { useState } from "react";
import { J_Input } from "@janderdev/j-lib";

function App() {
  const [inputValue, setInputValue] = useState<string>("");

  const handleChange = (e: string) => {
    setInputValue(e);
  };

  const changeRightAdornment = () => {
    alert("Pesquisando por: " + inputValue);
  };

  return (
    <div className="container">
      <J_Input
        label="Pesquisar"
        value={inputValue}
        rightAdornment
        rightAdornmentText="🔎"
        change={handleChange}
        rightAdornmentClick={changeRightAdornment}
        rightAdornmentStyleProps={{ backgroundColor: "lightgray" }}
      />
    </div>
  );
}

| Nome do Parâmetro | Tipo | Descrição | |----------------------|---------------------|---------------------------------------------------------------------------| | label | string | O texto exibido como rótulo do input. | | required | boolean | Exibe um * se o campo é obrigatório. | | value | string | O valor atual do input. | | change | function | Função de callback chamada quando o valor do input é alterado. | | placeholder | string | Texto exibido quando o input está vazio. | | widthInput | number | Largura do input. | | disabled | boolean | Define se o input está desabilitado. | | leftAdornment | boolean | Exibe um adorno à esquerda do input. | | rightAdornment | boolean | Exibe um adorno à direita do input. | | leftAdornmentText | string | Texto exibido no adorno esquerdo. | | rightAdornmentText | string | Texto exibido no adorno direito. | | leftAdornmentIcon | ReactNode | Ícone exibido no adorno esquerdo. | | rightAdornmentIcon | ReactNode | Ícone exibido no adorno direito. | | leftAdornmentClick | function | Função de callback chamada ao clicar no adorno esquerdo. | | rightAdornmentClick| function | Função de callback chamada ao clicar no adorno direito. | | min | number | Valor mínimo do input. | | max | number | Valor máximo do input. | | minLength | number | Comprimento mínimo do valor inserido. | | maxLength | number | Comprimento máximo do valor inserido. | | multiline | boolean | Define se o input é multilinha (texto). | | center | boolean | Define se o texto no input deve ser centralizado. | | inputStyleProps | React.CSSProperties| Estilos adicionais para o input. | | labelStyleProps | React.CSSProperties| Estilos adicionais para a label. | | leftAdornmentStyleProps | React.CSSProperties| Estilos adicionais para o adorno esquerdo. | | rightAdornmentStyleProps| React.CSSProperties| Estilos adicionais para o adorno direito. | | mask | string | Define a máscara de formatação do campo. Utilize # para representar dígitos numéricos. Exemplo: (##) #####-#### para um número de telefone. |