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

@excom/nucleus-quark-highlighter

v0.1.5

Published

VS Code syntax highlighting for Quark sheets and Nucleus-style HTML

Readme

nucleus-quark-highlighter

Quark sheets and Nucleus-style HTML, highlighted and formatted in VS Code / Cursor — the same grammar that colors every code block on this site.

The Nucleus & Quark Syntax Highlighter extension adds a Quark language for .quark files, highlights Quark inside <quark-sheet> in HTML, and gives custom elements and dashed attributes their own color so Adapters and their state stand apart from native markup. Tags, custom tags, attributes and custom attributes share one palette in both grammars, so a sheet and the markup it orchestrates read the same way.

<section>
  <provider-fetch api-url="/api/todos">
    <ul><template><li></li></template></ul>
  </provider-fetch>
  <quark-sheet>
    provider-fetch[is-success] {
      $todos: prop("provision").body;
      ul { content: iterate($todos); }
      li { content: item.title; }
    }
  </quark-sheet>
</section>

Features

  • Quark language .quark files with CSS-familiar highlighting, folding, bracket matching and /* */ comments; Quark's at-rules — @use, @scope, @on with its event list, @dispatch / @command, @view-transition, @delay, @warn / @debug / @error — color their names, options groups, durations, messages and blocks
  • Quark's language, nothing else An at-rule Quark does not have, such as @media or @keyframes, is colored as an error, because Quark's parser rejects it
  • Inline sheets Quark inside <quark-sheet> in HTML is highlighted as Quark
  • Custom elements stand out Dashed tags / dashed attributes get their own color in HTML and in Quark selectors; a dashed tag keeps that color wherever it appears in a selector — attribute-qualified, inside :is() / :not() / :has(), or before a pseudo-class or pseudo-element
  • Format Document .quark files format with @excom/quark-formatter (Shift+Alt+F)
  • Format inline sheets Quark: Format <quark-sheet> blocks formats every sheet in the open HTML file
  • File icon .quark files carry the Quark icon in the explorer and tabs
  • Shiki grammar @excom/nucleus-quark-highlighter/shiki highlights Quark / Nucleus HTML in docs and static sites

Installation

Install Nucleus & Quark Syntax Highlighter from the editor's Extensions view, or from the registries directly:

  • VS Code — Visual Studio Marketplace, or ext install excom.nucleus-quark-highlighter in Quick Open
  • Cursor / VSCodium / Windsurf — these editors do not read the Marketplace; install the .vsix by hand (below)

To install a build by hand, download nucleus-quark-highlighter-<version>.vsix from the GitHub releases and run code --install-extension <file> (cursor --install-extension in Cursor).

For docs sites and build tooling the grammar is also on npm:

npm install @excom/nucleus-quark-highlighter

Usage

Open a .quark file and the language mode is Quark. Open any HTML file and <quark-sheet> bodies, custom elements and dashed attributes are colored without further setup.

Formatting

  • .quark files — Format Document (Shift+Alt+F, or format-on-save) reformats the whole file
  • Inline sheets in HTML — run Quark: Format <quark-sheet> blocks from the Command Palette; every sheet body in the active file is formatted and re-indented one level past its tag

Inline sheets need the command because VS Code's HTML formatter only formats the <style> / <script> bodies it knows about and offers no hook for custom tags. A sheet that does not parse is left untouched and the reason appears in the status bar.

Shortcuts

Cmd+/ (Ctrl+/) and Shift+Alt+A both toggle /* */ comments. Quark's comments are CSS's own, so there are no // line comments.

Highlighting with Shiki

The extension's TextMate grammars are exported for Shiki:

import { createHighlighter } from "shiki";
import { shikiLangs } from "@excom/nucleus-quark-highlighter/shiki";

const highlighter = await createHighlighter({
  themes: ["github-light", "github-dark"],
  langs: ["html", "css", ...shikiLangs],
});

highlighter.codeToHtml(source, { lang: "quark", theme: "github-dark" });

quark highlights standalone sheets. html-custom-elements is an injection: once registered, every html block gets custom-element / dashed-attribute coloring and Quark highlighting inside <quark-sheet>. Load css alongside them; the Quark grammar embeds it.


Full documentation: https://nucleus.excom.dev/packages/nucleus-quark-highlighter