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

@wastech-mdlint/core

v0.2.1

Published

Markdown linter engine behind wastech-mdlint: parsing, config, lint rules, context graph, and compile.

Readme

@wastech-mdlint/core

The pipeline behind wastech-mdlint, packaged as a library: Markdown parsing, config loading, lint orchestration, context-graph construction, compile, and result formatting.

Core owns all of it. @wastech-mdlint/cli and @wastech-mdlint/mcp-server are thin hosts over this package — argument parsing and exit codes on one side, tool registration and structured output on the other — not parallel implementations. Reach for this package when you want the analysis inside your own program; reach for the CLI or the MCP server when you want to run it.

npm install @wastech-mdlint/core
  • Node.js >=24.17.0, ESM only (no CommonJS build).
  • One entry point (.), with types.
  • Analysis is local and deterministic: no network access, no external link checking, no user-code plugins.

Usage

Lint a project the way the CLI does — load the config, then run the pipeline:

import { lintFiles, loadConfiguration } from "@wastech-mdlint/core";

const cwd = process.cwd();
const loaded = await loadConfiguration({ cwd });

const result = await lintFiles({
  cwd,
  config: loaded.config,
  rules: loaded.rules,
  settings: loaded.settings,
});

// { messages, files, errorCount, warningCount }
console.log(result.errorCount, result.warningCount);

With no config file present, loadConfiguration returns the zero-config default — every **/*.md outside the always-excluded trees, with an empty ruleset — so the call above is a clean pass until you add rules.

The context graph is shared infrastructure rather than a lint-only detail — the same graph feeds graph-aware rules, slice, impact, and compile — and is available on its own:

import { buildContextGraph, loadDocuments } from "@wastech-mdlint/core";

const documents = await loadDocuments(["**/*.md"], {
  cwd,
  // `loadDocuments` is the raw walker: an omitted `exclude` excludes nothing, `node_modules`
  // included. The always-excluded trees are applied a layer up, by `lintFiles`.
  exclude: ["**/node_modules/**", "**/dist/**", "**/.git/**"],
});

const graph = buildContextGraph(documents); // { nodes, edges, cycles }

Every path in a public result is a repository-relative POSIX path, and every collection is sorted, on all three platforms — output is safe to commit or diff.

Documentation

The rule table, the option reference, and a page per rule live in the repository, not here — they are generated from the rule metadata, and a copy in this file would be a second thing to keep in sync.

License

MIT — see LICENSE.