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

journal-gateway

v0.8.1

Published

Outbound gateway for connecting MCP servers and skills to Journal

Downloads

3,100

Readme

journal-gateway

Journal Gateway runs inside your network and connects your MCP servers and skill files to Journal. It opens an outbound WebSocket to Journal, so credentials stay in your infrastructure and you do not need to open inbound ports.

What It Does

  • Starts local MCP servers over stdio.
  • Connects to remote MCP servers over sse or streamable-http.
  • Publishes available MCP tools and local skill files to Journal.
  • Watches config and env files so tools can be added or removed without a restart.
  • Keeps running when one MCP server fails to start. The failing server is logged and skipped while healthy servers remain available.

Install

Requires Node.js 22 or newer.

npm install -g journal-gateway
journal-gateway --version

Quick Start

Create gateway.json:

{
  "$schema": "https://raw.githubusercontent.com/EnduranceLabs/journal-gateway/main/spec/gateway-config.schema.json",
  "mcpServers": [
    {
      "id": "postgresql",
      "name": "PostgreSQL",
      "description": "Read-only PostgreSQL tools",
      "transport": "stdio",
      "command": "npx",
      "args": ["-y", "@toolbox-sdk/server", "--prebuilt", "postgres", "--stdio"],
      "envVars": {
        "POSTGRES_HOST": "POSTGRES_HOST",
        "POSTGRES_PORT": "POSTGRES_PORT",
        "POSTGRES_DATABASE": "POSTGRES_DATABASE",
        "POSTGRES_USER": "POSTGRES_USER",
        "POSTGRES_PASSWORD": "POSTGRES_PASSWORD"
      }
    }
  ]
}

Create .env:

JOURNAL_GATEWAY_TOKEN=gw_your_token
POSTGRES_HOST=db.internal.example.com
POSTGRES_PORT=5432
POSTGRES_DATABASE=analytics
POSTGRES_USER=journal_gateway_ro
POSTGRES_PASSWORD=replace-me

Run the gateway:

journal-gateway --env-file .env --config gateway.json

The example MCP server package is an external runtime command. It is resolved by npx when the gateway starts. It is not bundled with, or installed by, journal-gateway.

Configuration

Each entry in mcpServers describes one integration. Supported transports:

  • stdio: starts a local subprocess with command and args.
  • sse: connects to a legacy remote MCP server URL.
  • streamable-http: connects to a remote MCP server using the current MCP HTTP transport.

Use envVars to map host environment variables into the MCP server subprocess: { "HOST_ENV_VAR": "MCP_SERVER_ENV_VAR" }. Use headers to map remote MCP headers to host environment variables: { "Authorization": "TOKEN_ENV_VAR" }. Do not put credentials directly in gateway.json.

For database integrations, create a read-only or restricted database role before connecting an MCP server. See the database guide for PostgreSQL, MySQL, SQL Server, and Snowflake examples: examples/integrations/database.

Skills

Set skillsDir in gateway.json to publish markdown skill files alongside MCP tools:

{
  "skillsDir": "./skills",
  "mcpServers": []
}

Security Notes

  • Keep gateway tokens and integration credentials in environment variables or a secret manager.
  • Prefer read-only database users and narrow service accounts for MCP servers.
  • Run the gateway close to the systems it integrates with. It only needs outbound network access to Journal and to the MCP servers it starts or calls.

More Documentation

License

MIT