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

v0.5.1

Published

The whole Nucleus Stack in one package — elements, Quark, Valence.css

Downloads

821

Readme

NucleusKit

The whole Nucleus Stack in one package — every element, provider, Quark, and Valence.css behind a single import.

Features

  • One JS import Registers every NucleusKit element
  • One CSS import Valence.css theme + shared element styles (basic.css)
  • App-ready Routing, sheets, forms, drawers, providers, and more
  • À la carte Every package is published on its own; if you only use a few elements, install just those

Installation

Usage

import "@excom/nucleus-kit";
@import "@excom/nucleus-kit/basic.css";

That loads Valence.css (basic theme) plus element CSS and registers the packages below.

Progressive bundle (experimental)

nucleus-kit.progressive.min.js registers nothing up front. It watches the document for NucleusKit element tags and imports each element's package the first time its tag appears (initial scan, then every inserted subtree), so a page pays only for the elements it uses. Packages shared by several elements (neutron, kit-utils, quark, the element bases) are separate chunks under dist/progressive/, fetched once. The entry is 3.5 kB; a page using quark-sheet and content-drawer loads ~55 kB gzip less than the all-in build.

<script type="module" src="/node_modules/@excom/nucleus-kit/dist/nucleus-kit.progressive.min.js"></script>

With a bundler, import "@excom/nucleus-kit/nucleus-kit.progressive"; loads the same entry.

Trade-offs: elements upgrade one network round-trip later (style the pre-upgrade state with :not(:defined)), it is ES modules only, and elements inside a shadow root need observeElements(shadowRoot) from the same module. The all-in index.umd.min.js and the ESM index.js are unchanged.

On a prerendered page, the packages for the tags present at startup load before hydration ends, so those elements keep the prerendered markup.

Idle loading

Prefetch the remaining packages once the page has loaded, so later views, dialogs and SPA navigations upgrade instantly with no round-trip. Packages load one per browser idle period; tags already on the page load first and are never fetched twice.

Opt in on <body> (works with inline / bundled imports) or on the entry's own <script>:

<body nucleus-kit-idle>                                    <!-- every package -->
<body nucleus-kit-idle="spa-route super-form data-table">  <!-- only these -->

<script type="module" src="/node_modules/@excom/nucleus-kit/dist/nucleus-kit.progressive.min.js" data-idle></script>

An empty value loads everything; a space-separated list loads only the packages behind those tags (unknown tags log a warning). data-idle is read only from the <script> whose src is the entry itself and wins over the body attribute. Nothing is prefetched in data-saver mode (Save-Data). From JS, idleLoadElements(tags?) does the same.

Server entry

@excom/nucleus-kit/server is the kit for prerendering in Node: every export of the main entry except the elements that read the device or the person (detect-browser, detect-features, detect-media, gesture-handler, network-status, provider-geolocation, provider-orientation, provider-storage, service-worker, web-authn). Those stay as written in the prerendered page and upgrade in the browser; SERVER_EXCLUDED_TAGS lists their tags. It also exports the hooks a prerender runs around each page (beforeRender, settle, afterRender), so it is the whole entry of a nucleus-ssr config: entry: () => import("@excom/nucleus-kit/server"). ES modules only, not for the browser.

À la carte

NucleusKit is a convenience, not a requirement. If you find you are not using most of its elements, install the packages you do use individually and drop it:

npm install @excom/quark-sheet @excom/provider-fetch @excom/content-drawer
import "@excom/quark-sheet";
import "@excom/provider-fetch";
import "@excom/content-drawer";

Each package is self-contained — same elements, same versions, same CSS hooks — and its README documents the slim install. Valence.css is @excom/valence.

TypeScript

Generally, you are advised to avoid TypeScript unless your app starts having a lot of complex JS customization. In that case, NucleusKit elements declare global types: their HTML…Element interfaces, HTMLElementTagNameMap entries (so querySelector("spa-manager") and closest(…) are typed) and Quark's element.quark. TypeScript loads them only when it sees an import of the package, so an app that loads NucleusKit from a <script type="module"> or a CDN gets "Property does not exist" on element.closest("spa-manager")?.router or element.quark.

Add one declaration file that the app's tsconfig.json includes:

// globals.d.ts
import "@excom/nucleus-kit";

A .d.ts file emits nothing: no runtime import, no bundle cost. À la carte apps import each package they use instead (import "@excom/spa-route"; import "@excom/quark";). If a TypeScript file in the app already imports NucleusKit or the packages, nothing is needed.

What's included

Core

Layout / chrome

Content / routing

Forms / auth

Providers

Platform

Not in NucleusKit

Install separately when needed: mapbox-view, super-img, element bases (abortable-element, fetchable-element, …), and editor tooling such as nucleus-quark-highlighter.


Full documentation: https://nucleus.excom.dev/packages/nucleus-kit