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

comark-icon

v0.11.0

Published

Iconify icons in Markdown, as :icon{name="lucide:apple"}, drawn as CSS in every renderer with no script. A shared resolver for other plugins' icons. A Comark plugin.

Readme

comark-icon

npm version npm downloads license docs

Iconify icons in Markdown, written as :icon{name="lucide:apple"}. Icons are resolved while parsing and drawn as CSS images, so the page asks no server for them and they show without a script. An icon in one color takes the color of the text around it; a logo keeps its own. A Comark plugin for HTML, Vue, React, and Svelte.

pnpm add comark comark-icon
import { createHtmlRenderer } from "@comark/html";
import icon, { components } from "comark-icon/html";

const render = createHtmlRenderer({ plugins: [icon()], components });
Press :icon{name="lucide:command"} K to search.

Built with :icon{name="logos:vue" label="Vue"}.

name is set:name, from any set on icones.js.org, or an image URL. Nuxt UI's i-lucide-apple works too. Without a label the icon is decoration and screen readers skip it.

With no options, icons come from the Iconify API. To build offline, install the sets you use and pass them: icon({ collections: { lucide }, fetch: false }), with import { icons as lucide } from "@iconify-json/lucide". A set can also be SVG markup by name, for icons of your own. fetch takes the URL of an Iconify API of your own, too.

The plugin adds every problem to meta.issues and leaves the icon out.

Renderers

| Renderer | Import | | --- | --- | | @comark/html | comark-icon/html: the styles are inlined | | @comark/vue | comark-icon/vue | | @comark/react | comark-icon/react | | @comark/svelte | comark-icon/svelte |

Each entry exports the parse plugin as default and the renderer's components. Import comark-icon/style.css with your styles when you render on a server.

An icon is a .ci, 1em tall; set --comark-icon-size to change it. The rules sit in a comark CSS layer, so any plain rule of your own wins; see the icon's Theming page.

For other plugins

createIcons(options) returns a resolver with resolve(names), which never throws and maps each name to its icon or its problem; describeIconProblem() words a problem the way this plugin does. Pass one resolver to every plugin that draws icons, so a page sets its options once, and draw with iconHtml() and iconStyles(state) from comark-icon/html or the Icon component. See Guides.