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

@miso.ai/server-wordpress

v0.6.6

Published

Miso WordPress API data tools

Readme

Miso Node.js SDK (WordPress)

Setup

  1. Install Node.js.

  2. Install the package locally:

npm i @miso.ai/server-wordpress

Or, install the package globally:

npm i -g @miso.ai/server-wordpress

Or, use npx to run the commands, which will guide the package installation.

  1. Initialize a project profile
miso-wp init "b2c-contenthub.com"

which will generate a file wordpress.json in the current directory, with content like this:

{
  "site": "b2c-contenthub.com",
  "utcOffset": 0
}

Usage

Help message

miso-wp --help

Get

This command emits infinite stream of posts from the WordPress site.

miso-wp posts

You can specify a limit of posts to emit, or pipe to a head:

miso-wp posts -n 10 # this will be more efficient
miso-wp posts | head -10

Get, by ids

Get posts by ids:

miso-wp posts --ids 10001
miso-wp posts --ids 10001,10002

Get, with a time range

You can specify a time range:

# The range is always inclusive
miso-wp posts --after 2025-01-01 --before 2025-01-31
miso-wp posts -a 2025-01-01 -b 2025-01-31

miso-wp posts -a 2025-01 -b 2025-02
miso-wp posts -a 2024 -b 2025

miso-wp posts --date 2025-01-15
miso-wp posts -d 2025-01-15

miso-wp posts -d 2025-01
miso-wp posts -d 2025

Get posts that are either created or updated in a duration:

miso-wp posts -u 3h # in last 3 hours
miso-wp posts -u 4d # in last 4 days
miso-wp posts -u 5w # in last 5 weeks

Count the items

All filters above can be applied:

miso-wp posts -c
miso-wp posts -d 2025 -c
miso-wp posts -d 2025-01 -c

Get, with linked resources resolved

There are many linked resources in a post, such as author, categories, tags, etc. In the default mode, those resources are represented by their numberic ids. You can resolve them by:

miso-wp posts --resolve

The resolved content will be put in a _linked field under the post object.

Get, restricting fields retrieved

miso-wp posts --fields id,title

Get, with extra parameters

miso-wp posts --param "order=asc"

See WordPress JSON API reference.

Get, with records transformed

Tranform the posts to Miso product records:

miso-wp posts --transform

You can customize the transformation:

miso-wp posts --transform 'path-to/your-transform.js'
export default function(post, { defaultTransform }) {
  const record = defaultTransform(post);
  // do something with the record
  return record;
}

List all types of entities

miso-wp taxonomies

Getting other types of items

Simply replace posts with other types of items. The term should match the rest_base property in the response of the taxonomies command.

miso-wp categories