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

@voyant-travel/connect-adapter

v0.6.0

Published

Voyant Connect catalog SourceAdapter for Voyant apps.

Readme

@voyant-travel/connect-adapter

Voyant Connect catalog SourceAdapter for Voyant apps.

Use this package in a Voyant operator template that wants Connect-sourced inventory to flow through the OSS catalog plane: sourced entries, indexing, quote/book/cancel dispatch, and booking snapshots.

Install

pnpm add @voyant-travel/connect-adapter @voyant-travel/connect-sdk @voyant-travel/catalog

Usage

import { createSourceAdapterRegistry } from "@voyant-travel/catalog/booking-engine";
import {
  createVoyantConnectSourceAdapter,
  resolveVoyantConnectAdapterContext,
} from "@voyant-travel/connect-adapter";

const registry = createSourceAdapterRegistry();
const adapter = createVoyantConnectSourceAdapter({
  connect: {
    apiKey: process.env.VOYANT_API_KEY!,
    operatorId: "op_123",
    baseUrl: "https://api.voyant.travel",
  },
});

registry.register("conn_123", adapter);

// In catalog booking routes, resolve adapter context from quote provenance:
const resolveAdapterContext = (input: {
  sourceKind?: string | null;
  sourceConnectionId?: string | null;
  correlationId?: string;
}) =>
  resolveVoyantConnectAdapterContext({
    sourceKind: input.sourceKind,
    sourceConnectionId: input.sourceConnectionId,
    correlationId: input.correlationId,
  });

Notes

  • Use @voyant-travel/connect-adapter for Voyant apps consuming Connect inventory through the OSS catalog.
  • Use @voyant-travel/connect-sdk directly for non-Voyant apps and low-level tools calling /connect/v1/....
  • source_connection_id is always populated from the Connect connection that produced the projection so quote, book, cancel, and status dispatch resolve the same registered connection.
  • getContent() returns normalized cruise content as cruises/v1. It resolves flat Connect search-document ids back to the Connect cruise source ref and returns { cruise, ship, sailings, cabin_categories, itinerary_stops, policies } instead of a raw Connect row. Sailing browse prices are flattened to lowest_price_cents and currency; sailing cabin pricing grids are exposed as qualitative cabin_options with integer minor-unit prices when Connect provides them.
  • Catalog route wiring must pass the quote or sourced row source_connection_id into SourceAdapterContext.connection_id. The adapter rejects "engine" contexts for booking dispatch because Connect cannot route quote/book/cancel without the original connection id.

For repo-level context, see ../../docs/connect-adapter.md.