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

@karaoke-cms/theme-default

v0.18.1

Published

Default theme for karaoke-cms — two-column knowledge base with blog and docs

Readme

@karaoke-cms/theme-default

Two-column knowledge base theme for karaoke-cms — blog, docs, and tags with a clean system-UI design and automatic dark mode.

Installation

npm install @karaoke-cms/theme-default @karaoke-cms/module-blog @karaoke-cms/module-docs

Usage

// karaoke.config.ts
import { defineConfig } from '@karaoke-cms/astro';
import { loadEnv } from '@karaoke-cms/astro/env';
import { blog } from '@karaoke-cms/module-blog';
import { docs } from '@karaoke-cms/module-docs';
import { themeDefault } from '@karaoke-cms/theme-default';

const env = loadEnv(new URL('.', import.meta.url));

export default defineConfig({
  vault: env.KARAOKE_VAULT,
  title: 'My Site',
  theme: themeDefault(),
  modules: [
    blog({ mount: '/blog' }),
    docs({ mount: '/docs' }),
  ],
});

Configuration

themeDefault() takes no arguments. Pass modules via modules: [] in defineConfig() — the core integration passes them to the theme at build time.

Routes

| Route | Description | |-------|-------------| | / | Home — recent blog posts + recent docs | | /blog, /blog/[slug], /blog/page/[page] | Blog section (from module-blog) | | /docs, /docs/list, /docs/[slug] | Docs section (from module-docs) | | /tags | All tags with post counts | | /tags/[tag] | Posts filtered by tag | | /404 | Not found page |

Routes for modules listed in modules[] are injected by the module package. Other routes (tags, 404, home) are injected by the theme as fallbacks.

Design system

All tokens are CSS variables on :root:

  • Typography: --font-body, --font-mono, --font-size-base, --font-size-sm/lg/xl
  • Color: --color-bg, --color-text, --color-muted, --color-border, --color-link
  • Spacing: --spacing-xs/sm/md/lg/xl
  • Sizing: --width-content (680px), --width-site (800px)

Dark mode is automatic via @media (prefers-color-scheme: dark) — no JavaScript toggle.

Layout regions

Configure sidebar content in karaoke.config.ts:

layout: {
  regions: {
    right: { components: ['recent-posts'] },
  },
}

Available: 'header', 'main-menu', 'search', 'recent-posts', 'footer'.

What's new in 0.18.1

  • New landing page — the default / home page now shows a "Your site is live" hero and your three most recent blog posts, giving a working first impression out of the box. Override it by adding src/pages/index.astro to your project.

What's new in 0.18.0

  • Docs section switcher -- when multiple docs sections are configured, a styled navigation bar appears with a heading, pill-style links, and an active state using --color-accent. New CSS classes: .docs-section-switcher, .docs-section-switcher-title, .docs-section-switcher-list, .docs-section-link.

What's new in 0.17.0

  • themeDefault() takes no arguments — the implements: [] option is removed. Pass modules via modules: [] in defineConfig() instead.
  • Submenu rendering — the main nav renders hover/click submenus for entries with nested children (from parent: in menus.yaml or parent: on DocsSection array items). A toggle button is included for keyboard and touch accessibility.

What's new in 0.13.1

No user-facing changes in this release.

What's new in 0.10.2

  • Section-aware tags and RSS/tags, /tags/[tag], and /rss.xml now aggregate entries across all active docs sections, not just the default /docs section.
  • No other user-facing visual changes in this release.

What's new in 0.9.5

  • themeDefault() function API replaces the old string theme: '@karaoke-cms/theme-default'
  • implements option — pass blog() and/or docs() module instances to wire up content sections; routes come from the module packages
  • No user-facing visual changes in this release