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

ngx-modular-dash

v0.0.17

Published

An elegant Dashboard component for Angular that can display 3 widgets at the same time on computers and 2 on smartphones using modular windows. You can include up to 8 custom widgets using multi-slot content projection. Different parameters can be set as

Readme

NgxModularDash

An elegant Dashboard component for Angular that can display 3 widgets at the same time on computers and 2 on smartphones using modular windows. You can include up to 8 custom widgets using multi-slot content projection. Different parameters can be set as input to customize your Dashboard (color theme, separations, margins...).

Demo

A demo is available on my website : www.lucadossantos.com.

Installation

npm install --save ngx-modular-dash

This module uses Tailwind for the styling, to make it work, you need to install and add Tailwind to your dependencies. Once Tailwind is imported to your style.css as global style, add this line (also to style.css) to inject the dependency to nxg-modular-dash module.

@source "../node_modules/ngx-modular-dash";

How to use NgxModularDash

Use 'lib-ngx-modular-dash' as any other components in your project. To add a custom widget (or embedded view) to the dashboard, you first need to provide as input (widgetIcons) a list of strings containing your icon's (svg or png) paths. It is important that the list is in the same order as the ids you are using for the widgets (see after).

Then, use content projection with an id set to "0" for the first widget, "1" for the second widget,... to integrate your widgets into the dashboard (up to 8 widgets).

e.g:

<lib-ngx-modular-dash [widgetIcons]="[path_to_widget_0_icon.svg, path_to_widget_1_icon.svg,...]">
<div id="0">Your content projected in the first widget.</div>
<div id="1">Your content projected in the second widget.</div>
<lib-ngx-modular-dash>

Customization

You can customize the Dashboard using diffent inputs:

  • separations [boolean] : if there are lines that separate widgets.
  • iconsLeft [boolean] : position of the icons (left : true -default, right : false).
  • logo [string] : path to logo image.
  • margins [number] : the margin around each widget (in pixels).
  • selectWidgets [number][] : the list of widget ids that is displayed.
  • maxNbrOfWidgets [number] : the max number of widgets allowes on the screen.
  • maxSingleWidgetWidth [number] : the max width in pixel when a single widget is selected.
  • colorTheme [string] : the color theme used. Can be either 'blue', 'pink', 'gray' or 'brown'. More to come...

e.g:

<lib-ngx-modular-dash [widgetIcons]="[path_to_widget_0_icon.svg, path_to_widget_1_icon.svg,...]" [separations]="false" [margins]="8" [selectWidgets]="[0,1]" [maxNbrOfWidgets]="2" [colorTheme]="'blue'">
<div id="0">Your content projected in the first widget.</div>
<div id="1">Your content projected in the second widget.</div>
<lib-ngx-modular-dash>