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

@xberg-io/docs-theme

v0.3.0

Published

Shared Astro Starlight theme for xberg.io documentation sites.

Readme

@xberg-io/docs-theme

Shared Astro Starlight theme for xberg.io documentation sites. One versioned package carries the brand — navy/cyan/blue/purple palette, Exo 2, CDN logos and favicons, canonical Google Analytics, Open Graph defaults, and llms.txt generation — so every repo's docs stay consistent without copying assets around.

Install

pnpm add @xberg-io/docs-theme @astrojs/starlight astro starlight-llms-txt

astro and @astrojs/starlight are peer dependencies. The theme itself has no runtime dependencies and no build step — it ships .astro/CSS source plus a plain config helper.

Usage

// docs-site/astro.config.mjs
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightLlmsTxt from "starlight-llms-txt";
import { xbergStarlightConfig } from "@xberg-io/docs-theme";

export default defineConfig({
  site: "https://docs.crawlberg.xberg.io",
  integrations: [
    starlight(
      xbergStarlightConfig({
        title: "crawlberg",
        description: "Web crawling and scraping with HTML→Markdown and headless-Chrome fallback.",
        githubUrl: "https://github.com/xberg-io/crawlberg",
        editBaseUrl: "https://github.com/xberg-io/crawlberg/edit/main/docs-site/",
        plugins: [starlightLlmsTxt({ promote: ["index*", "get-started/**"] })],
        sidebar: [
          { label: "Home", link: "/" },
          { label: "Get Started", items: [{ autogenerate: { directory: "get-started" } }] },
          { label: "Guides", items: [{ autogenerate: { directory: "guides" } }] },
          { label: "Concepts", items: [{ autogenerate: { directory: "concepts" } }] },
          { label: "Reference", items: [{ autogenerate: { directory: "reference" } }] },
        ],
      }),
    ),
  ],
});

xbergStarlightConfig() returns a Starlight config object; you wrap it with starlight(). It bakes in the brand stylesheet, the CDN logo (SiteTitle override), and the favicon/OG/GA/Ads head tags.

Why not a single xbergStarlight() wrapper? Astro loads astro.config as an external node_modules module, and Node's type-stripping loader rejects the .ts entry points that both @astrojs/starlight and starlight-llms-txt ship. Importing starlight (and plugins) in your config lets Astro bundle them; the theme stays import-free and just shapes the config object.

Options

| Option | Default | Notes | | ------------------- | ----------------------------------------- | ------------------------------------------------- | | title (required) | — | Tab title + nav logo aria-label. | | description | — | Meta / social description. | | githubUrl | — | Drives the default GitHub social link. | | editBaseUrl | — | editLink.baseUrl. | | ogImage | shared OG card on jsDelivr | OG/Twitter image URL. | | googleAnalyticsId | G-8G4NQW55PF | Canonical shared GA4 property. | | googleAdsId | AW-17853694443 | Canonical shared Ads account. | | sidebar | — | Starlight sidebar. | | social | GitHub from githubUrl + shared r/xberg | Starlight social links. | | plugins | [] | Starlight plugin instances, e.g. starlightLlmsTxt(). | | head / customCss / components | — | Appended/merged after the theme's own. | | starlight | — | Escape hatch for extra Starlight config. |

Brand assets are pulled from xberg-io/assets via jsDelivr (@v1); nothing is bundled, so a brand refresh is a tag bump there.

Develop

pnpm install
pnpm --dir example dev     # runs the example site against the local theme
pnpm --dir example build

Publish

Cut a GitHub Release (or run the Publish workflow); .github/workflows/publish.yaml publishes with npm Trusted Publishing (OIDC) + provenance.

License

MIT © Kreuzberg, Inc.