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

@axiom-lattice/gateway

v2.1.108

Published

API Gateway for LangGraph agent-based applications

Readme

@axiom-lattice/gateway

Fastify-based HTTP API gateway exposing REST endpoints for agent execution, thread management, and configuration.

Store Consumption

The gateway reads all stores from StoreLatticeManager at startup — no manual wiring needed. Register stores via configureStores before calling startAsHttpEndpoint():

import { configureStores } from "@axiom-lattice/core";
import { createPgStoreConfig } from "@axiom-lattice/pg-stores";
import { LatticeGateway } from "@axiom-lattice/gateway";

const stores = createPgStoreConfig(process.env.DATABASE_URL);
await configureStores({ ...stores });

// Gateway picks up stores from StoreLatticeManager automatically
LatticeGateway.startAsHttpEndpoint({ port: 4001 });

How it works

The gateway internally calls getStoreLattice("default", type) for each store it needs:

  • channelBinding — used by MessageRouter for sender-to-agent binding resolution
  • channelInstallation — used for channel instance lookup
  • databaseSqlDatabaseManager reads configs lazily on first query
  • metricsMetricsServerManager loads configs on first access
  • All other stores — consumed by controllers via getStoreLattice("default", type)

No setConfigStore() or loadConfigsFromStore() calls needed — each manager reads directly from StoreLatticeManager.

Quick Start

import { LatticeGateway } from "@axiom-lattice/gateway";

LatticeGateway.startAsHttpEndpoint({
  port: 4001,
  queueServiceConfig: { type: "memory", defaultStartPollingQueue: true },
});

Logger Configuration

import { LatticeGateway } from "@axiom-lattice/gateway";
import { LoggerType } from "@axiom-lattice/protocols";

LatticeGateway.startAsHttpEndpoint({
  port: 4001,
  loggerConfig: {
    name: "default",
    type: LoggerType.PINO,
    serviceName: "my-service",
  },
});

API Endpoints

  • POST /api/v1/run — Execute agent
  • POST /api/v1/run/stream — Stream agent execution
  • GET /api/v1/run/:thread_id — Get run status
  • GET /api/v1/run/:thread_id/messages — Get message history
  • GET /api/config — Get gateway configuration
  • PUT /api/config — Update gateway configuration