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

@holoscript/config

v6.1.2

Published

Centralized configuration for the HoloScript platform — endpoints, auth, env validation. Server-only auth guards prevent key leakage to browser.

Readme

@holoscript/config

Centralized configuration for the HoloScript platform — service endpoints, server-only auth helpers, and startup environment validation in one place, so nothing hardcodes a URL or reads process.env ad hoc.

Installation

npm install @holoscript/config

Usage

import { ENDPOINTS, getMcpApiKey, mcpAuthHeaders, requireConfig } from '@holoscript/config';

// Fail fast at startup if required env vars are missing
requireConfig(['HOLOSCRIPT_API_KEY'], 'my-service');

// Read a caller-configured endpoint (falls back to the public default)
const res = await fetch(`${ENDPOINTS.HOLOSCRIPT_MCP}/health`);

// Server-only: authenticated request to the MCP orchestrator
const data = await fetch(`${ENDPOINTS.MCP_ORCHESTRATOR}/knowledge/query`, {
  headers: { ...mcpAuthHeaders(), 'Content-Type': 'application/json' },
  body: JSON.stringify({ search: 'pipeline' }),
});

What's in the package

  • ENDPOINTS / getEndpoint() — named service URLs (MCP orchestrator, HoloScript MCP server, absorb service, Moltbook, HoloMesh), each overridable via an environment variable and falling back to a public default.
  • auth helpers (getMcpApiKey, getHolomeshKey, mcpAuthHeaders, getOAuthToken, configureConfigSecretResolver, …) — server-only accessors that read credentials from process.env (or an injected ConfigSecretResolver, e.g. a HoloKey-backed vault). These throw if called from a browser context, so keys never leave the server.
  • validateConfig() / requireConfig() / REQUIRED_VARS — startup validation: check that required environment variables are present and get a structured report, or throw immediately for fail-fast startup.

Package boundary & release posture

@holoscript/config is built for the external operator, founder, and agent-framework audience running their own HoloScript-based service — it does not assume you are pointed at any particular deployment. Every endpoint and credential is caller-owned: you bring your own .env file (or a ConfigSecretResolver you supply via configureConfigSecretResolver), and every URL in ENDPOINTS is an environment variable override with a public default, not a founder-owned pin.

This package does not ship founder-local infrastructure. It has no bundled secret store, no private workspace default, and no hardcoded founder credentials — resolveConfigSecret() falls through to @holoscript/secrets-broker only when you have that package configured, and to plain process.env otherwise. Wiring a HoloKey vault or any other custody lane is the caller's integration, outside this package's boundary.

Status: v0-preview. ENDPOINTS, the auth accessors, and validateConfig/requireConfig are exercised by consuming services in this repo; known limitations are that the built-in OAuth client_credentials flow assumes a single in-process token cache (no multi-tenant token isolation yet) and the default secret resolver's fallback chain is best-effort, not a formal precedence contract. Pin a version for reproducible config behavior; rollback is a plain npm install @holoscript/config@<version>.

License

MIT