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

@voyantjs/catalog

v0.28.3

Published

Catalog plane foundation for Voyant. The shared cross-cutting infrastructure that vertical modules — `products`, `cruises`, `hospitality`, `charters`, `extras` — adopt to participate in a normalized discovery / overlay / snapshot / search surface.

Downloads

7,030

Readme

@voyantjs/catalog

Catalog plane foundation for Voyant. The shared cross-cutting infrastructure that vertical modules — products, cruises, hospitality, charters, extras — adopt to participate in a normalized discovery / overlay / snapshot / search surface.

This is Phase 1 of the catalog plane. Phase 2 (semantic search, embeddings, AI agent access via MCP) ships in @voyantjs/catalog-rag. Phase 3 (the flights vertical, the swappable ReferenceDataProvider) ships in @voyantjs/flights.

See docs/architecture/catalog-architecture.md for the full design.

Install

pnpm add @voyantjs/catalog

What's in the box

  • ./contractFieldPolicy type and the eleven governance enums. The load-bearing schema decision: every field on every CatalogEntry is declared with a row in a per-vertical policy file.
  • ./provenanceProvenance shape (source_kind, source_ref, source_freshness) carried by every CatalogEntry.
  • ./overlay/schema — drizzle table schema for editorial overrides keyed (entity_module, entity_id, field_path, locale, audience, market).
  • ./overlay/resolver — resolver-merge logic with full locale × audience × market fallback chain.
  • ./snapshot/schemabooking_catalog_snapshot table for immutable booking-time CatalogEntry views.
  • ./indexer/contract — engine-agnostic IndexerAdapter contract.
  • ./indexer/typesense — native Typesense implementation, the v1 default.
  • ./search/rerank — Tier 2 two-stage-search orchestration helper for browse-time pricing.
  • ./drift/events — drift event types for upstream change detection.
  • ./events/taxonomy — catalog event names + visibility-filtered payload builders, emitted via @voyantjs/core/events and consumed by the existing webhook pipeline.
  • ./adapter/contract — public source-adapter contract. Voyant Connect, third-party providers, operator-built adapters all implement this.
  • ./booking-engine — quote/book services plus the Hono route module that backs @voyantjs/catalog-react/booking-engine and @voyantjs/bookings-ui/journey.

Architectural rules

The catalog plane is a contract, not a polymorphic root. Vertical modules keep their own schemas and adopt this contract; they do not share a row shape. See the architecture doc for the full rationale.

  • Per-vertical operational truth — separate tables per vertical.
  • Shared cross-cutting infrastructure — overlay store, snapshot graph, indexer pipeline, drift events, webhooks.
  • Three composition patterns — nested fields, promoted child entities, referenced CatalogEntries.
  • Three variant axes on overlays — locale, audience, market; sparse, default deployment uses two audiences and one market.

Usage

The catalog plane is consumed by vertical modules; templates wire it together.

import { defineFieldPolicy } from "@voyantjs/catalog/contract"

export const productCatalogPolicy = defineFieldPolicy([
  {
    path: "title",
    class: "merchandisable",
    merge: "replace",
    drift: "medium",
    reindex: "entry-locale",
    snapshot: "on-book",
    query: "indexed-column",
    localized: true,
    visibility: ["staff", "customer", "partner"],
    editRole: "marketing",
    overrideFriction: "none",
    sourceFreshness: "sync",
  },
  // ...
])

See docs/architecture/catalog-architecture.md for the full contract and worked examples.

BookingJourney HTTP routes

@voyantjs/catalog exports createCatalogBookingHonoModule(...) and createCatalogBookingRoutes(...) for the BookingJourney server contract. The same functions remain available from @voyantjs/catalog/booking-engine for consumers that prefer the narrower subpath. The module mounts the shared quote, draft, hold, and book endpoints on both catalog API surfaces:

  • /v1/admin/catalog/*
  • /v1/public/catalog/*

Templates provide the runtime dependencies instead of the package importing deployment code:

import { createCatalogBookingHonoModule } from "@voyantjs/catalog"

export const catalogBookingModule = createCatalogBookingHonoModule({
  resolveDb: (c) => c.get("db"),
  resolveSourceRegistry: (c) => getBookingEngineRegistryFromContext(c),
  resolveOwnedHandlers: (c) => getOwnedBookingHandlerRegistryFromContext(c),
})

Apps that protect public routes by default must allow /v1/public/catalog. Template-specific routes such as slots, admin order management, checkout start, and booking snapshot enrichment stay in the template.