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

get-footer

v1.0.0

Published

Footer string with NPM package credentials directly by CDN script

Readme

Get Footer

Fetch package information from npm registry and display it as a customizable footer on your web page.


Features

  • Runs instantly via CDN <script> tag
  • Config through a single data-get-footer attribute
  • Multiple footer styles out of the box
  • Supports multiple elements
  • Custom format templates
  • Caches package data to reduce API calls
  • Downloads statistics support

Usage

<footer>
  <div class="copy" data-get-footer="package_name"></div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/get-footer"></script>

Configuration

<div data-get-footer="package_name[,][target-element|template][,][template][,]{format}"></div>

Parameters:

data-get-footer="[package-name][,][target-element|template][,][template][,]{format}"

  • 1st parameter (required): Package name to fetch data for
  • 2nd parameter (optional): Can be either:
    • Target element selector (starts with # or .) where the footer will be inserted
    • Template name (see Templates section below)
  • 3rd parameter (optional): Template name (if 2nd parameter is a target element)
  • Format (optional): Custom format, specified within {} for personalized footer

Built-in Templates

| Template | Description | | --------- | ------------------------------------------ | | modern | Modern style with emojis (default) | | classic | Traditional copyright style | | minimal | Simple package name and version | | boxed | Boxed style with emoji | | extended | Extended info with last update date | | corporate | Corporate style with full copyright notice | | full | Complete package information display |

Custom Format

You can customize the footer format using placeholders that will be replaced with package data.

Available Placeholders:

| Key | Description | | --------------- | ---------------------------- | | %name | Package name | | %version | Package version | | %description | Package description | | %lastUpdate | Last update date | | %author | Author's name | | %license | License information | | %homepage | Homepage URL | | %repository | Repository URL | | %maintainers | Names of maintainers | | %totalDownloads | Total downloads (last month) | | %npmURL | NPM package URL | | %copy | Copyright symbol (©) | | %year | Current year |

Example of custom format:

<div data-get-footer="webpack, { <a href='%npmURL'>%name</a> %copy %year | Version: %version | Updated: %lastUpdate | Downloads: %totalDownloads }"></div>

Examples

<!-- Default modern template -->
<div data-get-footer="express, modern"></div>

<!-- Custom target element -->
<div id="custom-footer"></div>
<div data-get-footer="jest, #custom-footer, modern"></div>

<!-- Custom format -->
<div data-get-footer="webpack, { <a href='%npmURL'>%name</a> %copy %year | Version: %version }"></div>

Contributing

Contributions welcome!

License

MIT License