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

ngTile

v0.1.503

Published

Angular.js Bootstrap dashboard tiles

Readme

ngTile

Take a look at the demo site to see examples with detailed markup, script and options.

Dependencies

The following dependencies are required for the package to function:

Installation

npm

The easiest way to install is via npm

npm install --save ngTile

unpkg cdn

Link to files:

Manually

Download the files from dist/.

Then add the sources to your code and adjust the paths as required.

<script src="resources/js/ngTile.min.js"></script>
<link href="resources/css/ngTile.min.css" rel="stylesheet" />

Usage

AngularJS Setup

To import the plugin to angular simply declare the ngTile module in your Angular app.

angular.module("myApp", ["ngTile"])

Directive Use

There are two types of tiles to use: <single-tile /> & <tiles />.

<single-tile /> Setup:

The single tile will require being set up using the following attributes and will only render a single tile:

Attributes
  • icon use this to set the icon for the tile. Note that my examples use Font Awesome tiles but you may use another source (although another source hasn't been tested so the results may vary).
  • stat use this to set the statistic to be displayed in the tile.
  • title use this to set the title to be displayed in the tile.
  • color use this to set the hex color code for the tile.
  • tile-type use this to set the type of tile to be created, tile types are described below.
  • link use this to specify a href for the tile. This is optional.
  • target use this to specify the link target. This is optional
Markup
<div class="row"> 
    <div class="col-lg-3">
        <single-tile icon="fa fa-users" stat="146" title="Users" color="#879998" tile-type="tile-lg-rect" link="ViewStats/2016-10-10" target="_self"/>
    </div>
</div>

<tile /> Setup:

The repeated tiles will require being set up using the following attribute and object:

Attribute
  • tile-params use this to specify the object with the tiles properties. You may call this whatever you desire.
Object Properties
  • data You will need to use the naming convention specfied below.
    • icon: Set the required icon class.
    • stat: Provide a value for the statistic.
    • title: Provide a title for the statistic.
    • link: Provide a link for the tiles. (Optional)
    • target: Provide a target for the link. (Optional)
  • colSize The repeated tiles need to be contained within a row, so a column needs to be specified.
  • tileType Specify the type of tiles you want repeated. Tile types are described below.
  • colors Use this property to overwrite the provided color pallet. For example use one color to set the repeater tiles to one color.

Markup & Example Object

<div class="row">
    <tiles tile-params="tileSettings" />
</div>
$scope.tileSettings = {
        data: [{
                    icon: 'fa fa-search',
                    stat: '365',
                    title: 'Days',
                    link: "https://www.google.co.uk",
                    target: "_blank"
                },
                {
                    icon: 'fa fa-twitter',
                    stat: '15987',
                    title: 'Twitter Users'
                }],
        colSize: "col-lg-6",
        tileType: "tile-md-square",
        colors: ["#663399", "#2c3e50", "#95a5a6", "#26C281"]
    };

Tile Types

There are currently 9 different types to choose from of 3 different shapes: Square, Rectangle and Circle

  • Square
    • tile-lg-square, tile-md-square, tile-sm-square
  • Rectangle
    • tile-lg-rect, tile-md-rect, tile-sm-rect
  • Circle
    • tile-lg-circle, tile-md-circle, tile-sm-circle

Note: To see examples of all the different tile types please visit the examples page

Default Colors

The default colors are shown below:

Issues

Please check if the issue currently exists before submitting a new issue, otherwise open issue in github. Please can you add a link to a Plunker, JSFiddle, or equivalent.

Contributing

You are more than welcome to contribute to the repo.

Contributers

Special Thanks to @Ruddy2007 for the support!

Author

Christoper Halfpenny @furkick

Licence

ngTile is copyright 2016 Christopher Halfpenny and contributors. It is licensed under the BSD 3 license. See the included LICENSE file for more details.