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

@robinmordasiewicz/f5xc-auth

v1.0.1

Published

Shared authentication library for F5 Distributed Cloud MCP servers - XDG-compliant profile management

Readme

@robinmordasiewicz/f5xc-auth

Shared authentication library for F5 Distributed Cloud MCP servers. Provides XDG-compliant profile management and credential handling.

Installation

npm install @robinmordasiewicz/f5xc-auth

Features

  • XDG-compliant profile storage - Profiles stored in ~/.config/f5xc/profiles/
  • Multiple authentication methods - API token, P12 certificate, or cert/key pair
  • Environment variable priority - Override profile settings with environment variables
  • URL normalization - Handles various F5XC tenant URL formats
  • TLS configuration - Custom CA bundles and insecure mode for staging

Usage

Basic Authentication

import { CredentialManager } from '@robinmordasiewicz/f5xc-auth';

const credentialManager = new CredentialManager();
await credentialManager.initialize();

if (credentialManager.isAuthenticated()) {
  console.log(`Authenticated as: ${credentialManager.getTenant()}`);
  console.log(`API URL: ${credentialManager.getApiUrl()}`);
  console.log(`Namespace: ${credentialManager.getNamespace()}`);
}

Profile Management

import { getProfileManager } from '@robinmordasiewicz/f5xc-auth';

const profileManager = getProfileManager();

// List all profiles
const profiles = await profileManager.list();

// Get active profile
const active = await profileManager.getActiveProfile();

// Save a new profile
await profileManager.save({
  name: 'production',
  apiUrl: 'https://mytenant.console.ves.volterra.io',
  apiToken: 'my-api-token',
  defaultNamespace: 'my-namespace'
});

// Switch profiles
await profileManager.setActive('production');

HTTP Client

import { CredentialManager, createHttpClient } from '@robinmordasiewicz/f5xc-auth';

const credentialManager = new CredentialManager();
await credentialManager.initialize();

const httpClient = createHttpClient(credentialManager, {
  timeout: 30000,
  debug: true
});

if (httpClient.isAvailable()) {
  const response = await httpClient.get('/web/namespaces');
  console.log(response.data);
}

Environment Variables

| Variable | Description | |----------|-------------| | F5XC_API_URL | F5 XC tenant URL | | F5XC_API_TOKEN | API token for authentication | | F5XC_P12_BUNDLE | Path to P12 certificate bundle | | F5XC_CERT | Path to certificate file | | F5XC_KEY | Path to private key file | | F5XC_NAMESPACE | Default namespace | | F5XC_TLS_INSECURE | Disable TLS verification (staging only) | | F5XC_CA_BUNDLE | Path to custom CA bundle |

Environment variables take priority over profile settings.

Credential Priority

  1. Environment variables (highest priority)
  2. Active profile from ~/.config/f5xc/
  3. Documentation mode (no credentials - lowest priority)

Profile Format

Profiles are stored as JSON files in ~/.config/f5xc/profiles/:

{
  "name": "production",
  "apiUrl": "https://mytenant.console.ves.volterra.io",
  "apiToken": "your-api-token",
  "defaultNamespace": "my-namespace"
}

Authentication Methods

API Token:

{
  "name": "token-auth",
  "apiUrl": "https://mytenant.console.ves.volterra.io",
  "apiToken": "your-api-token"
}

P12 Certificate:

{
  "name": "p12-auth",
  "apiUrl": "https://mytenant.console.ves.volterra.io",
  "p12Bundle": "/path/to/certificate.p12"
}

Cert + Key:

{
  "name": "cert-auth",
  "apiUrl": "https://mytenant.console.ves.volterra.io",
  "cert": "/path/to/certificate.pem",
  "key": "/path/to/private-key.pem"
}

Security

  • Profile files are created with 0o600 permissions (owner read/write only)
  • Config directory uses 0o700 permissions
  • Tokens are masked when displayed (showing only last 4 characters)
  • TLS insecure mode requires explicit opt-in

License

MIT