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

@rxova/astro-ui

v0.7.0

Published

Astro components, Starlight preset and shared chrome for rxova.dev

Readme


Use

In a Starlight docs site

// astro.config.mjs
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import { sharedStarlightConfig } from "@rxova/astro-ui/starlight";

export default defineConfig({
  site: process.env.DOCS_URL ?? "https://rxova.dev",
  base: process.env.DOCS_BASE_URL ?? "/",
  integrations: [
    starlight(
      sharedStarlightConfig({
        project: "use-everywhere",
        sidebar: [{ label: "Learn", items: [{ autogenerate: { directory: "learn" } }] }],
      }),
    ),
  ],
});

That gets you the tokens, the typefaces, the rxova mark linking back to the umbrella site, the cross-project switcher, the shared footer and Pagefind search.

In a plain Astro site

---
import "@rxova/brand/fonts.css";
import "@rxova/astro-ui/styles/document.css";
import SiteFooter from "@rxova/astro-ui/components/SiteFooter.astro";
---

document.css is chrome.css plus a reset and base element styles. Load chrome.css alone where something else owns the document: its reset is unlayered and would flatten a Starlight page.

What's in it

| Export | What it is | | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- | | @rxova/astro-ui/starlight | sharedStarlightConfig(), the preset every docs site spreads | | @rxova/astro-ui/starlight/*.astro | The Starlight overrides: SiteTitle, SocialIcons, Footer, ThemeSelect | | @rxova/astro-ui/components/*.astro | Chrome (Header, SiteFooter, …), primitives (PageHeader, BackLink, ShowMore, VisuallyHidden, Icon) and the components in the gallery | | @rxova/astro-ui/components/icons/*.astro | Glyphs in the Icon frame: Prev, Next, Play, Pause, Replay, Expand, Collapse | | @rxova/astro-ui/scripts/show-more | enhanceShowMore(): batches a [data-reveal-list] behind a ShowMore | | @rxova/astro-ui/lib/entries | Ordering, bylines, dates and excerpts shared by /blog and /updates | | @rxova/astro-ui/styles/document.css | For sites that own their document: chrome.css, a reset, base element styling | | @rxova/astro-ui/styles/chrome.css | What the header and footer need, with nothing document-level | | @rxova/astro-ui/styles/starlight.css | Maps --rx-* onto Starlight's --sl-*, plus the footer | | @rxova/astro-ui/styles/landing.css | The Starlight overrides a splash landing page needs; load it through customCss | | @rxova/astro-ui/styles/mermaid.css | Restyles rehype-mermaid's build-time SVG with the tokens, so diagrams follow the theme |

There is no barrel: each component has its own path, so a page only loads the CSS of the components it imports.

Development

Run everything from the repo root. apps/preview renders the Starlight preset and the plain-Astro chrome; pnpm run verify runs astro check, the tests and the export checks for this package.

apps/preview also carries the gallery: one page per component under /gallery/, each state in a Story frame. pnpm --filter @rxova/preview screenshots rebuilds it and writes screenshots/<component>.png here (git-ignored), light and dark, to attach to the pull request that adds or changes a component.

apps/storybook is the Storybook: a story file per component with its states, a Docs page built from the component's frontmatter, and a light/dark toolbar. pnpm --filter @rxova/storybook dev serves it with live controls.

License

MIT © Jonatan Kruszewski