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

@heroelc/fsociety

v0.0.11

Published

Angular component library with design system tokens, mixins and UI components

Readme

fsociety

Angular component library · Design system con tokens, mixins y componentes UI

npm version Angular License: MIT Storybook


Instalación

npm install @heroelc/fsociety

Prerrequisitos

  • Angular 19+
  • Node 18+
  • SCSS habilitado en el proyecto

Setup rápido

1. Cargar los tokens en styles.scss

// src/styles.scss de tu app Angular
@use '@heroelc/fsociety/styles/tokens';
@use '@heroelc/fsociety/styles/mixins'; // opcional — clases utilitarias

Esto emite todas las CSS custom properties (--fs-primary-base, --fs-primary-hover, etc.) en :root, disponibles globalmente en toda la app.

2. Importar componentes

Los componentes son standalone — se importan directo en el imports del componente o módulo:

import { FsButtonComponent } from '@heroelc/fsociety';

@Component({
  standalone: true,
  imports: [FsButtonComponent],
  template: `<fs-button variant="primary">Guardar</fs-button>`
})
export class MyComponent {}

Componentes

<fs-button>

<fs-button variant="primary" size="md">Guardar</fs-button>
<fs-button variant="secondary">Cancelar</fs-button>
<fs-button variant="outline" [disabled]="loading">Editar</fs-button>
<fs-button variant="ghost">Ver más →</fs-button>
<fs-button variant="danger">Eliminar</fs-button>
<fs-button [loading]="true">Guardando</fs-button>

| Input | Tipo | Default | Descripción | |---|---|---|---| | variant | 'primary' \| 'secondary' \| 'outline' \| 'ghost' \| 'danger' | 'primary' | Variante visual | | size | 'sm' \| 'md' \| 'lg' | 'md' | Tamaño | | disabled | boolean | false | Estado deshabilitado | | loading | boolean | false | Muestra spinner y deshabilita | | fullWidth | boolean | false | Ocupa el 100% del contenedor | | iconLeft | string | — | SVG path del ícono izquierdo | | iconRight | string | — | SVG path del ícono derecho | | type | 'button' \| 'submit' \| 'reset' | 'button' | Tipo HTML nativo |

| Output | Tipo | Descripción | |---|---|---| | fsClick | EventEmitter<MouseEvent> | Click (no emite si disabled o loading) |


<fs-badge>

<fs-badge color="primary">Angular</fs-badge>
<fs-badge color="danger" [dot]="true">Activo</fs-badge>
<fs-badge color="neutral" variant="outline">ESLint</fs-badge>
<fs-badge color="primary" [imgLeft]="'assets/icons/angular.svg'">Angular</fs-badge>
<fs-badge color="primary" [iconLeft]="svgPath" [removable]="true" (removed)="onRemove()">
  TypeScript
</fs-badge>
<fs-badge color="secondary" [iconLeft]="svgPath" [iconOnly]="true"></fs-badge>

| Input | Tipo | Default | Descripción | |---|---|---|---| | color | 'primary' \| 'secondary' \| 'tertiary' \| 'success' \| 'warning' \| 'danger' \| 'neutral' | 'neutral' | Color | | variant | 'filled' \| 'outline' | 'filled' | Variante visual | | size | 'sm' \| 'md' | 'md' | Tamaño | | dot | boolean | false | Punto de estado | | iconLeft | string | — | SVG path ícono izquierdo (viewBox 0 0 24 24) | | iconRight | string | — | SVG path ícono derecho | | imgLeft | string | — | URL o ruta imagen izquierda (prioridad sobre iconLeft) | | imgRight | string | — | URL o ruta imagen derecha | | imgLeftAlt | string | '' | Alt text para imgLeft | | imgRightAlt | string | '' | Alt text para imgRight | | iconOnly | boolean | false | Badge circular sin label | | removable | boolean | false | Muestra botón X |

| Output | Tipo | Descripción | |---|---|---| | removed | EventEmitter<void> | Emite al clickear el X |


<fs-tabs>

<fs-tabs [tabs]="tabs" [(activeTab)]="activeTab">
  <div *ngIf="activeTab === 'experiencia'">...</div>
  <div *ngIf="activeTab === 'sobre-mi'">...</div>
</fs-tabs>
tabs = [
  { id: 'experiencia', label: 'Experiencia' },
  { id: 'sobre-mi',    label: 'Sobre mí' },
  { id: 'formacion',   label: 'Formación' },
];
activeTab = 'experiencia';

| Input | Tipo | Default | Descripción | |---|---|---|---| | tabs | FsTab[] | [] | Array de tabs { id, label, disabled? } | | activeTab | string | '' | Id de la tab activa |

| Output | Tipo | Descripción | |---|---|---| | activeTabChange | EventEmitter<string> | Two-way binding | | tabChange | EventEmitter<FsTab> | Emite el objeto FsTab completo |

CSS custom properties configurables:

fs-tabs {
  --fs-tab-bg:             #0d1117;
  --fs-tab-color:          rgba(255,255,255,0.40);
  --fs-tab-color-hover:    rgba(255,255,255,0.70);
  --fs-tab-color-active:   #ffffff;
  --fs-tab-border:         rgba(255,255,255,0.08);
  --fs-tab-hover-bg:       rgba(255,255,255,0.03);
  --fs-tab-indicator-from: var(--fs-primary-base);
  --fs-tab-indicator-to:   var(--fs-tertiary-base);
  --fs-tab-indicator-glow: rgba(34,211,238,0.45);
}

<fs-alert>

<fs-alert type="info" title="Actualización disponible" [dismissible]="true">
  Nueva versión disponible: v0.0.2
</fs-alert>

<fs-alert type="success" variant="accent" [autoDismiss]="3000">
  Cambios guardados correctamente.
</fs-alert>

| Input | Tipo | Default | Descripción | |---|---|---|---| | type | 'info' \| 'success' \| 'warning' \| 'danger' \| 'neutral' | 'info' | Tipo semántico | | variant | 'filled' \| 'accent' | 'filled' | filled = fondo · accent = borde izq. | | title | string | — | Título en negrita | | dismissible | boolean | false | Muestra botón X | | autoDismiss | number | 0 | Auto-cierre en ms (0 = off) |

| Output | Tipo | Descripción | |---|---|---| | dismissed | EventEmitter<void> | Emite al cerrarse |


<fs-experience-card>

experience = {
  company:        'Xcale Consulting',
  role:           'Frontend Developer',
  startDate:      'abr 2022',
  current:        true,
  logoText:       'X CALE',
  bullets: [
    'Desarrollo de interfaces con Angular, migraciones v8→v16.',
    'Configuración de pipelines en CodeBuild, ECS en AWS.',
  ],
  bulletsPreview: 3,
  badges: [
    { label: 'Angular',    color: 'danger'  },
    { label: 'TypeScript', color: 'primary' },
  ],
};
<fs-experience-card
  [experience]="experience"
  variant="full"
  [timeline]="true"
  [timelineLast]="false"
/>

| Input | Tipo | Default | Descripción | |---|---|---|---| | experience | FsExperienceCard | — | Datos de la experiencia | | variant | 'full' \| 'compact' | 'full' | full = con bullets · compact = solo header | | timeline | boolean | false | Línea y dot de timeline | | timelineLast | boolean | false | Último item (oculta línea hacia abajo) |

CSS custom properties configurables:

fs-experience-card {
  --fs-exp-radius: 12px; /* 0 para layout full width sin redondeo */
}

<fs-profile-card>

<fs-profile-card
  name="John Doe"
  handle="johndoe"
  role="Frontend Developer"
  avatarUrl="https://i.pravatar.cc/150?img=8"
  bannerUrl="https://picsum.photos/seed/fsociety/800/200"
  [verified]="true"
  [showActions]="false"
  [links]="links"
  [badges]="badges"
  [stats]="stats"
/>
links = [
  { label: 'linkedin.com/in/johndoe', url: 'https://linkedin.com/in/johndoe' },
  { label: 'github.com/johndoe',      url: 'https://github.com/johndoe' },
  { label: 'Buenos Aires, Argentina' },
];
badges = [
  { label: 'Angular',    color: 'danger'    },
  { label: 'TypeScript', color: 'primary'   },
  { label: 'AWS',        color: 'secondary' },
];
stats = [
  { value: '4+',  label: 'años exp.'  },
  { value: '12',  label: 'proyectos'  },
  { value: '985', label: 'seguidores' },
];

CSS custom properties configurables:

fs-profile-card {
  --fs-profile-radius: 14px; /* 0 para layout full width sin redondeo */
}

Obtener tu avatarUrl de GitHub: Abrí https://api.github.com/users/TU_USUARIO, copiá el campo id y usá: https://avatars.githubusercontent.com/u/TU_ID


Sistema de tokens

--fs-{color}-muted      // 50  — badge bg, chip, alert sutil
--fs-{color}-subtle     // 100 — ghost hover bg
--fs-{color}-tint       // 200 — selected bg, focus fill
--fs-{color}-light      // 300 — borders sobre fondos claros
--fs-{color}-soft       // 400 — íconos, disabled
--fs-{color}-base       // 500 — color principal
--fs-{color}-hover      // 600 — hover en solid buttons
--fs-{color}-active     // 700 — pressed
--fs-{color}-emphasis   // 800 — texto sobre mismo color
--fs-{color}-contrast   // 900 — texto dark sobre tint/muted

Colores disponibles: primary · secondary · tertiary · neutral · success · warning · danger

Theming por app

@use '@heroelc/fsociety/styles/tokens' with (
  $fs-primary-hex:   #7c3aed,
  $fs-secondary-hex: #0891b2,
  $fs-tertiary-hex:  #0d9488,
);

Mixins y utilidades

@use '@heroelc/fsociety/styles/mixins' as m;

.mi-componente {
  @include m.flex-center;
  @include m.px(4);        // padding-left + right: 16px
  @include m.stack(16px);  // flex-col + gap
  @include m.truncate;

  @include m.respond-to('md') {
    @include m.flex-between;
  }
}

O con clases utilitarias directamente en el HTML:

<div class="flex-between px-6 py-4 gap-4">
  <span class="truncate-2 text-sm font-medium">...</span>
  <span class="uppercase-label">Frontend Developer</span>
</div>

Breakpoints: sm 640px · md 768px · lg 1024px · xl 1280px · xxl 1536px


Contribuir

Issues y PRs bienvenidos en github.com/heroelc/fsociety.

Documentación visual en Storybook: heroelc.github.io/fsociety


Licencia

MIT © heroelc