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

@moneydevkit/create

v0.22.0

Published

Interactive CLI for bootstrapping Money Dev Kit credentials.

Readme

@moneydevkit/create

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

Getting Started

  1. Run npx @moneydevkit/create@latest from the root of your project. The CLI walks you through login, webhook verification, and writes your secrets to .env.local (or a path you pick) while also copying them to the clipboard by default.
  2. If we detect a Next.js app (package.json next dependency, next.config.*, or an app/ directory), we'll offer to install and scaffold @moneydevkit/nextjs for you.
  3. Follow the prompts. When you reach your editor again, MDK_ACCESS_TOKEN and MDK_MNEMONIC are ready to go.

Customize the flow with flags

Pass any of the options from the table below to skip prompts or run non-interactively (add --json for machine-readable output). Example:

npx @moneydevkit/create@latest \
  --dir ./apps/storefront \
  --env-target .env.production \
  --webhook-url https://example.com \
  --project-name "Storefront" \
  --no-open --no-clipboard

Manual login (optional)

You can reuse an existing dashboard session instead of waiting for device auth:

  1. Sign into https://moneydevkit.com in the browser and keep the tab open.
  2. Copy the better-auth.session_token cookie (name=value).
  3. Run npx @moneydevkit/create@latest --manual-login "better-auth.session_token=..." --webhook-url https://yourapp.com --no-open (combine with --json for scripts).

The CLI still creates a device code but immediately authorises it using your cookie, then prints the same outputs as the interactive flow.

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.
  5. Detects a Next.js app and (with your confirmation or --scaffold-nextjs) installs @moneydevkit/nextjs, wraps next.config.* with withMdkCheckout, and scaffolds the API route plus /checkout/[id] page without overwriting existing files.

Next.js scaffolding

  • Auto-detects Next.js via package.json, next.config.*, or app/ directory. If found, you'll be prompted to install and scaffold @moneydevkit/nextjs. Requires Next.js 15+ (per SDK peer deps).
  • --scaffold-nextjs forces the install/scaffold (useful for CI); if no Next.js app is found, the CLI prints a warning and skips.
  • Always scaffolds App Router files (app/api/mdk/route.(ts|js) and app/checkout/[id]/page.(tsx|js)).
  • Existing files are left untouched; next.config.* is backed up if we need to wrap it with withMdkCheckout.

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 domain 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. | | --scaffold-nextjs | Force install + scaffold @moneydevkit/nextjs (warns and skips if no Next.js app is detected). |

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.

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

All @moneydevkit/* packages share a unified version number and are released together.

Beta releases (automatic)

Every push to main that modifies files in packages/ triggers the publish-beta workflow:

  1. All packages are bumped to the next beta version (e.g., 0.4.0-beta.00.4.0-beta.1)
  2. All packages are published to npm with the beta tag

Install the latest beta with:

npx @moneydevkit/create@beta
npm install @moneydevkit/nextjs@beta

Stable releases

  1. Create a GitHub release with a tag matching the version in package.json (e.g., if package.json has 0.4.0-beta.3, create tag v0.4.0)
  2. The publish-release workflow validates, publishes, and bumps to the next minor version

Once that workflow succeeds, npx @moneydevkit/create@latest automatically downloads the freshly published build.

See the main README for version flow examples and error cases.