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-moneydevkit

v0.2.4

Published

Interactive CLI for bootstrapping Money Dev Kit credentials.

Readme

create-moneydevkit

Developer onboarding CLI for Money Dev Kit. This package publishes the interactive npx create-moneydevkit flow that provisions API keys, webhook secrets, and a Lightning mnemonic for local development.

Local Development

npm install
npm run dev          # watch mode via tsup
npm run build        # produce dist/ bundle + types
npm run run:local    # talk to a dashboard at http://localhost:3900

Releasing to npm

  1. Bump the version in packages/create-moneydevkit/package.json (for example: npm version 0.2.0 --workspace packages/create-moneydevkit --no-git-tag-version) and commit the resulting package-lock.json change.
  2. Push the commit, then create a GitHub release (or annotated tag) named create-moneydevkit-vX.Y.Z that matches the new version string.
  3. The publish-create-moneydevkit workflow will detect that tag, run the build, and execute npm publish packages/create-moneydevkit --access public using the repo’s NPM_TOKEN.

Once that workflow succeeds, npx create-moneydevkit automatically downloads the freshly published build.

What the CLI does

  1. Calls the MDK onboarding RPC to create a device/session code.
  2. Launches the browser for sign-in (or prints the verification URL when --no-open or --json are supplied).
  3. Polls until the dashboard authorises the device, then provisions an API key + webhook secret, and generates a mnemonic locally via BIP-39.
  4. Shows an env diff, writes .env.local (or a user-specified file), and optionally copies secrets to the clipboard.

Running headlessly (for LLMs/automation)

Manual mode still uses the device-auth flow—the only difference is that you reuse an existing dashboard session instead of waiting for a browser round trip. The steps are:

  1. Sign in via the dashboard UI (browser) and keep the tab open.
  2. Copy the better-auth.session_token cookie from your browser’s developer tools (Application → Storage → Cookies or the Network panel). Copy the full name=value pair.
  3. Pass that cookie to the CLI using --manual-login. Example:
SESSION_COOKIE='better-auth.session_token=eyJhbGciOiJI...'

npx create-moneydevkit \
  --base-url http://localhost:3900 \
  --dir /tmp/mdk-demo \
  --env-target .env.local \
  --webhook-url https://example.com \
  --manual-login "$SESSION_COOKIE" \
  --json --no-open --no-clipboard

The CLI still requests a device code, immediately authorises it using the provided cookie, and emits a JSON payload containing the secrets plus the env-file path—no username/password ever touch the terminal.

Flags

| Flag | Description | | ---- | ----------- | | --base-url | Override dashboard base URL (default https://moneydevkit.com). | | --dir | Target project directory (defaults to cwd). | | --env-target | Env file name (default .env.local). | | --project-name | Friendly name used when minting the API key. | | --no-open | Skip auto-opening the browser; prints the verification URL instead. | | --no-clipboard | Do not place secrets on the clipboard. | | --json | Emit JSON result payloads (no interactive prompts). | --manual-login "<cookie>" | Use a pre-generated dashboard session cookie instead of device flow. | | --webhook-url "<url>" | Provide the webhook URL when running in --manual-login or --json modes. | | --force-new-webhook | Force creation of a new webhook even if one already exists for the URL. |

Manual login mode calls POST /api/cli/device/authorize with the supplied session cookie. When used with --json, pass --webhook-url to avoid interactive prompts.