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

@markdown-code-assist/cli

v0.1.0

Published

Command-line interface for the Markdown Code Assist engine — lint and format fenced code blocks in your Markdown files.

Readme

@markdown-code-assist/cli

Lint and format fenced code blocks inside Markdown files — from the command line.

npm License: MIT Node.js ≥ 20


mca is the command-line interface for the Markdown Code Assist Engine. It scans every fenced code block in your Markdown files, reports syntax errors and style issues, and can reformat them in-place.

Installation

# Global install
npm install -g @markdown-code-assist/cli

# Or run without installing
npx @markdown-code-assist/cli check README.md
pnpm dlx @markdown-code-assist/cli check README.md

Commands

mca check <files>

Lint all fenced code blocks. Exits with a non-zero code when errors are found — CI-friendly.

mca check README.md
mca check "docs/**/*.md"
mca check "**/*.md"

mca format <files>

Preview how code blocks would be reformatted (dry run by default).

mca format README.md

Apply changes in-place with --write:

mca format README.md --write
mca format "docs/**/*.md" --write

mca inspect <files>

Print discovered fenced blocks and their metadata — useful for debugging which blocks are detected and with what language.

mca inspect README.md

Options

| Flag | Description | |---|---| | --write | Apply formatting in-place (format command only) | | --config <path> | Path to a config file (default: mca.config.json in cwd) | | --help | Show help | | --version | Show version |

Configuration

Drop an mca.config.json in your project root — it is loaded automatically:

{
  "formatting": {
    "tabSize": 2,
    "insertFinalNewline": true
  },
  "languages": {
    "python":     { "formattingEnabled": true, "diagnosticsEnabled": true },
    "json":       { "formattingEnabled": true, "diagnosticsEnabled": true },
    "yaml":       { "formattingEnabled": true, "diagnosticsEnabled": true },
    "javascript": { "formattingEnabled": true, "diagnosticsEnabled": true },
    "typescript": { "formattingEnabled": true, "diagnosticsEnabled": true }
  }
}

Or pass an explicit path:

mca --config ./config/mca.config.json check "**/*.md"

Use in CI

# .github/workflows/docs.yml
- name: Lint Markdown code blocks
  run: npx @markdown-code-assist/cli check "**/*.md"

Supported languages

| Language | Diagnostics | Formatting | |---|---|---| | JSON | ✅ | ✅ | | YAML | ✅ | ✅ | | JavaScript | ✅ syntax + no-undef | ✅ | | TypeScript | ✅ syntax + no-undef | ✅ | | Shell / Bash | ✅ | ✅ safe-only | | Python | ✅ via Tree-sitter | ✅ safe-only | | HTML | ✅ via Tree-sitter | ✅ safe-only | | CSS | ✅ via Tree-sitter | ✅ safe-only |

Links

License

MIT © Faouzi Boussad