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

ng-magary

v0.0.33

Published

Standalone-first Angular UI library with a curated frozen root API for Magary components, services, and public types.

Readme

npm version Angular Compatibility License Sponsor BuyMeACoffee


ng-magary es una libreria de componentes para Angular pensada para trabajar con componentes standalone, temas CSS modernos y una experiencia visual cuidada.

La API root de ng-magary esta congelada como contrato intencional: componentes standalone, servicios y tipos publicos con naming consistente para aplicaciones Angular 17+ basadas en app.config.ts.

Demo interactiva:

magary.pages.dev

Caracteristicas principales

  • Componentes standalone listos para importar donde se necesitan.
  • Temas basados en CSS variables.
  • Componentes preparados para flujos responsive.
  • Cobertura de accesibilidad en flujos criticos.
  • Compatibilidad declarada con Angular 17 a 21.

Instalacion

Instala la libreria junto con sus peer dependencies:

npm

npm install ng-magary @angular/cdk @angular/animations @atlaskit/pragmatic-drag-and-drop lucide lucide-angular gridstack

pnpm

pnpm add ng-magary @angular/cdk @angular/animations @atlaskit/pragmatic-drag-and-drop lucide lucide-angular gridstack

Configuracion minima

Debes registrar animaciones de Angular y el set de iconos de Lucide en el arranque de tu aplicacion:

import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideAnimations } from '@angular/platform-browser/animations';
import { LucideAngularModule, icons } from 'lucide-angular';

const kebabCase = (value: string) =>
  value.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();

const lucideIcons = Object.entries(icons).reduce(
  (acc, [key, icon]) => {
    acc[key] = icon;
    acc[kebabCase(key)] = icon;
    return acc;
  },
  {} as Record<string, unknown>,
);

export const appConfig: ApplicationConfig = {
  providers: [
    provideAnimations(),
    importProvidersFrom(LucideAngularModule.pick(lucideIcons)),
  ],
};

Uso basico

import { Component } from '@angular/core';
import { MagaryButton, MagaryCard } from 'ng-magary';

@Component({
  standalone: true,
  selector: 'app-home',
  imports: [MagaryButton, MagaryCard],
  template: `
    <magary-card [width]="'400px'" [shadow]="4" [backgroundColor]="'var(--surface-0)'">
      <h2 style="margin: 0; padding-bottom: 1rem;">Mi primer card</h2>
      <p style="color: var(--text-secondary);">El diseno base ya viene resuelto.</p>

      <div style="margin-top: 1.5rem; display: flex; gap: 0.5rem">
        <magary-button label="Aceptar" severity="info" />
        <magary-button label="Cancelar" variant="outlined" severity="secondary" />
      </div>
    </magary-card>
  `,
})
export class HomeComponent {}

Servicios y tipos publicos

Cuando consumas overlays o mensajeria desde el root entrypoint, usa los tipos publicos prefijados:

import {
  MagaryConfirmDialog,
  MagaryConfirmationService,
  MagaryToast,
  MagaryToastService,
  type MagaryConfirmation,
  type MagaryToastMessage,
} from 'ng-magary';

const toast: MagaryToastMessage = {
  type: 'success',
  title: 'Saved',
  message: 'The record was stored successfully.',
};

const confirmation: MagaryConfirmation = {
  header: 'Delete record',
  message: 'Do you want to continue?',
};

Estilos globales y consideraciones

  • La libreria expone estilos por componente y usa CSS variables para personalizacion.
  • Para overlays globales como magaryTooltip, debes cargar el stylesheet compartido en los estilos raiz de tu app:
@use 'ng-magary/styles/tooltip.scss';

Licencias y terceros

Las atribuciones y licencias de dependencias de terceros estan documentadas en el repositorio principal:

  • THIRD_PARTY_NOTICES.md
  • third_party/licenses/

Construido para acelerar frontends en Angular.