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

@apiux-ds/design-system

v2.0.0

Published

Sistema de diseño Apiux con Web Components - 8 componentes optimizados para agentes de IA

Readme

Apiux Design System

Web Components optimizados para agentes de IA

Sistema de diseño basado en el Brandbook Apiux 2024. Componentes encapsulados con Shadow DOM, sin dependencias externas.

🚀 Instalación

npm install @apiux/design-system

📦 Uso Básico

Opción 1: Importar todo

import '@apiux/design-system';

Opción 2: Importar componentes específicos

import '@apiux/design-system/button';

HTML básico

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="node_modules/@apiux/design-system/tokens/tokens.css">
  <script type="module" src="node_modules/@apiux/design-system/src/index.js"></script>
</head>
<body>
  <apiux-button variant="primary">Click me</apiux-button>
</body>
</html>

🎨 Design Tokens

Colores Principales

| Token | Valor | Uso | |-------|-------|-----| | --apiux-color-yellow | #FFCE00 | Acción principal, marca | | --apiux-color-black | #111111 | Texto, acción secundaria | | --apiux-color-white | #FFFFFF | Fondos, contraste | | --apiux-color-purple | #4728BD | Acento, gradientes |

Tipografía

--apiux-font-family: 'Montserrat', sans-serif;
--apiux-font-weight-regular: 400;
--apiux-font-weight-semibold: 600;
--apiux-font-weight-bold: 700;

Espaciado

--apiux-space-2: 0.5rem;   /* 8px */
--apiux-space-4: 1rem;     /* 16px */
--apiux-space-6: 1.5rem;   /* 24px */
--apiux-space-8: 2rem;     /* 32px */

🧩 Componentes

apiux-button

Botón con 4 variantes y 3 tamaños.

Atributos

| Atributo | Tipo | Default | Opciones | |----------|------|---------|----------| | variant | string | "primary" | "primary" | "secondary" | "outline" | "ghost" | | size | string | "md" | "sm" | "md" | "lg" | | disabled | boolean | false | - | | full-width | boolean | false | - |

Ejemplos

<!-- Primary button (amarillo #FFCE00) -->
<apiux-button variant="primary">
  Acción Principal
</apiux-button>

<!-- Secondary button (negro #111111) -->
<apiux-button variant="secondary" size="lg">
  Acción Secundaria
</apiux-button>

<!-- Outline button -->
<apiux-button variant="outline" size="sm">
  Cancelar
</apiux-button>

<!-- Ghost button -->
<apiux-button variant="ghost">
  Volver
</apiux-button>

<!-- Disabled -->
<apiux-button disabled>
  No disponible
</apiux-button>

<!-- Full width -->
<apiux-button full-width>
  Enviar Formulario
</apiux-button>

🤖 Guía para Agentes de IA

Selección de Variantes

SITUACIÓN → VARIANTE
─────────────────────────────────────
Acción principal/CTA → variant="primary"
Acción secundaria → variant="secondary"  
Cancelar/Volver → variant="outline"
Navegación sutil → variant="ghost"
No disponible → disabled

Patrones Comunes

Formulario

<form>
  <apiux-button variant="primary" full-width>
    Guardar
  </apiux-button>
  <apiux-button variant="outline" full-width>
    Cancelar
  </apiux-button>
</form>

Grupo de acciones

<div style="display: flex; gap: var(--apiux-space-4);">
  <apiux-button variant="primary">Confirmar</apiux-button>
  <apiux-button variant="secondary">Editar</apiux-button>
  <apiux-button variant="outline">Cancelar</apiux-button>
</div>

Hero section

<section>
  <h1>Título Principal</h1>
  <apiux-button variant="primary" size="lg">
    Comenzar Ahora
  </apiux-button>
</section>

Reglas de Composición

  1. Un solo primary por sección: Máximo un botón variant="primary" visible simultáneamente
  2. Jerarquía visual: Primary > Secondary > Outline > Ghost
  3. Tamaños consistentes: En un grupo, usa el mismo size
  4. Full-width en mobile: Usa full-width en viewports < 768px

Accesibilidad

  • ✅ Focus visible automático (outline amarillo)
  • ✅ Estados hover/active
  • ✅ Atributo disabled nativo
  • ✅ Slot content se usa como label accesible

📚 Documentación Completa

La documentación completa en formato JSON está en:

import metadata from '@apiux/design-system/docs';
console.log(metadata.components['apiux-button']);

🎯 Brandbook

Basado en Brandbook Apiux 2024:

  • Propósito: "Impact the future with talent and technology"
  • Valores: We Care, We Create, We are Owners
  • Personalidad: Inteligentes, Cercanos, Líderes, Apasionados

🔧 Desarrollo

# Servidor local
npm run dev

# Ver ejemplos
npm run docs

📄 Estructura del Proyecto

@apiux/design-system/
├── src/
│   ├── tokens/
│   │   └── tokens.css          # Design tokens
│   ├── components/
│   │   └── button.js           # Web Component
│   └── index.js                # Entry point
├── docs/
│   └── components.json         # Metadata para AI
├── examples/
│   └── index.html              # Demo interactivo
└── package.json

🤝 Contribuir

  1. Fork el repositorio
  2. Crea una rama: git checkout -b feature/nuevo-componente
  3. Commit: git commit -m 'Add: nuevo componente'
  4. Push: git push origin feature/nuevo-componente
  5. Pull Request

📝 Licencia

MIT © Apiux

🆘 Soporte


Para Agentes de IA: Este paquete está diseñado para ser consumido por LLMs. La estructura JSON en /docs/components.json contiene toda la metadata necesaria para generar código correcto.