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

@aikidosec/broker-client

v1.0.51

Published

Aikido Broker Client - Runs in customer network to forward requests to internal resources

Downloads

821

Readme

Aikido Broker Client

A secure broker client that runs in your internal network to forward requests from the Aikido platform to your internal resources via WebSocket connections.

Securely connect internal resources to Aikido's platform. Each resource gets a unique subdomain: https://{resource_id}.aikidobroker.com

Installation

Via npm

npm install @aikidosec/broker-client

Via Docker (Recommended)

docker compose up -d

Quick Start

  1. Generate CLIENT_SECRET in Aikido UI:

    • Navigate to: Settings → Broker Clients → Add New Client
    • Copy the generated CLIENT_SECRET
  2. Configure environment (.env):

CLIENT_SECRET=your_client_secret_here
  1. Start client:
# Using Docker
docker compose up -d

# Using Node.js directly
npm start
  1. Register resources via Aikido UI - resources are managed through the Aikido platform

  2. Access resources from aikido via subdomain URLs:

https://abc-123.aikidobroker.com/api/endpoint

Resource IDs are displayed in the Aikido UI when you register them.

Environment Variables

Required:

  • CLIENT_SECRET - Unique client identifier (generate in Aikido UI: Settings → Broker Clients → Add New Client)

Optional:

  • ALLOWED_INTERNAL_SUBNETS - Comma-separated subnet whitelist (e.g., 10.0.0.0/8,172.16.0.0/12)
  • DNS_SERVERS - Custom DNS servers for internal hostname resolution (e.g., 8.8.8.8,8.8.4.4)
  • NODE_EXTRA_CA_CERTS - Path to custom CA certificate bundle for self-signed certificates (e.g., /certs/corporate-ca.crt)
  • HTTP_PROXY - Proxy server for HTTP requests (e.g., http://proxy.company.local:8080)
  • HTTPS_PROXY - Proxy server for HTTPS requests (e.g., http://proxy.company.local:8080)
  • ALL_PROXY - Universal proxy fallback for all protocols if protocol-specific proxy is not set
  • BROKER_TARGET_URL - Override the broker server URL (defaults to https://broker.aikidobroker.com)

How It Works

  1. Client Generation: Generate a CLIENT_SECRET in the Aikido UI before deployment
  2. Client Registration: On first startup, the client registers with the broker using the CLIENT_SECRET
  3. Resource Management: Resources are registered via the Aikido UI and synced to the client
  4. Subdomain Mapping: Each resource gets a unique subdomain for external access
  5. Secure Proxying: All requests are authenticated and proxied to your internal services

Example Configuration

# .env file
CLIENT_SECRET=aikido_broker_123_123_123456789
ALLOWED_INTERNAL_SUBNETS=10.0.0.0/8,172.16.0.0/12
HTTP_PROXY=http://proxy.company.local:8080
HTTPS_PROXY=http://proxy.company.local:8080
NODE_EXTRA_CA_CERTS=/certs/corporate-ca.crt
DNS_SERVERS=10.0.0.1,10.0.0.2

After registering resources through the Aikido UI, they will be accessible via subdomains like:

  • https://xyz-123.aikidobroker.com → routes to your registered internal API
  • https://abc-456.aikidobroker.com → routes to your registered internal service

Troubleshooting

# View logs
docker compose logs -f

# Check synced resources
docker compose exec broker-client cat /config/client_resources.json

# Verify connection
docker compose logs | grep "Connected to broker"