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

@zindua/cli

v1.0.0

Published

Zindua CLI — send OTP, inspect project, list templates, diagnose API key from the terminal.

Readme

@zindua/cli

Terminal tools for Zindua: send OTP tests, inspect your project, list templates, and diagnose your API key. No dashboard required.

| | | |---|---| | API reference | zindua.run/developers | | Next.js starter | zindua.run/next | | SDK (Node) | @zindua/sdk |

npx @zindua/cli@latest doctor

Do not confuse with @zindua/create-app — that scaffolds a Next.js app. This CLI talks to the Zindua API from your terminal.


Prerequisites

  1. Node.js 18+
  2. A Zindua project and API key (znd_test_… for sandbox, znd_live_… for production)
  3. At least one channel connected (email and/or WhatsApp) to actually deliver messages

Install / run

No global install required:

npx @zindua/cli@latest <command>

Set your API key once:

export ZINDUA_API_KEY=znd_test_your_key_here

Or pass per command (avoid shell history on shared machines):

npx @zindua/cli@latest project --api-key "$ZINDUA_API_KEY"

The CLI also reads .env and .env.local in the current directory.


Commands

Send a message

npx @zindua/cli@latest send \
  --to [email protected] \
  --template otp-verification \
  --channel email \
  --lang en \
  --var code=482910 \
  --var appName=MyApp

WhatsApp (E.164 with +):

npx @zindua/cli@latest send \
  --to +243812345678 \
  --channel whatsapp \
  --template otp-verification \
  --var code=482910

Inspect project

npx @zindua/cli@latest project

Shows project name, plan, API key suffix, and channel status.

List templates

npx @zindua/cli@latest templates list

Diagnose configuration

npx @zindua/cli@latest doctor

Checks API key presence, format, GET /project, and channel readiness.

Connect site (WordPress binding)

npx @zindua/cli@latest connect --site https://myshop.com

Binds your API key to a site URL (same flow as the WordPress plugin onboarding).


JSON output (CI / scripts)

Add --json to any command:

npx @zindua/cli@latest project --json
npx @zindua/cli@latest send --to [email protected] --template otp-verification --var code=123456 --json

Exit codes:

| Code | Meaning | |------|---------| | 0 | Success | | 1 | API or validation error | | 2 | Missing config (ZINDUA_API_KEY, required flags) |


Environment variables

| Variable | Required | Notes | |----------|----------|-------| | ZINDUA_API_KEY | Yes | From Dashboard → Projects | | ZINDUA_API_BASE_URL | No | Default https://zindua.run/api/v1 | | ZINDUA_SITE_URL | For bound keys | Sent as X-Zindua-Site-Url |

Never commit real API keys. Use env vars or CI secrets.


Security

  • API key stays in your terminal environment — never logged by the CLI
  • Validation runs locally via @zindua/sdk before calling the API
  • Prefer export ZINDUA_API_KEY=… over typing the key on the command line

Command cheat sheet

npx @zindua/cli@latest send --to [email protected] --template otp-verification --var code=482910
npx @zindua/cli@latest project
npx @zindua/cli@latest templates list
npx @zindua/cli@latest doctor
npx @zindua/cli@latest connect --site https://myshop.com

Related packages

| Package | Purpose | |---------|---------| | @zindua/create-app | Scaffold Next.js auth app | | @zindua/sdk | Node.js SDK for your backend | | zindua-connect | Official WordPress plugin |