@answerable-kit/schemas
Type-safe JSON-LD generators for the Answerable SEO toolkit. Each generator returns a fully-typed WithContext<T> object validated at the type level by schema-dts.
v0.1.0. All eight generators ship today: organization, webSite, article, breadcrumb, faqPage, howTo, product, and softwareApplication.
Install
pnpm add @answerable-kit/schemas
Usage
import { organization, webSite } from '@answerable-kit/schemas';
const org = organization({
name: 'Acme',
url: 'https://acme.com',
logo: 'https://acme.com/logo.png',
sameAs: ['https://twitter.com/acme', 'https://github.com/acme'],
});
const site = webSite({
name: 'Acme',
url: 'https://acme.com',
searchUrlTemplate: 'https://acme.com/search?q={search_term_string}',
});
All URL inputs are validated as absolute http(s) URLs at runtime — invalid input throws InvalidUrlError from @answerable-kit/core.
License
MIT © 2026 Anuj Ojha