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

@eventcatalog/generator-azure-schema-registry

v0.1.0

Published

Azure Schema Registry generator for EventCatalog

Downloads

58

Readme

@eventcatalog/generator-azure-schema-registry

Generate EventCatalog documentation from Azure Schema Registry schemas.

Features

  • Pull schemas from Azure Schema Registry
  • Map schemas to EventCatalog domains and services
  • Support for Avro, JSON Schema, and other schema types
  • Automatic versioning of schemas

Installation

npm install @eventcatalog/generator-azure-schema-registry

Usage

Add the generator to your eventcatalog.config.js file:

generators: [
  [
    '@eventcatalog/generator-azure-schema-registry',
    {
      schemaRegistryUrl: 'https://your-namespace.servicebus.windows.net',
      domain: {
        id: 'orders',
        name: 'Orders',
        version: '1.0.0',
      },
      services: [
        {
          id: 'Orders Service',
          version: '1.0.0',
          sends: [{ id: 'app.orders.created', schemaGroup: 'com.example.orders' }],
          receives: [{ id: 'app.orders.updated', schemaGroup: 'com.example.inventory' }],
        },
        {
          id: 'Inventory Service',
          version: '1.0.0',
          sends: [{ id: 'app.inventory.created', schemaGroup: 'com.example.inventory' }],
          receives: [{ id: 'app.inventory.updated', schemaGroup: 'com.example.orders' }],
        },
      ],
    },
  ],
];

Advanced Configuration

You can customize schema names, message types, and override the registry URL per schema:

generators: [
  [
    '@eventcatalog/generator-azure-schema-registry',
    {
      schemaRegistryUrl: 'https://your-namespace.servicebus.windows.net',
      services: [
        {
          id: 'Orders Service',
          version: '1.0.0',
          sends: [
            {
              id: 'app.orders.created',
              schemaGroup: 'com.example.orders',
              name: 'Order Created Event', // Custom display name in EventCatalog
              messageType: 'event', // Specify message type (event, command, or query)
            },
            {
              id: 'app.orders.create',
              schemaGroup: 'com.example.orders',
              name: 'Create Order Command',
              messageType: 'command', // This will be created as a command
            },
          ],
          receives: [
            {
              id: 'app.orders.get',
              schemaGroup: 'com.example.orders',
              name: 'Get Order Query',
              messageType: 'query', // This will be created as a query
            },
            {
              id: 'app.inventory.updated',
              schemaGroup: 'com.example.inventory',
              name: 'Inventory Updated Event',
              schemaRegistryUrl: 'https://different-namespace.servicebus.windows.net', // Override registry URL for this schema
            },
          ],
        },
      ],
    },
  ],
];

Configuration

Environment Variables

The generator uses DefaultAzureCredential from @azure/identity which automatically detects and uses available authentication methods in the following order:

  1. Environment variables - AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET
  2. Managed Identity - If running in Azure (App Service, Functions, VM, etc.)
  3. Azure CLI - If you're logged in with az login
  4. Visual Studio Code - If you're logged in with the Azure extension

Additional Environment Variables:

  • EVENTCATALOG_LICENSE_KEY_AZURE_SCHEMA_REGISTRY - Your EventCatalog license key (optional)

Options

  • schemaRegistryUrl (required) - The URL of your Azure Schema Registry (e.g., https://your-namespace.servicebus.windows.net)
  • services (required) - List of services and their schema mappings. Note: Unlike Confluent, Azure Schema Registry doesn't provide an API to list all schemas, so you must explicitly define which schemas to fetch.
    • Each schema in sends and receives can have:
      • id (required) - The schema name in the registry
      • schemaGroup (required) - The schema group name
      • name (optional) - Custom display name for the schema in EventCatalog (defaults to the schema id)
      • schemaRegistryUrl (optional) - Override the registry URL for this specific schema (useful when schemas are in different registries)
      • messageType (optional) - Set to 'event', 'command', or 'query' (defaults to 'event')
  • domain (optional) - Domain configuration to group services
  • licenseKey (optional) - EventCatalog license key

Authentication

This generator uses DefaultAzureCredential which supports multiple authentication methods:

  • For local development: Run az login to authenticate via Azure CLI
  • For CI/CD: Set environment variables for a service principal (AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET)
  • For Azure-hosted applications: Use Managed Identity (no credentials needed)

License

Dual License