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

@robinpath/wordpress

v0.3.0

Published

WordPress REST API v2 — posts, pages, media and users on any self-hosted site. Uses the encrypted credential vault with application passwords.

Readme

@robinpath/wordpress

WordPress module for RobinPath.

Category Functions Auth License

Why use this module?

The wordpress module lets you:

  • List posts with optional filters.
  • Get a single post by ID.
  • Create a new post.
  • Update an existing post.
  • Delete a post (trash or force-delete).

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/wordpress

Quick Start

1. Set up credentials

wordpress.setCredentials "https://mysite.com" "admin" "xxxx xxxx xxxx xxxx"

2. List posts with optional filters.

wordpress.listPosts {"per_page":5,"status":"publish"}

Available Functions

| Function | Description | |----------|-------------| | wordpress.setCredentials | Set WordPress site URL and Application Password credentials. | | wordpress.listPosts | List posts with optional filters. | | wordpress.getPost | Get a single post by ID. | | wordpress.createPost | Create a new post. | | wordpress.updatePost | Update an existing post. | | wordpress.deletePost | Delete a post (trash or force-delete). | | wordpress.listPages | List pages with optional filters. | | wordpress.createPage | Create a new page. | | wordpress.updatePage | Update an existing page. | | wordpress.deletePage | Delete a page (trash or force-delete). | | wordpress.listCategories | List post categories. | | wordpress.createCategory | Create a new category. | | wordpress.deleteCategory | Permanently delete a category. | | wordpress.listTags | List post tags. | | wordpress.createTag | Create a new tag. | | wordpress.deleteTag | Permanently delete a tag. | | wordpress.listComments | List comments with optional filters. | | wordpress.getComment | Get a single comment by ID. | | wordpress.createComment | Create a new comment. | | wordpress.updateComment | Update an existing comment. | | wordpress.deleteComment | Delete a comment (trash or force-delete). | | wordpress.moderateComment | Change a comment's moderation status. | | wordpress.listMedia | List media library items. | | wordpress.getMedia | Get a media item by ID. | | wordpress.uploadMedia | Upload a media file. | | wordpress.updateMedia | Update media metadata (title, alt_text, caption, description). | | wordpress.deleteMedia | Permanently delete a media item. | | wordpress.listUsers | List users on the site. | | wordpress.getUser | Get a user by ID. | | wordpress.createUser | Create a new user. | | wordpress.updateUser | Update a user's profile. | | wordpress.deleteUser | Delete a user and reassign their content. | | wordpress.getMeta | Get custom fields/meta for a post or page. | | wordpress.updateMeta | Update custom fields/meta on a post or page. | | wordpress.deleteMeta | Remove a custom field/meta key from a post or page. | | wordpress.listRevisions | List revisions for a post or page. | | wordpress.getRevision | Get a specific revision. | | wordpress.deleteRevision | Permanently delete a revision. | | wordpress.listTaxonomies | List all registered taxonomies. | | wordpress.listTerms | List terms for any taxonomy. | | wordpress.createTerm | Create a term in any taxonomy. | | wordpress.listPlugins | List all installed plugins with status. | | wordpress.activatePlugin | Activate a plugin. | | wordpress.deactivatePlugin | Deactivate a plugin. | | wordpress.installPlugin | Install a plugin from the WordPress.org marketplace. | | wordpress.deletePlugin | Delete (uninstall) a plugin. Plugin must be deactivated first. | | wordpress.listThemes | List all installed themes. | | wordpress.activateTheme | Activate a theme. | | wordpress.getSettings | Get site settings (title, description, timezone, etc.). | | wordpress.updateSettings | Update site settings. | | wordpress.search | Global search across all content types. | | wordpress.bulkUpdatePosts | Update multiple posts at once with the same changes. | | wordpress.bulkDeletePosts | Delete multiple posts at once. |

Examples

List posts with optional filters.

wordpress.listPosts {"per_page":5,"status":"publish"}

Get a single post by ID.

wordpress.getPost "123"

Create a new post.

wordpress.createPost {"title":"My Post","content":"<p>Hello</p>","status":"draft"}

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/wordpress";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  wordpress.setCredentials "https://mysite.com" "admin" "xxxx xxxx xxxx xxxx"
  wordpress.listPosts {"per_page":5,"status":"publish"}
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT