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

lib-admin-devsoft

v0.1.5

Published

Librería de componentes

Readme

Lib Admin - Component Library

Una potente librería de componentes React construida con Ant Design y Tailwind CSS, diseñada para crear paneles de administración de forma rápida, estética y responsive.

🚀 Instalación

Instala la librería usando npm:

npm install lib-admin-devsoft

O usando yarn:

yarn add lib-admin-devsoft

🛠️ Configuración Inicial

Para que los estilos y los componentes se visualicen correctamente, sigue estos pasos:

1. Importar Estilos Requeridos

En tu archivo principal de entrada (ej. main.tsx o App.tsx), importa el CSS de la librería:

import "lib-admin-devsoft/styles"; // Estilos base de la librería
import "antd/dist/reset.css"; // Reseteo de Ant Design (si no lo tienes)

2. Configurar Tailwind CSS

Si usas Tailwind en tu proyecto, añade la ruta de la librería a tu configuración para que los estilos de los componentes se generen correctamente:

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/lib-admin-devsoft/dist/**/*.{js,ts,jsx,tsx}", // Añade esta línea
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

📦 Componentes Principales

TableComp (Tabla Responsive)

Un componente de tabla avanzado con búsqueda integrada, paginación y optimización para móviles.

import { TableComp } from "lib-admin-devsoft/components";

const columns = [
  { title: "Nombre", dataIndex: "name", key: "name" },
  { title: "Email", dataIndex: "email", key: "email" },
  { title: "Rol", dataIndex: "role", key: "role" },
];

const MyPage = () => (
  <TableComp
    columns={columns}
    dataSource={myData}
    searchPlaceholder="Buscar usuarios..."
    showSearch={true}
  />
);

DashboardComp

Componentes listos para mostrar estadísticas y gráficos.

import { DashboardCard } from "lib-admin/components";

const Stats = () => (
  <DashboardCard title="Usuarios Totales" value={1500} type="success" />
);

🔌 Providers

La librería incluye contextos para manejar el layout y suscripciones de forma centralizada.

AdminLayoutProvider

Envuelve tu aplicación para habilitar la funcionalidad del panel:

import { AdminLayoutProvider } from "lib-admin/provider";

function App() {
  return (
    <AdminLayoutProvider>
      <Router />
    </AdminLayoutProvider>
  );
}

📂 Estructura de Exportación

Puedes importar elementos de forma específica para reducir el bundle size:

  • lib-admin/components: Todos los componentes UI.
  • lib-admin/provider: Contextos y proveedores.
  • lib-admin/interfaces: Tipos de TypeScript.
  • lib-admin/styles: Archivo CSS compilado.

📝 Scripts Útiles (Para Desarrollo)

Si estás trabajando dentro del repo de la librería:

  • npm run dev: Compila en modo "watch".
  • npm run build: Genera la versión de producción en la carpeta /dist.
  • npm run build:fresh: Limpia la caché y compila desde cero.

Hecho con ❤️ por DevSoft.