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

obsidian-plugin-validator

v1.0.6

Published

Run Obsidian community-plugin review checks locally before you submit.

Readme

obsidian-plugin-validator

npm

Run Obsidian's community-plugin review checks on your own machine, before you open a submission PR. It replicates the mechanical parts of the review so you can fix problems in seconds instead of waiting on a reviewer round-trip.

It does two things:

  1. Manifest & submission checks (in Node, no plugin execution): validates manifest.json against the submission requirements (required/allowed keys, forbidden words, id/version/description format), confirms versions.json has an entry for the current version, and checks for README.md and LICENSE.
  2. ESLint with the official eslint-plugin-obsidianmd recommended ruleset (no innerHTML, detach leaves on unload, Platform guards for Node APIs, sentence-case UI text, no console.log, restricted globals, and more).

Examples

A clean run, every check passed:

Validator output showing all checks passing

A failing run, with the specific problems to fix before submitting:

Validator output showing failed checks

Usage

The fastest way, no install, run it straight from npm against any plugin folder:

npx obsidian-plugin-validator ~/dev/my-plugin

Or from inside your plugin's folder (defaults to the current directory):

cd ~/dev/my-plugin
npx obsidian-plugin-validator

Install it globally if you run it often:

npm install -g obsidian-plugin-validator
obsidian-plugin-validator ~/dev/my-plugin

From source

git clone https://github.com/philpalmieri/obsidian-plugin-validator.git
cd obsidian-plugin-validator
npm install
node bin/cli.mjs ~/dev/my-plugin

Options

| Flag | Description | | --- | --- | | --src <dir> | Source folder to lint (default: src) | | --no-lint | Run manifest/file checks only, skip ESLint | | --fix | Apply ESLint autofixes where possible | | --no-typed | Disable type-aware linting (some obsidianmd rules get skipped) | | --tsconfig <p> | tsconfig path for type-aware linting (default: ./tsconfig.json) | | -h, --help | Show help |

The obsidianmd recommended set includes type-aware rules, so linting runs type-aware by default. It uses the plugin's own tsconfig.json; if the plugin doesn't have one, a temporary tsconfig is generated for the run and removed afterward.

Exit codes

  • 0 - all checks passed (warnings allowed)
  • 1 - one or more errors; fix before submitting
  • 2 - bad usage (unknown flag)

Wire it into CI or a pre-release script by relying on the exit code.

Using the ESLint config directly

If you'd rather run ESLint yourself, reuse the same flat config from your plugin's eslint.config.mjs:

// eslint.config.mjs
import { obsidianConfig } from "obsidian-plugin-validator/lib/eslint-config.mjs";

export default obsidianConfig();
// or type-aware: obsidianConfig({ typed: true, tsconfig: "./tsconfig.json" })

What it does not do

This covers the mechanical checks only. A human reviewer still looks at design, security, and whether your plugin does what it claims. Passing locally makes that review faster; it isn't a guarantee of acceptance. See the full plugin guidelines.

License

MIT