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

create-getpatter

v0.6.9

Published

npm create shim for Patter — runs `getpatter init`, the greenfield voice-agent setup wizard

Readme

create-getpatter

The npm create shim that powers:

npm create getpatter my-app
# or, forwarding flags:
npm create getpatter my-app -- --mode pipeline --carrier telnyx --yes

It scaffolds a runnable Patter voice-agent project — exactly what getpatter init produces.

What it is

A ~120-line, zero-dependency Node bootstrap (index.js). It does not contain any wizard logic of its own. All prompts, the provider matrix, and the scaffold codegen live in the SDK's setup wizard (libraries/typescript/src/init/cli.ts, the behavioural mirror of the Python getpatter/init/cli.py). The shim's only job is to hand its arguments to getpatter init.

Design choice — why a re-dispatch, not a bundled copy

Two options were on the table:

  1. Spawn the published getpatter init (what this does).
  2. Bundle / re-export a minimal copy of the wizard inside this package.

Option 1 wins on the principle that matters most here — single source of truth. The wizard is non-trivial (provider matrix, parity-locked codegen, secure .env writing). Duplicating it into a second package guarantees drift: the day someone adds a provider to the SDK, create-getpatter would silently scaffold the old set. By re-dispatching, the shim is always in lockstep with whatever getpatter version it targets, and there is exactly one implementation to test and maintain.

How "spawn" avoids a needless network hit

create-getpatter resolves the CLI in two steps:

  1. Local first (no network): if getpatter is already resolvable from the directory where npm create runs (installed in the project's node_modules or globally), it spawns that package's getpatter init directly. Nothing is fetched.
  2. npx fallback: otherwise it runs npx -y getpatter@<pinned-version> init, letting npm fetch the package on demand. This is the same network access npm create already implies, so it adds no new dependency at create-time — the package itself has an empty dependency tree.

The targeted getpatter version is pinned in this package's version field (kept in lockstep with the SDK — currently 0.6.3).

Argument handling

  • The first bare positional (my-app) is promoted to --name my-app, the ergonomic npm create <tool> <dir> shape.
  • Every flag is forwarded verbatim to getpatter init: --mode, --runtime, --engine, --stt, --llm, --tts, --carrier, --phone, --skip-keys, --ide, --no-skills, --no-git, --force, --yes/-y, --help/-h.

Run npm create getpatter -- --help to see the full wizard usage.

Verifying locally

# Build the SDK so a local getpatter CLI exists, then run the smoke test:
cd libraries/typescript && npm run build && cd ../..
node create-getpatter/index.js --help        # forwards to the wizard
npm --prefix create-getpatter test            # full end-to-end smoke test

smoke-test.mjs links the freshly-built SDK as a local getpatter, exercises the no-network resolution path, and asserts that create-getpatter my-app --yes scaffolds a project whose .env is written at mode 0600.