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/plugin-voyant-connect

v0.3.2

Published

Voyant Connect sources plugin for Voyant deployments.

Downloads

1,631

Readme

@voyant-travel/plugin-voyant-connect

Voyant Connect sources plugin for Voyant deployments.

Use this package in a Voyant deployment to turn Connect credentials into the catalog SourceAdapters that source generic inventory, structured cruises, and provider package products — without wiring each adapter by hand.

Install

pnpm add @voyant-travel/plugin-voyant-connect @voyant-travel/connect-sdk

Usage

import { prepareVoyantConnectSources } from "@voyant-travel/plugin-voyant-connect";

// Reads VOYANT_API_KEY / VOYANT_CONNECT_* from the environment and returns the
// catalog source adapters to register, or [] when Connect is unconfigured.
const sources = await prepareVoyantConnectSources(process.env);

void sources;

On the booking-engine warm path, pass enumerate: true to get one set of connection-scoped adapters per active connection. To avoid re-paying the network enumeration on every cold isolate, supply a pre-fetched connections list or a read-through connectionCache (e.g. backed by Workers KV), and thread cruise.memoize to wrap cruise reads consistently across the default and per-connection planes:

const sources = await prepareVoyantConnectSources(env, {
  enumerate: true,
  // Skip the list() call when the serializable connection list is cached:
  connectionCache: {
    get: () => cache.get("voyant-connect:connections"),
    set: (connections) => cache.put("voyant-connect:connections", connections),
  },
  // Memoize cruise reads on both the default and per-connection adapters:
  cruise: { memoize: { ttlMs: 60_000 } },
});

Pass a pre-fetched connections array instead of connectionCache when the caller already holds the list. To build sources from an explicit client instead of the environment, use createVoyantConnectSources / registerVoyantConnectSources, pointing the client at https://api.voyant.travel.

Status

This is the public package boundary for wiring Connect into a Voyant catalog. It composes the @voyant-travel/connect-adapter (generic + product packages) and @voyant-travel/connect-cruises (structured cruises) adapters, resolves geography names, and registers connection-scoped sources on the catalog registry.

Notes

  • @voyant-travel/connect-sdk remains the general Connect API client.
  • @voyant-travel/catalog, @voyant-travel/cruises, and @voyant-travel/data-sdk are peer dependencies provided by the host Voyant deployment.

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