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

@proxima-nexus/openapi

v2.0.1

Published

OpenAPI specification for Proxima Nexus

Readme

@proxima-nexus/openapi

npm version License: ISC

Official OpenAPI 3.0 specification for the Proxima Nexus Data Plane API. This package provides machine-readable API documentation in both JSON and YAML formats, enabling automatic SDK generation, API testing, and client integration.

📦 Installation

npm install @proxima-nexus/openapi

or with yarn:

yarn add @proxima-nexus/openapi

or with pnpm:

pnpm add @proxima-nexus/openapi

📋 Contents

This package includes:

  • openapi.json - OpenAPI 3.0 specification in JSON format
  • openapi.yaml - OpenAPI 3.0 specification in YAML format

Both files are identical in content and are provided for convenience depending on your tooling preferences.

🚀 Usage

Accessing the Specification Files

import openapiJson from '@proxima-nexus/openapi/openapi.json';
import * as fs from 'fs';
import * as path from 'path';

// In Node.js
const openapiPath = path.join(
  require.resolve('@proxima-nexus/openapi'),
  '../openapi.yaml'
);
const spec = fs.readFileSync(openapiPath, 'utf-8');
// In Node.js (CommonJS)
const openapiJson = require('@proxima-nexus/openapi/openapi.json');
const openapiYaml = require('@proxima-nexus/openapi/openapi.yaml');
# In Python
import json
import pkg_resources

openapi_json_path = pkg_resources.resource_filename(
    'proxima_nexus_openapi', 'openapi.json'
)
with open(openapi_json_path, 'r') as f:
    spec = json.load(f)

Generating SDKs

TypeScript/JavaScript

Using openapi-generator:

npx @openapitools/openapi-generator-cli generate \
  -i node_modules/@proxima-nexus/openapi/openapi.yaml \
  -g typescript-axios \
  -o ./generated-sdk

Python

npx @openapitools/openapi-generator-cli generate \
  -i node_modules/@proxima-nexus/openapi/openapi.yaml \
  -g python \
  -o ./generated-sdk

Java

npx @openapitools/openapi-generator-cli generate \
  -i node_modules/@proxima-nexus/openapi/openapi.yaml \
  -g java \
  -o ./generated-sdk

Go

npx @openapitools/openapi-generator-cli generate \
  -i node_modules/@proxima-nexus/openapi/openapi.yaml \
  -g go \
  -o ./generated-sdk

Using with Swagger UI

import SwaggerUI from 'swagger-ui-react';
import openapiJson from '@proxima-nexus/openapi/openapi.json';

function ApiDocs() {
  return <SwaggerUI spec={openapiJson} />;
}

Using with Postman

  1. Import openapi.json or openapi.yaml into Postman
  2. Postman will automatically generate a collection with all API endpoints

Validating API Requests

import Ajv from 'ajv';
import addFormats from 'ajv-formats';
import openapiJson from '@proxima-nexus/openapi/openapi.json';

const ajv = new Ajv();
addFormats(ajv);

// Validate request body against schema
const validate = ajv.compile(
  openapiJson.components.schemas.CreateUserDto
);

const isValid = validate(requestBody);
if (!isValid) {
  console.error(validate.errors);
}

📚 API Overview

The Proxima Nexus Data Plane API provides RESTful endpoints for managing:

Resources

  • Users (/user) - User profile management, search, and connections
  • Events (/event) - Event creation, updates, and discovery
  • Groups (/group) - Group management and membership

Key Features

  • Geospatial Search - Location-based queries with radius and bounding box support
  • Text Search - Display name search with relevance ranking
  • Connections - Relationship management between entities
  • Multi-tenancy - Tenant isolation for all operations

Authentication

All endpoints require API key authentication via the X-Proxima-Nexus-Api-Key header:

GET /user/123 HTTP/1.1
Host: api.proxima-nexus.com
X-Proxima-Nexus-Api-Key: your-api-key-here

🔄 Versioning

This package follows Semantic Versioning:

  • MAJOR version increments when breaking changes are introduced to the API
  • MINOR version increments when new endpoints or features are added (backward compatible)
  • PATCH version increments for bug fixes and non-breaking changes

The package version matches the API version. Check the CHANGELOG for detailed version history.

🔗 Related Packages

  • TypeScript SDK - Coming soon
  • Python SDK - Coming soon

🤝 Contributing

This package is automatically generated from the API implementation. To update the specification:

  1. Make changes to the API implementation
  2. The OpenAPI specification is automatically regenerated via CI/CD
  3. A new version of this package is published

🔍 Examples

Example: Generate TypeScript SDK

# Install the package
npm install @proxima-nexus/openapi

# Generate TypeScript SDK
npx @openapitools/openapi-generator-cli generate \
  -i node_modules/@proxima-nexus/openapi/openapi.yaml \
  -g typescript-axios \
  -o ./src/generated/api-client \
  --additional-properties=npmName=@my-org/proxima-nexus-client,npmVersion=1.0.0

# Use the generated client
import { Configuration, UsersApi } from './src/generated/api-client';

const config = new Configuration({
  apiKey: process.env.PROXIMA_NEXUS_API_KEY,
  basePath: 'https://api.proxima-nexus.com',
});

const usersApi = new UsersApi(config);
const users = await usersApi.userControllerSearch({
  displayName: 'John',
  limit: 10,
});

Example: Validate Request Schema

import Ajv from 'ajv';
import addFormats from 'ajv-formats';
import openapiJson from '@proxima-nexus/openapi/openapi.json';

const ajv = new Ajv({ allErrors: true });
addFormats(ajv);

// Get schema for CreateUserDto
const createUserSchema = openapiJson.components.schemas.CreateUserDto;
const validate = ajv.compile(createUserSchema);

// Validate user input
const userInput = {
  displayName: 'John Doe',
  email: '[email protected]',
  location: {
    latitude: 40.7128,
    longitude: -74.0060,
  },
};

if (validate(userInput)) {
  console.log('Valid input');
} else {
  console.error('Validation errors:', validate.errors);
}

Example: Use with Redoc

<!DOCTYPE html>
<html>
  <head>
    <title>Proxima Nexus API Documentation</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
    <style>
      body {
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <redoc spec-url='./node_modules/@proxima-nexus/openapi/openapi.json'></redoc>
    <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
  </body>
</html>

Note: This package contains only the OpenAPI specification. It does not include the API implementation, which remains proprietary.