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

finch-markdown-editor

v0.2.24

Published

A Markdown editor and WeChat Official Account style preview, with selection-based AI edits and AI-generated custom styles.

Readme

写字 (Writing)

一款为码字工作者打造的 Markdown 写作小程序:本地文件直接编辑、微信风格排版预览、专注模式、AI 批注改写,全部在你自己的机器上完成。


它解决什么问题

写长文最怕三件事:

  1. 一边写一边想排版,思绪被打断;
  2. 改一个段落要复制粘贴来回倒腾,还容易弄丢草稿;
  3. 写完发公众号才发现格式不对,返工重排。

「写字」把这三件事合到了一起:Markdown 就是你的源文件,预览即所得,AI 帮你改稿,草稿永不丢。


快速上手

  1. 从 Finch 右侧面板打开 写字。
  2. 点击工具栏「文件夹」图标选择一篇 .md 文件(或直接新建一篇)。
  3. 开始写。写的过程中随时:

| 想做的事 | 怎么操作 | | --------- | ---------------------------- | | 打开/新建文档 | 工具栏「文件夹」/ 首页「新建文档」 | | 保存 | Cmd/Ctrl + S(改动会自动落盘,不用惦记) | | 切换公众号预览 | 工具栏「预览」按钮,所见即所得 | | 让 AI 改一段话 | 框选文字 → 描述要求 → 加入对话 | | 专注不被打扰 | 工具栏「专注」(羽毛图标),当前行居中、其余行变淡 | | 行距宽松点写 | 字体菜单 → 舒适(紧凑/舒适两档) | | 排版风格 | 预览模式下点「调色板」,8 种内置风格任选 | | 自定义 AI 排版 | 预览浮层「让 AI 设计排版」 |


给码字工作者的能力

✍️ 写,像在用编辑器

  • 原生 CodeMirror 6 内核:语法高亮、软换行、选区、撤销历史、行号,应有尽有。
  • 高亮标记:用 ==文字== 划重点,预览中会渲染成高亮底色;编辑时把光标移入这段文字,== 界定符会自动显示出来,移出后收起,和粗体/斜体一致。
  • 草稿永不丢:每次按键内容都会后台留存;就算手滑关掉标签页,重新打开也会自动恢复未保存的内容。文件在别处被改过?会提示冲突,但你的草稿仍然保留。
  • 专注模式:开启后光标所在行自动平滑滚动到屏幕中央,其余行 70% 变淡——长文写作不再追着光标跑。
  • 紧凑 / 舒适:两档行距,阅读时紧凑、写作时宽松,随时切换。
  • 文件被外部修改会自动刷新,编辑器和磁盘永远同步。

🔍 批注:框选即问

选中一段文字,弹窗里写下你的要求("更口语一点"、"扩写成三句话"、"换个更有力的开头"),内容会带着精确的行号和原文进入 Finch 对话。AI 改完给出可替换片段,确认后才写入文件——不会乱改你的稿子。

🎨 预览与排版

  • 点击「预览」即时看到公众号文章效果,支持 8 种内置风格(暖纸感、几何撞色、蓝图网格、清新绿、报刊衬线、复古、手绘、终端)。
  • 预览浮层可复制到公众号(内联样式富文本,直接粘贴)、导出图片或 PDF。
  • 想要独一无二的排版?让 AI 基于你的文章设计自定义 CSS,一键应用并保存,下次写文直接复用。

🛡️ 本地优先

  • 所有文件都在你自己的磁盘上,内容不出本机。
  • 渲染引擎 bmmd 已随小程序内置,预览无需联网下载;没有常驻服务。

架构说明(给开发者)

编辑器是小程序内集成的 CodeMirror 6,负责解析、高亮、选区、撤销与键盘编辑;文件读写、草稿恢复、批注上下文、保存状态、工具栏与预览容器由 Finch 小程序负责。bm.md 仅作为渲染引擎:小程序按需调用 bmmd render --platform wechat,把返回的内联样式 HTML 显示在沙箱 iframe 中。

小程序采用 MIT 许可证;随包分发的 bm.md / [email protected] CLI 采用 LGPL-3.0-only,其许可证文本位于 dist/bmmd/LICENSE。