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 🙏

© 2025 – Pkg Stats / Ryan Hefner

athlefi-ui

v0.1.11

Published

Librería UI centralizada del ecosistema AthleFi basada en Componentes Astro

Readme

📌 CONTEXTO

Este repositorio pertenece al ecosistema AthleFi, una plataforma compuesta por múltiples aplicaciones y microservicios. Estas apps comparten estilos, colores y patrones de diseño, pero viven en repositorios independientes.

Para evitar duplicación, inconsistencias visuales y deuda técnica, se creó este proyecto:

➡️ Una librería UI centralizada para el ecosistema AthleFi. ➡️ Basada en Componentes Astro + TypeScript. ➡️ Consumida por todos los microfrontends Astro del ecosistema.

🎯 OBJETIVO DEL REPOSITORIO

Ser la fuente única de verdad visual del ecosistema AthleFi.

Unificar colores, tipografías, tamaños, layouts y componentes.

Mantener consistencia visual en todos los microfrontends Astro.

Servir como base para microfrontends modulares.

Permitir actualizaciones controladas mediante versionado semántico.

📦 TECNOLOGÍAS CLAVE

Astro Components (.astro)

TypeScript

Scoped Styles para aislamiento

Design Tokens (colors.css, typography.css)

Bundling con Vite (integrado en Astro)

🗂️ ESTRUCTURA DEL PROYECTO athlefi-ui/ └── src/ ├── tokens/ # Design Tokens globales │ ├── colors.css │ └── typography.css │ ├── components/ # Componentes Astro reutilizables │ ├── atoms/ # Átomos (Button, Input, etc.) │ ├── molecules/ # Moléculas (SearchBar, Card, etc.) │ ├── organisms/ # Organismos (Header, Footer, etc.) │ └── templates/ # Templates (Layouts) │ └── index.ts # Entry point que exporta componentes

package.json tsconfig.json

🚀 USO EN MICROFRONTENDS ASTRO

Instalar:

npm install athlefi-ui

Importar tokens en tu layout principal (una sola vez):


// src/layouts/Layout.astro import "athlefi-ui/tokens/colors.css"; import "athlefi-ui/tokens/typography.css";

Usar componentes:


import { Button } from "athlefi-ui";

Invertir ahora

🧩 FILOSOFÍA DE DISEÑO

Componentes Astro nativos para todos los microfrontends.

Atomic Design: tokens → átomos → moléculas → organismos → templates.

UI sin lógica de negocio.

Scoped Styles para evitar conflictos.

Tokens globales como fuente de verdad visual.

TypeScript para type-safety en props.

📘 GLOSARIO (para IA y desarrolladores) Término Definición AthleFi Plataforma de inversión y análisis para atletas. UI Library Conjunto de componentes Astro reutilizables. Componente Astro Archivo .astro con markup, scripts y estilos. Design Token Variable de diseño (color, espaciado, fuente). Microfrontend App Astro independiente que consume esta librería. Atomic Design Metodología de diseño (átomos → moléculas → organismos). 🛠️ DESARROLLO

Verificar tipos:

npm run typecheck

Modo desarrollo (watch):

npm run dev

Nota: Esta librería se publica como código fuente (.astro), no requiere build.

👥 CONTRIBUIR

Crear rama feature

Añadir nuevo token o componente en la carpeta correspondiente (atoms/, molecules/, etc.)

Exportarlo en src/index.ts

Verificar tipos con npm run typecheck

Abrir Pull Request

Mantener consistencia con Atomic Design

Nunca incluir lógica de negocio

📦 PUBLICAR

Hacer commit de los cambios

Actualizar versión: npm version patch | minor | major

Publicar: npm publish

Push al repositorio: git push && git push --tags