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

wp-install

v2.1.0

Published

It's `npm install` for WordPress

Readme

wp-install

What is wp-install?

It's like npm install for WordPress.

WordPress encourages the use of long-lived servers:

  • Plugins are typically downloaded directly to a running server, rather than being stored in source control
  • WordPress (and it's plugins) update themselves by downloading new code directly to the server
  • To deploy a custom theme, a developer typically FTP's files to a running server

This goes against the modern idea of Immutable Infrastructure.

This package is here to help make immutable WordPress deployment easier!
This package:

  • Downloads the latest version of WordPress and puts it in a ./dist folder.
  • Downloads the latest version of the WordPress plugins that you configure in .wp-install.yml
  • Copies plugins that you have saved locally
  • Copies your custom theme that you have saved locally

This ends up with a working WordPress installation in ./dist/wordpress that you can serve or deploy.

Installation

npm install wp-install -g

This will install wp-install globally so it can be run from the command line.

Usage

  • Create a file .wp-install.yml
    The structure should be like this:
---
cache-folder: .wordpress-download-cache  # Optional - this is the default value
dist-folder: dist  # Optional - this is the default value

plugins-to-download:  # Optional
  plugins:
  - name: custom-post-type-ui
  - name: custom-post-type-permalinks

plugins-to-copy:  # Optional
  directory: plugins-to-copy
  plugins:
  - name: advanced-custom-fields-pro
    type: directory
    directory: advanced-custom-fields-pro
  - name: advanced-custom-fields-pro-2
    type: zip
    filename: advanced-custom-fields-pro-2.zip

custom-theme:  # Optional
  directory: my-custom-theme
  • In the same folder as .wp-install.yml simply run:
wp-install

What does it do? / what are the options?

  • Deletes and re-creates a ./dist folder.

  • Downloads WordPress:

    • It checks the WordPress.org API (specifically the Version Checker) to find which version of WordPress to download.
      Note: it chooses the first offer with response:"upgrade".
    • Downloads the file to .wordpress-download-cache/wordpress/[version]
    • Unzips WordPress into the ./dist/wordpress folder
  • Plugins (part 1) - download plugins

    • Looks in .wp-install.yml to see if you want to download any plugins from WordPress.org
      This is configured in the plugins-to-download section.
    • Checks the WordPress.org API to find which version of the plugin to download.
      For instance, for the custom-post-type-ui plugin, uses this page on the API
    • Downloads the plugin to .wordpress-download-cache/plugins/[plugin-name]
    • Unzips the plugin to ./dist/wordpress/wp-content/plugins/
  • Plugins (part 2) - locally saved plugins

    • Looks in .wp-install.yml to see if you have any locally saved plugins to copy
    • Plugins can be folders or zip files
  • Copies your custom theme

    • Looks in .wp-install.yml to see if you have a custom theme to copy
    • The theme is copied to ./dist/wordpress/wp-content/themes