🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@answerable-kit/schemas

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@answerable-kit/schemas

Type-safe JSON-LD generators for the Answerable SEO toolkit (Organization, FAQPage, Article, ...).

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@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}',
});

// Inject as JSON-LD in your Next.js layout:
// <script type="application/ld+json">{JSON.stringify(org)}</script>

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

FAQs

Package last updated on 17 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts