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

@cozydevkit/mdforge

v0.1.2

Published

Stop shipping ugly docs. Markdown to premium interactive HTML in one command.

Readme


title: mdforge subtitle: Stop shipping ugly docs.

mdforge

Markdown to premium interactive HTML in one command. Zero config.

mdforge transforms plain .md files into beautiful, self-contained HTML documentation with a premium dark theme, table of contents, syntax highlighting, scroll animations, and responsive design — all in a single output file with zero external dependencies.

Why mdforge?

Every developer writes docs. Nobody's docs look good.

  • Docusaurus requires a React project, config files, and a build pipeline
  • MkDocs needs Python, plugins, and theme customization
  • GitHub README has no dark theme, no interactivity, no visual hierarchy
  • mdforge needs one command: mdforge build README.md

Quick Start

# Install globally
npm install -g @cozydevkit/mdforge

# Or use directly with npx
npx @cozydevkit/mdforge build README.md

# Output to specific file
npx @cozydevkit/mdforge build README.md -o docs/index.html

That's it. Open the .html file. Your docs are premium.

What You Get

Every output file includes:

| Feature | Status | |---------|--------| | Premium dark theme | Included | | Auto-generated table of contents | Included | | Syntax-highlighted code blocks | Included | | Scroll-reveal animations | Included | | Dark/light theme toggle | Included | | Responsive (mobile-first) | Included | | Print-ready stylesheet | Included | | Reduced-motion support | Included | | Zero external dependencies | Included | | Single self-contained HTML file | Included |

Frontmatter

Control the output with YAML frontmatter at the top of your markdown:

---
title: My Project
subtitle: The official documentation
theme: dark
toc: true
animations: true
footer: "Built with mdforge"
---

CLI Options

mdforge build <file>

Options:
  -o, --output <path>     Output file path
  -t, --theme <name>      Theme: dark | light (default: dark)
  --title <string>        Document title
  --subtitle <string>     Subtitle text
  --no-toc                Disable table of contents
  --no-animations         Disable scroll animations
  -v, --version           Show version
  -h, --help              Show help

Example

Input

A standard markdown file with headings, code blocks, tables, and lists.

Output

A single .html file that looks like this:

  • Dark background with grain texture
  • Sticky sidebar with table of contents
  • Active section tracking as you scroll
  • Syntax-highlighted code blocks with language badges
  • Smooth scroll-reveal animations
  • One-click dark/light theme toggle
  • Print-ready (hides sidebar, light background)
  • Works offline (zero external dependencies)

Code Highlighting

mdforge automatically highlights code blocks. Just specify the language:

function calculateTax(assessedValue, rate) {
  const basic = assessedValue * rate.basicRpt;
  const sef = assessedValue * rate.sefRate;
  return { basic, sef, total: basic + sef };
}
def calculate_penalty(balance, months_late, rate=0.02, cap=0.72):
    """LGC Section 255: 2% per month, 72% cap"""
    penalty_rate = min(months_late * rate, cap)
    return round(balance * penalty_rate, 2)
# Deploy in one command
docker-compose up -d

How It Works

  1. Parse — Reads your .md file, extracts frontmatter and content
  2. Transform — Converts markdown to HTML, builds table of contents, highlights code
  3. Render — Wraps everything in the premium theme with inline CSS and JS
  4. Output — Writes a single self-contained .html file

No build folder. No assets directory. No configuration. One file in, one file out.

Design Philosophy

Your docs should look as good as your product.

mdforge is opinionated about aesthetics and unopinionated about everything else:

  • Dark-first — because developers live in dark mode
  • Typography matters — Inter for prose, JetBrains Mono for code
  • Whitespace is a feature — generous padding, not cramped
  • Animations with purpose — subtle reveals, not distracting
  • Accessibility built-in — reduced motion, print styles, semantic HTML
  • Zero lock-in — the output is plain HTML, take it anywhere

Tech Stack

| Component | Choice | |-----------|--------| | Runtime | Node.js 18+ | | Markdown | markdown-it | | CLI | commander | | Dependencies | 2 total |

License

MIT — do whatever you want.

Credits

Built by CozyDevKit. Part of the Cozerna platform family.


Stop shipping ugly docs.