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

abc-schema

v0.0.2

Published

Schema package for the repo

Readme

ABC Schema Package

Package providing JSON-LD schemas for SEO, optimized for tree shaking.

Usage

Import individual components (most optimized)

// Import individual SchemaRender components
import { HomeSchemaRender } from "abc-schema/home";
import { PracticeSchemaRender } from "abc-schema/practice";
import { AboutSchemaRender } from "abc-schema/about";

// Usage
<HomeSchemaRender url="/home" />
<PracticeSchemaRender
  title="Math Practice"
  url="/practice/math"
  description="Practice math problems"
  testName="SAT Math"
/>
<AboutSchemaRender
  description="About our platform"
  url="/about"
/>

Import all components

import {
  HomeSchemaRender,
  PracticeSchemaRender,
  AboutSchemaRender,
  ContactSchemaRender,
  PrivacySchemaRender,
} from "abc-schema/components";

Import schema data directly

// Import individual schemas
import { homeSchema } from "abc-schema/data";
import { practiceSchema } from "abc-schema/data";

// Or import multiple schemas at once
import {
  homeSchema,
  practiceSchema,
  aboutSchema,
  contactSchema,
  privacySchema,
} from "abc-schema/data";

Import everything from main index

import {
  // Components
  HomeSchemaRender,
  PracticeSchemaRender,
  AboutSchemaRender,
  ContactSchemaRender,
  PrivacySchemaRender,
  // Schema data
  homeSchema,
  practiceSchema,
  aboutSchema,
  contactSchema,
  privacySchema,
} from "abc-schema";

Available exports

Individual Components:

  • abc-schema/home - HomeSchemaRender component
  • abc-schema/practice - PracticeSchemaRender component (requires props: title, url, description, testName)
  • abc-schema/about - AboutSchemaRender component (requires props: description)
  • abc-schema/contact - ContactSchemaRender component
  • abc-schema/privacy - PrivacySchemaRender component

Bulk Exports:

  • abc-schema/components - All SchemaRender components
  • abc-schema/data - All schema data functions/objects
  • abc-schema - All components and schema data

Schema Data Available:

  • aboutSchema(description) - Function to create AboutPage schema
  • contactSchema - ContactPage schema object
  • homeSchema - EducationalOrganization schema object
  • practiceSchema(props) - Function to create Quiz schema
  • privacySchema - WebPage schema object

Tree shaking usage examples

// Bundle only required component (most optimized)
import { HomeSchemaRender } from "abc-schema/home";
<HomeSchemaRender url="/home" />;

// Bundle only schema data
import { homeSchema } from "abc-schema/data";
const schema = homeSchema;

// Import multiple schema data at once
import { homeSchema, practiceSchema } from "abc-schema/data";

// Use schema data directly
const aboutData = aboutSchema("Our platform description");
const practiceData = practiceSchema({
  title: "Math Test",
  url: "/practice/math",
  description: "Practice math problems",
  testName: "SAT Math",
});

Development

Build

pnpm build

Package will build into separate files in the dist/ directory to support optimal tree shaking.

Testing

# Run all tests
pnpm test

# Run tests once
pnpm test:run

# Run tests with coverage
pnpm test:coverage

Package Structure

src/
├── components/
│   ├── AboutSchemaRender.tsx
│   ├── ContactSchemaRender.tsx
│   ├── HomeSchemaRender.tsx
│   ├── PracticeSchemaRender.tsx
│   ├── PrivacySchemaRender.tsx
│   └── index.ts
├── data/
│   ├── about.ts
│   ├── contact.ts
│   ├── home.ts
│   ├── practice.ts
│   ├── privacy.ts
│   └── index.ts
└── index.ts

Features

  • Tree Shaking Optimized - Import only what you need
  • TypeScript Support - Full type definitions
  • React Components - Ready-to-use SchemaRender components
  • JSON-LD Schema - Valid structured data for SEO
  • 100% Test Coverage - Comprehensive test suite
  • Zero Dependencies - Lightweight package
  • Easy Prep Integration - Pre-configured for Easy Prep platform