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

@nimbus-sh/config

v0.1.3

Published

Typed wrangler-config helper for Nimbus embedders. Generates a valid wrangler.jsonc from one function call.

Readme

@nimbus-sh/config

Typed, zero-dependency Wrangler config helper for Nimbus.

Install

npm install --save-dev @nimbus-sh/config

Quickstart

import { buildNimbusWranglerConfig, defineNimbusConfig } from '@nimbus-sh/config';
import { writeFileSync } from 'node:fs';

export const nimbusConfig = defineNimbusConfig({
  endpoint: 'https://my-nimbus.workers.dev',
  runtimeCache: { mode: 'shared' },
  sandboxes: {
    default: {
      root: '/home/user',
      runtimes: {
        preinstall: ['python'],
        onDemand: true,
        allow: ['node', 'bun', 'npm', 'git', 'python', 'ruby', 'clang', 'shell'],
      },
    },
  },
});

const config = buildNimbusWranglerConfig({
  name: 'my-nimbus',
  r2BucketPrefix: 'my-nimbus',
  runtimeCache: 'shared',          // or 'byoa' / { mode, bucket }
  // legacyPublic: true,           // single-tenant mode, no JWT verify
});

writeFileSync('wrangler.jsonc', JSON.stringify(config, null, 2));

Options

| Option | Type | Default | What | |---|---|---|---| | name | string | (required) | Worker name + R2 bucket prefix. | | compatibilityDate | string | '2026-04-01' | Wrangler compat date. | | placement | 'smart' \| undefined | 'smart' | Cloudflare Smart Placement. | | r2BucketPrefix | string | name | Prefix for ${prefix}-npm-cache, etc. | | runtimeCache | 'shared' \| 'byoa' \| { mode, bucket? } | 'shared' | Bind NIMBUS_RUNTIME_CACHE to the standard account-local bucket nimbus-runtime-cache-public, ${prefix}-runtime-cache, or an explicit bucket. Seed the bucket with nimbus setup cloudflare or nimbus runtime sync. | | legacyPublic | boolean | false | Adds NIMBUS_LEGACY_PUBLIC=1 to vars (single-tenant mode). | | extraAliases | Record<string, string> | {} | Extra entries merged into the alias map. |

Why use this over hand-written wrangler.jsonc?

  1. Forwards-compat: if Nimbus adds a required binding in v0.2, this package updates and your wrangler.jsonc regenerates cleanly.
  2. Alias map: 12 alias entries are required for isomorphic-git and the npm installer to work. Easy to copy-paste-drift. This helper exports them as NIMBUS_REQUIRED_ALIASES.
  3. Programmatic: usable from Pulumi/Terraform/CDK or any custom CI.
import { NIMBUS_REQUIRED_ALIASES } from '@nimbus-sh/config';
// → { 'clean-git-ref': '...', 'sha.js': 'sha.js', ... }

Sandbox profiles

defineNimbusConfig() is a typed identity helper for SDK/runtime policy. It does not write files and does not affect Wrangler output by itself; pass the returned object to Nimbus.fromEnv(env, nimbusConfig), Nimbus.connect({ config: nimbusConfig, ... }), and createNimbusHandler({ sdk: { remote: true, config: nimbusConfig } }).

const nimbusConfig = defineNimbusConfig({
  endpoint: 'https://my-nimbus.workers.dev',
  sandboxes: {
    proteus: {
      root: '/home/user',
      tools: { namespace: 'sandbox', kind: 'sandbox' },
      runtimes: {
        preinstall: ['python', 'clang'],
        onDemand: true,
        allow: ['node', 'bun', 'npm', 'git', 'python', 'ruby', 'clang', 'shell'],
      },
      preview: { baseUrl: 'https://my-nimbus.workers.dev/s/{sessionId}' },
    },
  },
});

preinstall is applied by box.ready(). onDemand: false blocks SDK runtime installs for runtimes not in preinstall; allow controls which runtime operations the SDK advertises and permits.

Status

v0.1. The output shape is locked against Nimbus v0.1; minor knobs may be added without breakage.

MIT.