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

@gangtiser/md2wechat

v0.2.0

Published

TypeScript md2wechat CLI, Skill, and MCP server for local Markdown to WeChat HTML conversion.

Readme

md2wechat

md2wechat is a TypeScript CLI, Codex Skill, and MCP server for turning Markdown into WeChat Official Account HTML. It runs locally, uses deterministic conversion, and lets Codex or Claude handle any AI writing before calling the tool.

Install

npm install -g @gangtiser/md2wechat

Node.js 20 or newer is required. Initialize customer configuration before using WeChat account features:

md2wechat config init

Open the generated config file and fill in:

{
  "WECHAT_APP_ID": "your_app_id",
  "WECHAT_APP_SECRET": "your_app_secret"
}

Environment variables can override the file:

export WECHAT_APP_ID="your_app_id"
export WECHAT_APP_SECRET="your_app_secret"

Defaults & Agent Usage

  • Runtime: Node.js 20+
  • Markdown conversion: local deterministic renderer
  • AI authoring/editing: use the host agent, such as Codex or Claude CLI
  • No hosted md2wechat conversion service is used.

CLI Usage

md2wechat inspect article.md --json
md2wechat config init --json
md2wechat config status --json
md2wechat themes list --json
md2wechat convert article.md --theme default --output article.html --json
md2wechat preview article.md --theme default --output preview.html --json

Theme management:

md2wechat themes register custom ./themes/custom.json --json
md2wechat themes remove custom --json

MCP Usage

Start the stdio MCP server:

md2wechat mcp

Example MCP client configuration:

{
  "mcpServers": {
    "md2wechat": {
      "command": "md2wechat",
      "args": ["mcp"],
      "env": {
        "WECHAT_APP_ID": "your_app_id",
        "WECHAT_APP_SECRET": "your_app_secret"
      }
    }
  }
}

Available tools:

  • convert_article
  • preview_article
  • list_themes
  • register_theme
  • remove_theme

Configuration

  • WECHAT_APP_ID: optional environment override for the configured WeChat AppID
  • WECHAT_APP_SECRET: optional environment override for the configured WeChat AppSecret
  • MD2WECHAT_CONFIG: optional path to the JSON config file
  • MD2WECHAT_THEME_REGISTRY: optional custom theme registry file
  • MD2WECHAT_THEMES_DIR: optional custom theme directory

Theme File Format

Custom themes are JSON files:

{
  "id": "custom",
  "name": "Custom",
  "description": "Optional description",
  "prompt": "Style guidance for the renderer."
}

Development

npm install
npm run typecheck
npm test
npm run verify

Generated build output lives in dist/ and is packaged for npm, but not committed to git.