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

@bliztek/seo

v1.0.1

Published

Zero-dependency SEO metadata generation and JSON-LD structured data components

Readme

@bliztek/seo

Zero-dependency SEO metadata generation and JSON-LD structured data components for Next.js.

Installation

pnpm add @bliztek/seo

React is an optional peer dependency — only required if you use the JSON-LD components.

Entry Points

| Import | What you get | |---|---| | @bliztek/seo | Metadata utilities + types | | @bliztek/seo/json-ld | React JSON-LD components |

Quick Start

Site Config

Create a central config object for your site:

import type { SiteConfig } from "@bliztek/seo";

export const siteConfig: SiteConfig = {
  url: "https://example.com",
  titleSuffix: "My Site",
  defaultImage: "/assets/cover.png",
  defaultAuthor: "Jane Doe",
  blogPathPrefix: "/blog/post",
  icons: {
    icon: "/favicon.ico",
  },
};

Generate Metadata

import { generateSEO } from "@bliztek/seo";
import { siteConfig } from "./seo-config";

export const metadata = generateSEO(
  {
    title: "About Us",
    description: "Learn more about our team.",
    url: "/about",
  },
  siteConfig
);

Blog Post Metadata

import { blogPostToSEOProps, generateSEO } from "@bliztek/seo";
import { siteConfig } from "./seo-config";

const seoProps = blogPostToSEOProps(slug, postMetadata, siteConfig);
export const metadata = generateSEO(seoProps, siteConfig);

Composable SEO Objects

import { createSEO } from "@bliztek/seo";

const baseSEO = {
  website: "https://example.com",
  url: "https://example.com",
  title: "My Site",
  description: "Default description",
  image: "/cover.png",
};

const aboutSEO = createSEO(baseSEO, "/about", {
  title: "About Us",
  description: "Learn more about our team.",
});

OG Image URLs

import { buildOgImageUrl } from "@bliztek/seo";

const ogUrl = buildOgImageUrl("My Page Title", {
  subtitle: "Category",
  type: "blog",
});
// → "/api/og?title=My+Page+Title&subtitle=Category&type=blog"

JSON-LD Components

All components render a <script type="application/ld+json"> tag with XSS-safe serialization.

BreadcrumbJsonLd

import { BreadcrumbJsonLd } from "@bliztek/seo/json-ld";

<BreadcrumbJsonLd
  items={[
    { name: "Home", url: "https://example.com" },
    { name: "Blog", url: "https://example.com/blog" },
  ]}
/>;

BlogPostingJsonLd

import { BlogPostingJsonLd } from "@bliztek/seo/json-ld";

<BlogPostingJsonLd
  title="My Post"
  description="Post description"
  date="2025-01-15"
  slug="my-post"
  siteUrl="https://example.com"
  blogPathPrefix="/blog/post"
  author={{
    name: "Jane Doe",
    url: "https://janedoe.com",
    jobTitle: "Engineer",
  }}
  publisher={{
    name: "My Site",
    url: "https://example.com",
    logoUrl: "https://example.com/logo.png",
  }}
/>;

FAQPageJsonLd

import { FAQPageJsonLd } from "@bliztek/seo/json-ld";

<FAQPageJsonLd
  faqs={[
    { question: "What is this?", answer: "A great package." },
  ]}
/>;

ServiceJsonLd

import { ServiceJsonLd } from "@bliztek/seo/json-ld";

<ServiceJsonLd
  name="Web Development"
  description="Custom web applications"
  url="https://example.com/services/web"
  provider="My Company"
  providerUrl="https://example.com"
/>;

OrganizationJsonLd

import { OrganizationJsonLd } from "@bliztek/seo/json-ld";

<OrganizationJsonLd
  name="My Company"
  url="https://example.com"
  logo="/logo.png"
  description="We build software."
  sameAs={["https://twitter.com/mycompany"]}
/>;

LocalBusinessJsonLd

import { LocalBusinessJsonLd } from "@bliztek/seo/json-ld";

<LocalBusinessJsonLd
  name="My Company"
  url="https://example.com"
  logo="/logo.png"
  description="Local software consultancy."
  telephone="+1-555-555-5555"
  email="[email protected]"
  address={{
    locality: "Orlando",
    region: "FL",
    country: "US",
  }}
  areaServed={[
    { type: "City", name: "Orlando", containedIn: "Florida" },
  ]}
  sameAs={["https://twitter.com/mycompany"]}
/>;

Types

All types are exported from the main entry point:

  • SiteConfig — Site-wide configuration for metadata generation
  • SEOProps — Input props for generateSEO()
  • SEO — Shape used by createSEO()
  • FAQ — Question/answer pair for FAQPageJsonLd
  • PostMetadata — Blog post metadata for blogPostToSEOProps()
  • BlogPostingAuthor — Author object for BlogPostingJsonLd
  • BlogPostingPublisher — Publisher object for BlogPostingJsonLd

Security

All JSON-LD components use safeJsonLd() to prevent XSS via </script> injection in structured data. The < character is escaped to \u003c in all serialized output.

License

MIT