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

weddell-static-site-generator-pug-stub

v1.4.0

Published

A pug template intended for use as a starting point for apps using Weddell static site generator.

Readme

Weddell Static Site Generator Pug Stub

This pug file is intended for use as a starting point for a pug template. It includes some basic boilerplate, and can be adapted to a variety of needs.

Locals Context

This template makes use of the route, router, params, redirectTo and path locals as populated by Weddell Static Site Generator.

It also looks for the following:

locale and locales

Object and Array[Object]

If your locals context has a locale member, this will be used as the current locale context for the template. The locales member will be used as a comprehensive array of locales supported by the app. Thes properties will be used to generate alt link tags and other meta tags in accordance with Google SEO recommendations. Locales should be of the following format:

{
    code: 'en-US',
    region: {
        code: 'US',
        name: 'United State'
    },
    language: {
        code: 'en',
        name: 'English'
    }
}

gtmContainerId

String

If a gtmContainerId member is found, a GTM tag will be added to the head.

scripts

Array[String]

If a scripts member is found, each string in the array will be used to append script tags to the page footer. These can be relative links or FQDNs.

stylesheets

Array[String]

If a stylesheets member is found, each item in the array will be used to append link stylesheet tags to the page header. These can be relative links or FQDNs.

url

String

Base URL context used by this app (where it will eventually be hosted).

metadata

Object

Object used to populate various meta tags. The object should be of the format:

{
    title: "My Site Title",
    description: "This is a description of my website",
    thumb: "https://cdn.mywebsite.com/my-image"
}

favicons

Array[Object]

If a favicons member is found, it will be used to append favicon link tags to the header. Favicon objects should be of the format:

{
    size: "32x32",
    href: "https://cdn.mysite.com/myicon.ico"
}

page

Object

If a page member is found, it will be used to append arbitrary HTML content to the page in various places.

{
    headHTML: "<div>My Head HTML will go in the head tag</div>",
    footerHTML: "<div>My footer HTML will go right after the bodyContent block</div>",
    bodyHTML:  "<div>My body HTML will go right after the opening body tag"
}

metaRefresh

bool

Determines whether a meta refresh tag is added to the head in case of a route redirect. Does not support hash in URL.

Pug blocks

Pug allows for template inheritance appends and overrides. The following blocks are made available in this template:

head

Immediately follows the opening head tag. Other blocks are nested inside of this one, so be careful overriding it.

meta

pageMeta

bodyHTML

bodyContent

footerHTML

headerHTML