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

@markdownai/markdownai

v0.0.20

Published

MarkdownAI - documentation that cannot lie. Meta-package and org index.

Readme

@markdownai

documentation that cannot lie.

Packages: @markdownai/core  ·  @markdownai/engine  ·  @markdownai/parser  ·  @markdownai/renderer  ·  @markdownai/mcp


MarkdownAI is a superset of Markdown that makes documents live. Add @markdownai to the first line of any .md file and it becomes executable - fetching real values from your environment, databases, APIs, and shell every time it renders.

This org contains the full MarkdownAI toolchain as a set of focused, composable packages.


Packages

@markdownai/core

The mai CLI. Everything you need to render, validate, and manage live documents from the terminal.

npm install -g @markdownai/core
mai render ./docs/status.md

Includes all security commands (mai security shell enable), caching, format output, and the MCP integration.


@markdownai/engine

The execution core. Takes a parsed AST and evaluates all directives - shell queries, HTTP requests, database connections, environment resolution, caching, and security enforcement.

If you want to embed MarkdownAI rendering inside your own Node.js app, start here.

import { execute, parse } from '@markdownai/engine'

const ast = parse(source)
const result = execute(ast, { ctx: { security: { allowShell: true } } })
console.log(result.output)

@markdownai/parser

Pure AST production. Reads MarkdownAI source and returns a typed AST with no side effects. No execution, no IO - just parsing.

Use this if you need to analyze or transform MarkdownAI documents without running them.

import { parse } from '@markdownai/parser'

const ast = parse(source)
// ast.nodes - array of typed directive and markdown nodes

@markdownai/renderer

11 output format modules that turn rendered output into different targets: standard Markdown, AI-optimized context, structured JSON, and more.

The renderer handles post-execution formatting and is consumed by both @markdownai/engine and @markdownai/mcp.


@markdownai/mcp

MCP (Model Context Protocol) server for Claude Code and other AI tools. Exposes MarkdownAI rendering as MCP tools so AI assistants can render live documents during a session.

mai-serve  # starts the MCP stdio server

Works with Claude Code hooks to intercept file reads and render live context automatically.


Quick Start

# Install the CLI globally
npm install -g @markdownai/core

# Create a live document
cat > status.md << 'EOF'
@markdownai

# Project Status

**Files in src:** @count src/**/*.ts
**Node version:** @query "node --version" label="node_ver"
{{ node_ver }}
EOF

# Render it
mai render status.md

Links