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

markbun

v0.3.0

Published

Render markdown beautifully in your terminal — powered by Bun.markdown

Readme

markbun

Render markdown beautifully in your terminal — powered by Bun's native Bun.markdown engine.

Blazingly fast. ANSI-colored terminal output and HTML export.

Install

bun install -g markbun

Usage

# Render a file to the terminal
markbun README.md

# Render from stdin
cat README.md | markbun

# Export to HTML
markbun doc.md --html -o doc.html

# Custom line width
markbun article.md --columns 60

# Disable colors (plain text)
markbun README.md --no-color

# Enable clickable links
markbun README.md --hyperlinks

# Light terminal theme
markbun README.md --light

Options

| Flag | Description | | ----------------------- | ----------------------------------------- | | --html, -H | Output as HTML instead of ANSI | | --out, -o <file> | Write output to file | | --columns, -w <n> | Line width for wrapping (default: 80) | | --no-color | Disable ANSI colors | | --hyperlinks | Enable clickable OSC 8 hyperlinks | | --light | Use light terminal theme colors | | --images | Display inline images (Kitty protocol) | | --collapse-whitespace | Collapse whitespace in text | | --permissive-atx | Allow ATX headers without space after # | | --no-indented-code | Disable indented code blocks | | --no-html-blocks | Disable HTML blocks | | --no-html-spans | Disable inline HTML spans | | --tag-filter | Enable GFM tag filter | | --version, -v | Show version | | --help, -h | Show help |

Features

  • Terminal rendering via Bun.markdown.ansi() — headings, lists, tables, code blocks with syntax highlighting, blockquotes, links, images, and horizontal rules
  • HTML export via Bun.markdown.html() — GitHub Flavored Markdown support (tables, strikethrough, task lists) with configurable parser options
  • Custom rendering via render() — fine-grained control over output with per-element callbacks
  • React rendering via renderToReact() — render markdown to React JSX elements
  • Stdin support — pipe markdown directly into the tool
  • Fast — built on Bun's native runtime with zero overhead

Development

# Install dependencies
bun install

# Run in development
bun start -- README.md

# Lint and format
bun run check

# Build for distribution (JavaScript)
bun run build

# Build a standalone executable
bun run build:compile

The build:compile script creates a native binary (markbun) for the current platform using Bun's --compile flag.

Publishing

bun run build
npm publish

The prepublishOnly hook runs the build automatically.

License

Apache 2.0