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

@xsynaptic/remark-prose-rules

v0.3.0

Published

A remark plugin that reports and fixes prose spelling, terminology, and pattern issues in markdown and MDX

Readme

@xsynaptic/remark-prose-rules

Checks prose for missing diacritics and off-style terminology, in the remark pipeline, so problems show up in the editor with a suggested fix rather than only in a batch run.

Three rules ported from textlint (diacritics, terminology, pattern, MIT, Artem Sapegin). Not a textlint replacement: no rule ecosystem, no default terminology list, no suppression comments. ESM-only.

import { diacriticsMarks, diacriticsWords, remarkProseRules } from '@xsynaptic/remark-prose-rules';

remarkProseRules({
	// Correct spellings; the misspellings are worked out from them, and casing is kept
	words: [...diacriticsWords, 'mañana'],
	// Letters a spelling may be missing its mark on, plain letter last
	marks: [...diacriticsMarks, 'ōo'],
	// Case-insensitive, and skipped inside a longer word like `postwar-era`
	terms: [['metre', 'meter']],
	// Plain regex with a $n replacement
	patterns: [{ message: 'Use `--` for ranges', pattern: '(\\d)-(\\d)', replace: '$1--$2' }],
	// Nothing inside these is checked
	skip: ['blockquote'],
	// Frontmatter fields to check; `true` reuses the list above, an array replaces it
	frontmatter: { title: { words: true }, 'links[].title': { terms: [['metre', 'meter']] } },
});

Every option is empty by default, so nothing is corrected until asked for. All the rules share one skip list; to scope them differently, add a second instance with its own options.

Only body text is checked, so code, URLs and JSX attributes are left alone. Frontmatter needs remark-frontmatter and is checked only for the fields listed above, where a dot goes into a nested field and [] covers every item of a list. Those fields are edited in place, and a quoted value is reported but never changed.

Only spellings that need a mark from marks can be corrected, and passing marks replaces the built-in groups rather than adding to them. Anything transliterated, like Japanese or pinyin, is better handled by terms, which suggests instead of rewriting.

words and patterns fix as they go, while terms only reports, unless the processor carries data('editorialFixes', true). That keeps wording changes out of format-on-save. Fixes reach the file only if the pipeline ends in remark-stringify and the result is written back; behind an HTML compiler they fix the page and leave the file wrong.

MIT