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/module-seo

v0.20.10

Published

SEO module for karaoke-cms — OG images, JSON-LD, robots.txt

Readme

@karaoke-cms/module-seo

Zero-config SEO for karaoke-cms — OG social card images, JSON-LD structured data, canonical tags, Twitter meta, robots.txt (with Sitemap: when site is set), and llms.txt for LLM-oriented discovery. Add it once; every published page gets the full treatment automatically.

Installation

npm install @karaoke-cms/module-seo

Usage

// karaoke.config.ts
import { defineConfig } from '@karaoke-cms/astro';
import { seo } from '@karaoke-cms/module-seo';

export default defineConfig({
  // ...
  modules: [seo()],
});

No options required. The module reads your existing title, description, date, and author frontmatter fields automatically.

What it adds

OG social card images

At build time, the module scans your dist/ folder and generates a .png social card for every page that has an og:title meta tag. Images are written to dist/og/<path>.png and wired up as og:image automatically.

Cards are rendered with Satori using a bundled Inter font — no external services, no API keys.

JSON-LD structured data

Every blog post gets a BlogPosting schema. Every docs page gets a TechArticle schema. Fields populated: name, description, datePublished, author.

Head meta tags

The module injects (or fixes) the following on every page:

| Tag | Value | |-----|-------| | <title> | De-duplicated (no My Site — My Site) | | canonical | Full URL from site in astro.config.mjs | | og:title | Post/doc title | | og:description | Frontmatter description | | og:site_name | Site title from karaoke.config.ts | | og:locale | en_US | | twitter:card | summary_large_image | | twitter:title | Post/doc title | | twitter:description | Frontmatter description |

robots.txt

Writes /robots.txt on build, allowing all crawlers and disallowing /karaoke-cms/ (the dev-only handbook). When site is set, adds a Sitemap: line if the Astro sitemap integration emitted sitemap-index.xml or sitemap.xml in dist/.

llms.txt

Writes /llms.txt on build when site is set — a small index (home, sitemap, RSS, optional JSON index link) for tools that look for it. Opt out with seo({ llmsTxt: false }). Optional llmsSiteTitle and llmsTxtExtra let you customize the heading and append Markdown.

karaoke-public-content.json

Writes a metadata manifest of public pages (url, title, optional description, datePublished, author, ogType) by scanning built HTML for Open Graph and article meta. Same trust boundary as the static site. Opt out with seo({ contentManifest: false }).

Routes

| Pattern | Description | |---------|-------------| | /robots.txt | Allows all crawlers, optional Sitemap: line, disallows /karaoke-cms/ | | /llms.txt | Optional LLM-oriented index (when site is set and llmsTxt is not false) | | /karaoke-public-content.json | Optional page metadata index (when site is set and contentManifest is not false) |

Requirements

Set site: in astro.config.mjs to your production URL for canonical tags and OG images to resolve correctly:

// astro.config.mjs
export default defineConfig({
  site: 'https://your-domain.com',
  // ...
});

What's new in 0.18.2

  • rel=canonical injection from og:url -- after generating OG images, the module now scans all built HTML files. Any page that has an og:url meta tag but no existing <link rel="canonical"> gets one injected automatically, matching the og:url value. This ensures search engines see a canonical URL on every page without requiring theme authors to add the tag manually.
  • Dead robots.txt page removed -- the static robots.txt.ts Astro page file has been deleted. robots.txt is now written directly to dist/ during the astro:build:done hook, which is simpler and avoids route injection.

What's new in 0.13.1

No user-facing changes in this release.

What's new in 0.11.3

No user-facing changes in this release.

What's new in 0.11.0

  • Initial release — OG image generation, JSON-LD structured data, robots.txt
  • Title deduplication — fixes My Site — My Site in <title> tags
  • Canonical URLs<link rel="canonical"> on every page
  • Rich metaog:site_name, og:locale, Twitter card tags
  • Rich JSON-LDdatePublished and author fields on article schemas