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

@descix/cloud-core

v1.1.5

Published

Shared config bootstrap, Firestore, PubSub, and service manifest for DeSciX platform microservices

Readme

@descix/cloud-core

Config bootstrap, Firestore, Pub/Sub, mesh context and service-manifest registration for DeSciX platform microservices. This is the bottom layer: it owns the platform's relationship with GCP and knows nothing about DeSciX domain objects.

Consumed by @descix/platform-api, the Cloud microservice, the Powch microservice, and the microservice scaffold the CLI generates.

Where it sits

@descix/cloud-core        GCP infrastructure: config, Firestore, Pub/Sub, manifests
        ↑
@descix/platform-api      DeSciX domain: models, auth, permissions, entitlements
        ↑
your microservice

There is no package called a "service SDK". The library is @descix/cloud-core, the scaffold is @descix/service-starter, and the command group that creates and runs one is descix microservice.

Entry point

One export path, .src/index.js.

import { createCloudConfig, initializeCloudConfig, getCloudConfig } from '@descix/cloud-core';

createCloudConfig({ rootPath: path.resolve(import.meta.url, '../../') });
await initializeCloudConfig();
const utils = getCloudConfig();

That three-call shape is the contract: construct, await, then read. getCloudConfig() before initializeCloudConfig() resolves has not finished loading secrets.

What it exports

| Area | Members | |---|---| | Config | createCloudConfig, initializeCloudConfig, getCloudConfig, CloudConfigFatalError | | Constants | ProductTypes, LoginStatus, NetworkStatus, PERMISSIONS, GUEST_ALLOWED_COMMANDS | | Mesh context | normalizeMeshContext, serializeMeshContext, signMeshContext, verifyMeshContext, buildOutboundMeshHeaders, createMeshContextVerifier, MeshContextError | | Infrastructure | getFirestoreInstance, publishMessage, registerServiceManifest, killExistingProcess | | Helpers | networkResponse, stripInvalidAndLower |

Source modules: config.js, firestore.js, meshContext.js, pubsub.js, serviceManifest.js, processUtils.js, storageUtils.js.

Config

Config resolution — the two-phase bootstrap, the layer precedence, per-environment secret isolation, and the no-fallback policy — is documented in the platform repo at DeSciX/V2_docs/deployment/config-bootstrap-chain.md. Read it before adding a config key; where a value belongs (secret vs per-env defaults vs env-invariant defaults) is a decision that file already answers.

(Deliberately not a relative link: this README ships inside the published package, where any ../ path escapes the tarball and resolves to nothing.)

A missing required value is a boot failure, not a default. CloudConfigFatalError is the intended behaviour: a null surfaces a misconfiguration immediately instead of letting a service run against the wrong thing. Do not add || 'some-default' to recover from it.

config-schema.json ships with the package and holds only the keys universal to every consumer. Service-specific requirements are declared by the consumer via createCloudConfig({ additionalRequiredKeys: [...] }), so a small app microservice is not forced to supply RAG, chain or AI config it never uses.