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

@bwilliamson/mdcp-presets

v0.4.1

Published

Starter markdownlint configs for MarkDown Context Protocol consumers

Readme

@bwilliamson/mdcp-presets

Starter markdownlint-cli2 configs tuned for mdcp consumer repos — separate rules for shard files and the compiled monolith.

Install alongside @bwilliamson/mdcp-cli when you want mdcp lint or mdcp check --require-lint without writing lint configs from scratch.

Requirements

  • Node.js >= 24.0.0
  • markdownlint-cli2 installed in your repo

Install

npm install -D @bwilliamson/mdcp-presets markdownlint-cli2 @bwilliamson/mdcp-cli

Presets

| File | Targets | Intent | | ----------------------------------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------- | | markdownlint-shards.markdownlint-cli2.jsonc | Registered guide shard trees (scope from CLI) | Relaxed rules for shard authoring — each shard starts with #, duplicates are expected | | markdownlint-compiled.markdownlint-cli2.jsonc | guides.md only | Stricter link rules (MD052, MD053) on the compiled monolith |

Shard preset highlights

  • ATX headings (#), 2-space list indent
  • MD001, MD013 (line length), MD024 (duplicate headings), MD041 (first line H1) disabled — mdcp compile handles structure
  • MD025 front-matter title disabled

Compiled preset highlights

  • Validates fragment and reference link integrity on guides.md
  • Line-length and duplicate-heading rules stay relaxed (compile output differs from shard layout)

Wire into mdcp.config.json

Point lint.markdownlint at the installed preset files:

{
  "lint": {
    "markdownlint": {
      "shardsConfig": "node_modules/@bwilliamson/mdcp-presets/markdownlint-shards.markdownlint-cli2.jsonc",
      "compiledConfig": "node_modules/@bwilliamson/mdcp-presets/markdownlint-compiled.markdownlint-cli2.jsonc"
    }
  }
}

Then run:

mdcp lint --require-lint
# or
mdcp check --require-lint

mdcp lint runs the shards config first, recompiles, then runs the compiled config.

Shard lint scope comes from compileOrder guide directories (or lint.markdownlint.shardsGlobs in config) — the preset supplies rules and exclusions only, not file scope.

Package exports

The preset files are also exposed as subpath exports if your tooling resolves them:

@bwilliamson/mdcp-presets/markdownlint-shards.markdownlint-cli2.jsonc
@bwilliamson/mdcp-presets/markdownlint-compiled.markdownlint-cli2.jsonc

markdownlint-cli2 expects a filesystem path in --config, so the node_modules/... form above is the usual approach.

Customizing

Copy a preset into your repo and edit it, or extend via markdownlint-cli2's extends pattern. The shipped presets are a starting point — tune rules to match your style guide.

For prose linting (Vale), configure vale in mdcp.config.json separately; Vale is not part of this package.

Related packages

| Package | Use | | -------------------------------------------------------------------------------- | --------------------------------------------------- | | @bwilliamson/mdcp-cli | Runs these configs via mdcp lint and mdcp check | | @bwilliamson/mdcp-core | Core compile and validation library |

Example

See examples/sample-guides/mdcp.config.json in the mdcp repo (paths differ in the monorepo vs. a consumer install).

License

MIT