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

@core-tecnologias-empresariales/core-shell

v0.1.0

Published

Estructura general de aplicaciones (AppShell, Header, Sidebar, Breadcrumb, PageHeader) para el ecosistema Core Tecnología Empresarial. Compone core-ui, filtra navegación con core-permissions.

Readme

@core-tecnologias-empresariales/core-shell

Estructura general de las aplicaciones del ecosistema Core Tecnología Empresarial: AppShell, Header, Sidebar (con Drawer mobile), Breadcrumb, PageHeader, EnvironmentIndicator. Ver CLAUDE.md §24.

Para qué sirve

Ningún producto (CorePyme, Core Tributario, Core Contador) implementa su propio AppShell, Sidebar, Header ni Breadcrumb. Este paquete compone las primitivas de core-ui (Button, Sheet) y filtra la navegación con core-permissions — nunca es la frontera de seguridad, solo UX; la autorización real vive en el backend.

Para qué NO sirve

No define rutas, no sabe qué es un módulo de negocio, no reemplaza core-dashboard (que se monta dentro del Content del Shell) ni core-export (Shell da el botón [Exportar ▾], pero no genera archivos).

Instalación

pnpm add @core-tecnologias-empresariales/core-shell @core-tecnologias-empresariales/core-ui @core-tecnologias-empresariales/core-permissions

Uso

import { AppShell, EnvironmentIndicator, type NavigationItem } from "@core-tecnologias-empresariales/core-shell";
import { LayoutDashboard, ShoppingCart } from "lucide-react";

const items: NavigationItem[] = [
  { id: "dashboard", label: "Dashboard", href: "/dashboard", icon: LayoutDashboard },
  {
    id: "sales",
    label: "Ventas",
    icon: ShoppingCart,
    permission: "sales.read",
    children: [{ id: "sales-list", label: "Documentos", href: "/ventas/documentos", permission: "sales.read" }],
  },
];

<AppShell
  header={{
    brand: <span className="font-semibold">CorePyme</span>,
    indicator: <EnvironmentIndicator environment="sandbox" />,
  }}
  sidebar={{ items, currentPath: "/ventas/documentos", hasPermission: (p) => userPermissions.has(p) }}
>
  <PageHeader title="Documentos de venta" />
  {/* contenido de la página */}
</AppShell>;

Componentes

  • AppShell — layout Header / Sidebar / Content / Footer, cada pieza opcional. Coordina el Drawer mobile del Sidebar (el trigger vive en el Header).
  • Header — slots (brand, actions, indicator), sin variantes cerradas: el producto compone lo que necesita.
  • Sidebar / MobileSidebar — navegación declarativa (NavigationItem), filtrada por hasPermission, con submenús colapsables. MobileSidebar reutiliza Sheet de core-ui.
  • Breadcrumb — ruta completa en desktop/tablet, ‹ anterior en mobile.
  • PageHeader — título, descripción, icono, breadcrumb, acciones.
  • EnvironmentIndicator — no renderiza nada en production; badge visible en sandbox/certification.
  • filterNavigation / isActiveRoute — helpers puros, reutilizables fuera de Sidebar si un producto arma su propia navegación.

Deferido (sin consumidor real todavía)

  • Layouts de página reutilizables (Standard/Dashboard/List/Detail/Form/Split Page) — se agregan cuando core-dashboard y el primer producto los necesiten.
  • Expand-on-hover animado del Sidebar en modo collapsed (tablet) — hoy es estático, lo controla el producto.
  • Header con selector de empresa/tenant, búsqueda global, menú de usuario como sub-componentes propios — cada producto los arma con core-ui y los pasa vía actions.

Seguridad

El permission en NavigationItem solo oculta el item en el Sidebar. Nunca reemplaza la autorización del backend — es UX, no seguridad (CLAUDE.md §24, §26).