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

@postman-solutions/postman-backstage-backend-plugin

v1.1.4

Published

The Postman Backend Plugin integrates with Postman's API to provide seamless access to API metadata, versions, monitors, collections, tags, users, and workspaces.

Readme

Postman Backend Plugin

The Postman Backend Plugin integrates with Postman's API to provide seamless access to API metadata, versions, monitors, collections, tags, users, and workspaces.

Features

This plugin exposes various endpoints, including:

  • API Information:
    • GET /apis/:id
    • GET /apis/:id/versions
    • GET /apis/:id/versions/:versionId
  • Monitor Management:
    • GET /monitors
    • GET /monitors/:id
  • Collection Handling:
    • GET /collections/:id
    • GET /tags/:tag/entities
    • GET /collections/:id/tags
    • PUT /collections/:id/tags
  • User and Workspace Details:
    • GET /users
    • GET /workspaces
    • GET /workspace/:workspaceId

Production Installation

For production use, please refer to the guidelines in Postman Plugin Installation Steps.

Local Installation & Contribution

After cloning the postman and postman-backend plugins, rename the package names in their respective package.json with @internal/PLUGIN_NAME and install the backend plugin. Run the following command from your project root:

yarn --cwd packages/backend add @internal/backstage-plugin-postman-backend

Then register the plugin in your backend (typically in packages/backend/src/index.ts):

const backend = createBackend();
// ...existing code...
backend.add(import('@internal/backstage-plugin-postman-backend'));

Entity Provider Integration (Optional)

Entity Providers in Backstage enable automatic integration of external data into the catalog. The Postman EntityProvider allows you to:

  • Automatically fetch and synchronize collections or APIs tagged for inclusion.
  • Benefit from built-in caching, which minimizes API requests.

To set up the Postman EntityProvider:

  1. Ensure that your app-config.yaml includes the following configuration:
postman:
  baseUrl: https://api.postman.com # For EU data center, use: https://api.eu.postman.com
  apiKey: ${POSTMAN_API_KEY}
  entityProvider:
    synchEntitiesWithTag: backstage-plugin
    synchInterval: 2
  cache:
    ttl: 60000
  1. In your backend module (usually packages/backend/src/index.ts), register the provider:
// ...existing imports...
import { createBackendModule } from '@backstage/backend-plugin-api';
import { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';
import { PostmanEntityProvider, NodeCacheService } from '@internal/backstage-plugin-postman-backend';

export const catalogModulePostmanProvider = createBackendModule({
  pluginId: 'catalog',
  moduleId: 'postman-provider',
  register(env) {
    env.registerInit({
      deps: {
        catalog: catalogProcessingExtensionPoint,
        reader: env.coreServices.urlReader,
        scheduler: env.coreServices.scheduler,
        config: env.coreServices.rootConfig,
        logger: env.coreServices.logger,
      },
      async init({ catalog, scheduler, config, logger }) {
        const cache = new NodeCacheService({
          defaultTtl: config.has('postman.cache.ttl')
            ? config.getNumber('postman.cache.ttl')
            : 600,
        });
        const provider = PostmanEntityProvider.fromConfig(config, { logger, cache });
        catalog.addEntityProvider(provider);
        const synchInterval = config.has('postman.entityProvider.synchInterval')
          ? config.getNumber('postman.entityProvider.synchInterval')
          : null;
        if (synchInterval) {
          await scheduler.scheduleTask({
            id: 'run_postman_entity_provider_refresh',
            fn: async () => await provider.run(),
            frequency: { minutes: synchInterval },
            timeout: { minutes: 10 },
          });
          logger.info('Postman EntityProvider registered with the catalog');
        } else {
          logger.info('Postman EntityProvider registered, but auto refresh is disabled');
        }
      },
    });
  },
});
  1. Finally, integrate the module into your backend initialization:
// ...existing code...
import { catalogModulePostmanProvider } from '@internal/backstage-plugin-postman-backend';
// ...existing code...
backend.add(catalogModulePostmanProvider);
backend.start();

Caching

The plugin employs caching to reduce redundant HTTP requests and boost performance. The two main caching strategies are:

  1. HTTP Request Caching:
    • Responses from the Postman API are cached based on a configurable TTL.
  2. Entity Data Caching:
    • The PostmanEntityProvider caches entities between synchronization cycles to decrease processing overhead.

You can adjust the cache settings in your app-config.yaml:

postman:
  cache:
    ttl: 60000  # Cache TTL in seconds. Default 600 seconds

Development

To run the plugin backend in standalone mode, execute:

yarn start

For full-stack development (including the frontend), run:

yarn dev

Testing

To execute tests for the plugin, run:

yarn test

Note:

  • Ensure that you have enabled the mock service by uncommenting the necessary sections in your test files (e.g., in plugin.test.ts and router.test.ts).
  • This allows the tests to use the mocked authentication and other services.

Ensure your test configuration aligns with your backend setup.