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-details

v0.11.5

Published

collapsible <details> sections for aragonite, the cute markdown editor lib

Readme

@voithos-labs/aragonite-details

Collapsible sections for aragonite. The <details> block you'd write for GitHub becomes a section that folds open and shut, with its summary and its body both editable right where they are. Never heard of aragonite? The readme covers what it is, and aragonite.dev has a demo you can type in.

What it reads

<details>
<summary>Spoilers</summary>

The butler did it.

</details>

The plugin takes this one shape: <details> (or <details open>) alone on its line, <summary>…</summary> on the very next one, then the body, which is ordinary Markdown, then </details> alone on its line. Anything else (a class on the tag, a summary spread over two lines, no closing tag) stays the plain HTML block it always was.

It's HTML in the file either way. Without the plugin it's an HTML block, and GitHub draws it as the same collapsible section.

Install

npm install @voithos-labs/aragonite @voithos-labs/aragonite-details

The plugin and the editor release together, and the plugin wants the editor's exact version, so bump both at once.

Use it

import { detailsPlugin } from '@voithos-labs/aragonite-details';

const plugins = [detailsPlugin()];

No options. Pass plugins to the editor, and build the array once for the app rather than per editor. Things that might surprise you:

  • Outside Svelte, add @voithos-labs/aragonite-details/style.css to the stylesheets you already import for the editor.
  • Opening or closing a section while you edit adds or drops the open on the tag, as one undo step, so the file remembers how you left it. In reading mode the toggle is only for looking, and the file stays put.
  • While you edit, a jump into a closed section (a search match, a table-of-contents entry) opens it first, which writes the open the same way.
  • Enter in the summary moves you into the body.
  • Type a stray <details> or </details> line inside the body and its < is saved as &lt;, so it can't end the section early. It still shows as <, here and on GitHub.

More

The consumer guide has the rest of the bundled plugins, and the plugin guide's container walkthrough builds a block that holds other blocks from scratch, collapse toggle included, if you'd rather write your own.

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.