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

@voithos-labs/aragonite-highlight-occurrences

v0.11.5

Published

highlights the word under the caret for aragonite, the cute markdown editor lib

Readme

@voithos-labs/aragonite-highlight-occurrences

Put the caret on a word and every place that word appears lights up, the way a code editor does it. That's this plugin, for aragonite (a Markdown editor: the readme has the details, aragonite.dev the demo).

What it does

Move the caret onto rock and every rock in the document gets highlighted, the one you're on included. Move to another word and the highlights follow; land on a space and they go away.

  • It matches whole words, exactly: rock doesn't light up Rock or rocks. A word is letters, digits and underscores.
  • Code blocks and HTML blocks are skipped, both as places to look and as words to look for.
  • The highlights hide while you type and come back a quarter second after you stop, so nothing flickers under your caret mid-sentence.

The highlight is painted over the text, so nothing is ever written to the file.

Install

npm install @voithos-labs/aragonite @voithos-labs/aragonite-highlight-occurrences

Its version always matches the editor's exactly, so the two move together.

Use it

import { highlightOccurrencesPlugin } from '@voithos-labs/aragonite-highlight-occurrences';

const plugins = [highlightOccurrencesPlugin()];

Pass plugins to the editor, built once for the app. Then give the highlight a color, because the plugin doesn't pick one. It lays a box over each match with the classes decoration-overlay hl-occurrence, and that box is see-through until something gives it a background. The demo uses a translucent yellow:

.decoration-overlay.hl-occurrence {
	background: rgba(250, 204, 21, 0.18);
}

Put it in a global stylesheet (inside a Svelte component's <style>, wrap the selector in :global(...)). Forget it and the plugin still works perfectly; you just can't tell.

The factory takes one option, onScan, a callback that fires each time the plugin re-reads the document. It's there for tests, and you can safely ignore it.

More

The consumer guide has the other bundled plugins, and the plugin guide's decorations page builds this same idea step by step, if you want to paint something of your own over the text.

License

Free software, released under MPL-2.0 like the editor itself: use it, study it, fork it, embed it in whatever you're building, closed source included. The one string attached: if you change this plugin's own files, you share those changes under the same license.