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

@epicdm/gateway-routes

v0.1.7

Published

Canonical gateway route table, logical service bindings, and environment emitters for FlowState

Readme

@epicdm/gateway-routes

Canonical gateway route table, smoke test specifications, and gateway config emitters for Epic FlowState.

What's in this package

  • ROUTES — single source of truth for all gateway routes (path, upstream, scope, auth, CORS, rate limit, transport)
  • SMOKE_SPECS — canonical smoke test specifications for local and cloud gateway parity
  • CLOUD_BINDINGS / LOCAL_BINDINGS — logical service → binding maps
  • UPSTREAM_TO_LOGICAL — upstream service ID → LogicalService union mapping
  • emitCfRoutes(routes) — emits the Cloudflare Worker gateway route table (excludes local-only scope)
  • emitKong(routes, opts) — emits the Kong kong.yml declarative config (excludes cloud-only scope)

Canonical source

⚠️ This package is vendored. The canonical source lives in the flowstate-platform monorepo at packages/gateway-routes. This copy exists so the epic-flowstate-community monorepo can consume it via workspace:* without a cross-repo registry dependency.

Sync policy

Per the P0 decisions document §9 (lives in the canonical flowstate-platform repo at docs/plans/2026-04-10-gateway-routes-decisions.md, not in this community repo):

  1. The canonical package in flowstate-platform is frozen — no behavioural changes without a coordinated cross-repo task.
  2. When the upstream package changes, a follow-up task must bump this vendored copy byte-for-byte from flowstate-platform@<sha> and update the "Last synced from" line below.
  3. The vendored copy must remain byte-identical to upstream except for this README.md.
  4. The P3.7 lint:kong CI check guards against drift in generated Kong YAML.

Last synced from

  • Upstream commit: flowstate-platform@030b4da0 (dev)
  • Sync date: 2026-04-11
  • Synced as part of: task_rN6GL9aFBa (P3.1 — add @epicdm/gateway-routes dep to flowstate-cli)

Usage

import {
  ROUTES,
  SMOKE_SPECS,
  emitCfRoutes,
  emitKong,
  type GatewayRoute,
  type SmokeSpec,
} from '@epicdm/gateway-routes'

// Emit Kong declarative config for local dev
const kongYaml = emitKong(ROUTES, {
  gatewayPort: 7080,
  jwtIssuer: 'http://localhost:7080',
  jwtConsumer: 'flowstate-auth',
})

// Emit Cloudflare Worker route list for cloud gateway
const cfRoutes = emitCfRoutes(ROUTES, { includeDevOnly: false })

// Run smoke tests against a gateway
for (const spec of SMOKE_SPECS) {
  // GET/POST ${spec.path}, expect spec.expect status
}

License

Apache-2.0. Epic FlowState is a trademark of Epic Digital Interactive Media LLC.