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

@loom-sdc/design-system

v0.5.0

Published

Framework-agnostic, token-driven Web Components library. Built for maximum efficiency and maintainability with Vite, TypeScript, and Vanilla Extract.

Readme

@loom-sdc/design-system

Framework-agnostic, token-driven Web Components library. Built for maximum efficiency and maintainability with Vite, TypeScript, and Vanilla Extract.


Filosofía de Consumo

Barrel Import
Uso recomendado solo para prototipos o pruebas rápidas. Importa todos los elementos y tokens, sin optimización de peso.

import '@loom-sdc/design-system/elements';

Subpath Export (Producción/Tree-shaking)
Importa y registra solo los componentes necesarios. Esto maximiza la eficiencia del bundle y permite tree-shaking real.

import { LoomButton } from '@loom-sdc/design-system/elements/button';
LoomButton.define(); // registra <loom-button>
  • Cada subpath (@loom-sdc/design-system/elements/<component>) expone solo el componente correspondiente.
  • No uses el barrel en producción.

Guía de Inicio Rápido

1. Instalación

npm install @loom-sdc/design-system

2. Importa el core de estilos y tokens (obligatorio)

import '@loom-sdc/design-system/style.css'; // tokens y estilos globales
import '@loom-sdc/design-system/fonts.css'; // opcional: fuentes TWK Everett

Nota: Si alguno de estos archivos no existe en tu distribución, verifica la ruta y genera un placeholder.

3. Registro de un componente

import { LoomButton } from '@loom-sdc/design-system/elements/button';

LoomButton.define(); // registra <loom-button>

Luego en tu HTML/JSX:

<loom-button>Click me</loom-button>

Tabla de Componentes Disponibles

| Nombre | Ruta de Importación | Tag de Custom Element | |-------------|---------------------------------------------------------|----------------------| | LoomBox | @loom-sdc/design-system/elements/box | <loom-box> | | LoomButton | @loom-sdc/design-system/elements/button | <loom-button> | | LoomInline | @loom-sdc/design-system/elements/inline | <loom-inline> | | LoomStack | @loom-sdc/design-system/elements/stack | <loom-stack> | | LoomText | @loom-sdc/design-system/elements/text | <loom-text> |


Configuración de TypeScript

Para evitar errores de tipos con los subpaths, asegúrate de tener en tu tsconfig.json:

{
  "compilerOptions": {
    "moduleResolution": "bundler"
  }
}

Notas Técnicas

  • Todos los componentes deben registrarse explícitamente con .define().
  • Los estilos globales y tokens deben importarse siempre antes de usar cualquier componente.
  • El consumo granular mediante subpaths es obligatorio en producción para mantener bundles mínimos.
  • Si falta algún archivo de estilos global (style.css, fonts.css), crea un placeholder y verifica la ruta en tu distribución final.

Mantenibilidad y eficiencia de peso son prioritarios.
No uses default exports. No dupliques tokens ni estilos. Usa siempre los subpaths para producción.