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

run-wintersmith

v0.0.4

Published

Node module for controlling the Wintersmith static site generator. Useful for task runners like gulp.

Downloads

5

Readme

run-wintersmith

This module exposes a really simple API for configuring and controlling the Wintersmith static site generator. This is useful if you use a task runner (like gulp or Grunt) with your static site workflow. This module will allow you to automatically compile assets and refresh the browser when you edit Markdown files or change something in the templates etc.

Installation

  1. Install via npm:

     npm install run-wintersmith --save
  2. Require it in your project:

    var runWintersmith = require('run-wintersmith');
  3. Call one of the API methods:

    runWintersmith.preview();
    // or
    runWintersmith.build();
    	
    	

Usage with gulp

Please take a look at the example-gulpfile.js to see full usage example.

Feel free to get in touch if you need help setting it up.

API

runWintersmith.preview()

Starts the Wintersmith site in preview mode, with default hostname and port. (localhost:3000)

runWintersmith.build()

Generates the Wintersmith site to the default directory. (/build)

Configuration

The module has a few default settings. They can be overwritten in the following way:

var runWintersmith = require('run-wintersmith');

runWintersmith.settings.hostname = 'somehostname';
runWintersmith.settings.port = 8080;
runWintersmith.settings.configFile = 'myConfig.json';

settings.configFile:

Sets which Wintersmith configuration file to read from. Default is config.json.

settings.hostname:

Sets the server hostname. Default is localhost. Only used in preview mode.

settings.port:

Sets the server port. Default is 3000. Only used in preview mode.

Background

Wintersmith is an awesome static website generator. gulp is an equally awesome task runner. I like to use gulp in my Wintersmith project to handle everything - so I decided to share how I do it.

At first, I created gulp-wintersmith as gulp plugin to automate my development workflow with Wintersmith. But as I learned from the gulp core team: Creating a specific plugin to connect them, is in violation of the gulp plugin guidelines and of the spirit of creating non-specific modules.

So instead I made this module more generic, so it could be used in different contexts and not only with gulp.

Feedback and contribution

I'm still new to creating and publishing modules, please let me know if you have any ideas or feedback to this module.

License

MIT © Vanja Cosic