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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@onlineapps/conn-orch-registry

v1.1.25

Published

Connector-registry-client provides the core communication mechanism for microservices in this environment. It enables them to interact with a services_registry to receive and fulfill tasks by submitting heartbeats or their API descriptions.

Downloads

1,575

Readme

@onlineapps/conn-orch-registry

Build Status Coverage Status npm version

A lightweight client for microservice registration, heartbeat, and API description exchange via RabbitMQ.

🚀 Features

  • Automatic queue management (workflow, <serviceName>.registry, api_services_queuer, registry.register)
  • Periodic heartbeat messages with metadata
  • API description request/response flow
  • Event-driven API using EventEmitter
  • Fully configurable via environment variables or constructor options

📦 Installation

npm install @onlineapps/conn-orch-registry
# or
yarn add @onlineapps/conn-orch-registry

🔧 Quick Start

// Load environment, if using .env
require('dotenv').config();

const { ServiceRegistryClient, EVENTS } = require('@onlineapps/conn-orch-registry');

const client = new ServiceRegistryClient({
  amqpUrl: process.env.AMQP_URL,
  serviceName: 'invoicing',
  version: '1.0.0'
});

// Listen for API description requests
client.on(EVENTS.API_DESCRIPTION_REQUEST, async () => {
  const apiSpec = await loadOpenApiSpec();
  await client.sendApiDescription(apiSpec);
});

// Initialize and start heartbeats
await client.init();
client.startHeartbeat();

// Graceful shutdown
process.on('SIGINT', async () => {
  await client.close();
  process.exit(0);
});

📄 Configuration

Configuration can be provided via environment variables or constructor options:

| Variable | Description | Default | | -------------------- | --------------------------------------------- | -------------------- | | AMQP_URL | RabbitMQ connection string (required) | — | | SERVICE_NAME | Logical name of your service (required) | — | | SERVICE_VERSION | Service version in SemVer format (required) | — | | HEARTBEAT_INTERVAL | Interval in ms between heartbeats | 10000 | | API_QUEUE | Queue name for heartbeat/API messages | api_services_queuer | | REGISTRY_QUEUE | Queue name for registry requests/descriptions | registry.register |

📨 Message Formats

Register Request

{
  type: "register",
  serviceName: "hello-service",
  version: "1.0.0",
  token: "pre-validation-token",
  endpoints: [...],
  timestamp: "ISO-8601"
}

Register Confirmed

{
  type: "register.confirmed",
  serviceName: "hello-service",
  success: true,
  certificate: {
    id: "cert-uuid",
    signature: "cryptographic-signature",
    validUntil: "ISO-8601"
  },
  cached: false
}

Heartbeat

{
  type: "heartbeat",
  serviceName: "hello-service",
  status: "UP",
  timestamp: "ISO-8601"
}

🛠️ API Reference

See docs/api.md for full details on classes, methods, and events.

📖 Documentation

🔗 Related Documentation

✅ Testing

# Run unit and integration tests
yarn test
# or
npm test

🎨 Coding Standards

  • Linting: ESLint (Airbnb style)
  • Formatting: Prettier
  • Testing: Jest

🤝 Contributing

Please read CONTRIBUTING.md for details on submitting issues and pull requests.

📜 License

This project is licensed under the MIT License. See LICENSE for details.

📚 Documentation