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

mdoipk

v1.1.0

Published

A lightweight Markdown viewer & editor with real-time preview, served locally in your browser

Readme

mdoipk

Markdown viewer & editor with real-time preview in your browser.

npm


Features

  • Split-pane editor (CodeMirror 6) + live preview
  • Syntax highlighting for fenced code blocks (highlight.js, 190+ languages)
  • File watcher — external changes reflect in the browser instantly
  • Drag the divider to resize panes; cycle through Split / Editor-only / Preview-only layouts
  • Ctrl+S / Cmd+S to save
  • View-only mode (mdoipk <file>) and editor mode (mdoipk edit <file>)
  • Dark theme, zero config, works offline

Install

npm install -g mdoipk

Usage

# View-only preview (read the file, watch for external changes)
mdoipk README.md

# Full editor with live preview
mdoipk edit README.md

# Create a new file
mdoipk edit notes.md

# Scratch pad (no file, in-memory only)
mdoipk edit

# Custom port
mdoipk edit README.md -p 4000

# Skip auto-opening browser
mdoipk README.md --no-open

Programmatic API

const { startServer, renderMarkdown } = require('mdoipk');

// Start the server
startServer({ filePath: '/path/to/file.md', port: 3399, autoOpen: true, mode: 'edit' });

// Render Markdown to HTML string
const html = renderMarkdown('# Hello **world**');

Keyboard Shortcuts

| Shortcut | Action | |---|---| | Ctrl+S / Cmd+S | Save file | | Tab | Indent | | Ctrl+Z / Cmd+Z | Undo | | Ctrl+Shift+Z | Redo |


License

MIT


mdoipk(中文说明)

Markdown 查看与实时编辑器,运行于本地浏览器。


功能

  • 左侧 CodeMirror 6 编辑,右侧实时预览
  • 代码块语法高亮(highlight.js,支持 190+ 语言)
  • 文件监听,外部修改自动刷新预览
  • 拖动分隔线调整宽度,一键切换 分屏/仅编辑/仅预览
  • Ctrl+S 保存文件
  • 只读预览模式(mdoipk <file>)和完整编辑模式(mdoipk edit <file>
  • 深色主题,无需配置,离线可用

安装

npm install -g mdoipk

使用

# 只读预览(外部修改自动同步)
mdoipk README.md

# 完整编辑器
mdoipk edit README.md

# 暂存区(不绑定文件)
mdoipk edit

# 自定义端口
mdoipk edit README.md -p 4000

License

MIT