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 🙏

© 2024 – Pkg Stats / Ryan Hefner

statyck-theme-default

v1.3.8

Published

Default theme for Statyck (https://github.com/neilstuartcraig/statyck)

Downloads

34

Readme

Statyck-theme-default

The default theme for Statyck.

Installation

You can install this Statyck theme via (assuming you're currently in the directory/folder which you'd like to host your new blog):

npm install statyck-theme-default --production >> /dev/null 2>&1

(note: you may need to omit the >> /dev/null 2>&1 on non-*nix OS's e.g. Windows)

Theme development

Naming

It'd be helpful if all themes NPM packages are named according to a convention so they can be easily found:

statyck-theme-<theme-name>

Mandatory elements for Statyck themes

A theme has a few mandatory elements:

Config

Themes must copy (you can automate it as per the default theme or ask users to do it manually) a config file named theme-config.json into <blog root>/statyck-config/. This config file must be a valid JSON file and must contain at least a property in the root named sourceDir which is a path to the theme root directory (relative to the blog root directory).

Mandatory files

Themes must include the following files in the root (the path specified by sourceDir in the theme-config.json file):

  • page.html - the handlebars template file used for each individual page
  • pages-index.html - the handlebars template file used to create an index for your pages (often this will be an HTML <ul> or similar)
  • post.html - the handlebars template file used for each individual blog post
  • posts-index.html - the handlebars template file used to create a paginated index for your blog posts (usually these will be full HTML pages)

Assets

The default theme contains a directory called assets which has sub-directories containing asset files (css, js, images, media etc.). This is not mandatory but is generally recommended as a way to contain your page assets. Assets are referenced (in Markdown) relative to their host page e.g. ./assets/images/some-image.jpg.

License

MIT license