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

skynet-gateway

v0.1.0

Published

SkyNet multi-platform AI agent gateway for WeCom, DingTalk, Feishu, and WeChat

Readme

SkyNet Gateway

SkyNet Gateway is a multi-platform AI agent gateway for WeCom, DingTalk, Feishu, and WeChat iLink. It receives platform messages, normalizes them into a single inbound format, routes each chat to a Claude CLI session in tmux, and delivers replies back through the original platform.

This package is distributed as a single npm package. It includes the gateway runtime, CLI wrapper, reply helpers, TypeScript declarations, and the cross-border e-commerce utility exports.

Requirements

  • Node.js 20 or newer
  • tmux
  • Claude Code authentication on the host. The package depends on @anthropic-ai/claude-code and starts that bundled CLI by default; set CLAUDE_CODE_BIN if you want to use a custom claude binary.
  • Bot credentials for the platform adapters you enable

Install

npm install -g skynet-gateway

For local development from this repository:

cd wecom-gateway
npm install
npm run build

Quick Start

Create a local runtime config:

skynet-gateway init

Edit the generated config:

~/.skynet-gateway/system_config.json

Then start an instance:

skynet-gateway start --instance default

Check health:

skynet-gateway health --port 19980

CLI

skynet-gateway init [--config <path>] [--force]
skynet-gateway start --instance <id> [--config <path>]
skynet-gateway health [--port <port>]

The CLI sets SKYNET_CONFIG, SKYNET_INSTANCE, and SKYNET_PROJECT_ROOT before launching the gateway. Runtime data should live outside the installed package, normally under ~/.skynet-gateway.

Reply Helpers

The package also exposes executable reply helpers:

skynet-reply --text "reply text"
skynet-reply --markdown "**reply markdown**"
echo "long reply" | skynet-reply --stdin

wecom-reply is retained as a backward-compatible alias.

Programmatic Exports

The package root is side-effect free:

import type { InboundEvent } from "skynet-gateway";
import { crossBorder } from "skynet-gateway";

Cross-border tools can also be imported directly:

import { PriceCalculator, generateTitleFromTemplate } from "skynet-gateway/cross-border";

Do not import dist/index.js directly; it starts the gateway process.

Configuration

A template is included at:

templates/system_config.example.json

Important fields:

  • reply_port: local HTTP reply server port
  • data_dir: runtime data directory; absolute paths and ~/... are supported
  • channels: platform bot credentials
  • admins: verified sender identity mapping
  • user_access: regular user access and quota policy

Never publish or commit real bot secrets, instance configs, databases, logs, or credential vault files.

Publishing Checklist

npm ci
npm run typecheck
npm test
npm run build
npm pack --dry-run
npm publish

Before a public release, choose and record the legal license. This package is currently marked UNLICENSED to avoid granting an unintended license.