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

@notambourine/shopify-cli-condom

v0.0.1

Published

Development-only Shopify CLI wrapper for working on real stores.

Downloads

97

Readme

shopify-cli-condom

Develop themes against a real store without exposing its live theme to routine commands.

Its only command, dev, runs a pinned Shopify CLI with development-theme allocation. It rejects theme IDs, live-theme access, publishing, pushing, environments, and arbitrary CLI arguments.

Usage

Requires Node.js 24 or newer. Until published, install a local tarball in the theme project.

Add a script:

{
  "scripts": {
    "dev": "shopify-cli-condom dev --store your-store"
  }
}

Provide SHOPIFY_CLI_THEME_TOKEN through a secret manager, then run:

npm run dev

Themes need layout/ and templates/. Run shopify-cli-condom --help for all options.

What it enforces

  • The wrapper accepts only dev and builds the Shopify CLI command.
  • Shopify receives no theme ID, live-theme flag, environment, push, or publish.
  • Repository shopify.theme.toml files cannot affect the command.
  • Inherited SHOPIFY_FLAG_*, NODE_OPTIONS, and unrelated environment variables are removed.
  • The bundled Shopify CLI is pinned. Consumer node_modules/.bin exposes shopify-cli-condom, not shopify.
  • A separate Shopify CLI on PATH triggers a bypass warning.

Shopify CLI receives a temporary directory with an empty shopify.theme.toml and links to the working tree. Edits remain live. Restart after adding a top-level theme directory that did not exist at startup.

The theme's .shopifyignore is preserved. Ignore lists defined in TOML environments are not. Proxy environment variables are not supported.

Normal exit and handled signals remove the temporary directory; SIGKILL can leave it behind. Cleanup never removes the working tree.

Security boundary

The command limits accidents, not credentials.

Theme tokens cover an entire store. A production token can reach the live theme through another Shopify CLI, a direct API request, or any HTTP client. Keep production tokens in CI-only secrets. Use staging-store tokens on development machines when possible. Retain production deployment controls and agent command guards; this package installs no agent hook.

Sealed tokens through a proxy

worker/ is a database-free Cloudflare Worker that forwards only development-theme operations to Shopify. An admin reads a Theme Access token from 1Password and authorizes sealing with a configured SSH key. Developers receive shptka_sealed_..., set SHOPIFY_CLI_CONDOM_PROXY to the Worker hostname, and use the wrapper without SSH keys or raw Shopify credentials. Self-hosters can seal locally.

A stolen sealed token can create, edit, and delete development themes on its bound store until expiry. Early individual revocation is unavailable. Rotate the Theme Access token or server decryption key to invalidate credentials. The Worker operator can decrypt every received token. Self-host if you do not trust the operator. See operator and recipient setup.

Development

npm ci --ignore-scripts
npm run lint && npm run typecheck && npm test

Node runs the TypeScript sources directly. npm pack compiles the consumer dist/ because Node does not strip types under node_modules. Installing without --ignore-scripts leaves an unpackable bundled tree.

Tests cover rejected targeting, environment and config isolation, temporary themes, and installed binary shape without contacting Shopify. worker/ has its own install and npm test for sealing, the GraphQL allowlist, and fake-upstream requests. Live reload, authentication, and the proxy path need a manual smoke test against a development theme.

Shopify references: theme dev and environment precedence.