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

@quadrixo/material

v0.0.4

Published

> This library is still under development, implemenation can change between versions.

Readme

This library is still under development, implemenation can change between versions.

Libraire @quadrixo/material

Cette librairie est un ensemble de composants et autres objets Agnular utiles pour le développement d'une application.

Table des matières

Installation

La librairie @angular/material est nécessaire.

Puis un simple npm add @quadrixo/material (ou yarn add @quadrixo/material).

AppShell

AppShell est un layout complet de page. Il se base sur le composant sidenav.

@Component({
  selector: 'app-root',
  imports: [RouterOutlet, AppshellModule],
  template: `
  <qdx-appshell>
    <router-outlet></router-outlet>
  </qdx-appshell>`,
  styleUrl: './app.component.scss'
})
export class AppComponent {
}

Navigation

La navigation est affiché dans la colonne de gauche. Les éléments de la navigations sont liés à l'entrée items.

Les éléments ont les propriétés :

  • icon: (string) le nom de l'icône (utilisé avec <mat-icon></mat-icon>)
  • label: (string) Le nom de l'entrée
  • link: (string) le lien de l'entrée
  • meta: (any, optionel) une metadata supplémentaire (avec le tag matListItemMeta)
@Component({
  selector: 'app-root',
  imports: [RouterOutlet, AppshellModule],
  template: `
  <qdx-appshell [items]="items">
    <router-outlet></router-outlet>
  </qdx-appshell>`,
  styleUrl: './app.component.scss'
})
export class AppComponent {
  public readonly items = [
    { icon: 'home', label: 'Home', link: '/' },
    //...
  ];
}

Light/Dark mode

Il est possible d'afficher un bouton pour basculer entre les modes clair et foncé.

Pour utiliser la fonctionnalité de bascule entre le mode foncé et clair il faut :

  • Utiliser un thème de couleur personnalisé via mat.theme()
  • Supprimer la déclaration theme-type: light, dans la définition du thème
  • Ajout dans le sélecteur html la propriété color-scheme: light dark;
  • Ajouter l'option modeSwitcher: true lors de l'appel à provideAppshellLayout()
html {
+ color-scheme: light dark;
  @include mat.theme((
    color: (
      primary: mat.$violet-palette,
      tertiary: mat.$orange-palette,
-     theme-type: light,
    ),
    typography: Roboto,
    density: 0
  ));
}
export const appConfig: ApplicationConfig = {
  providers: [
    ...
    provideAppshellLayout('Demo APP', { modeSwitcher: true }),
  ]
}

AppshellService

Le service AppshellService permet d'interagir avec le layout AppShell à partir d'un composant.

API :

  • mini (WritableSignal): réduit ou élargi la colonne de nagivation
  • mode (WritableSignal<'light' | 'dark'>): définit le mode clair ou foncé
  • title (WritableSignal<string | TemplateRef>): modifie le titre de la page affiché dans la Toolbar
  • mainAction (WritableSignal): ajoute une action principale en haut de la colonne de navigation
  • actions (WritableSignal<AppshellAction[]>): définie les actions de la Toolbar
/**
 * Define an action accessible from the toolbar or the sidenav bar.
 */
export interface AppshellAction {
  /**
   * The icon's symbol name of the action
   */
  icon: string;
  /**
   * The label of the action
   */
  label: string;
  /**
   * A callable function invoke when the action button is pressed
   */
  action: CallableFunction;
}