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-meshalto-app

v0.1.1

Published

CLI tool to quickly set up Meshalto Payment SDK projects

Downloads

54

Readme

@meshalto/cli

CLI tool for quickly setting up Meshalto Payment SDK projects.

Installation

NPX (Recommended - No installation needed)

npx @meshalto/cli create my-payment-app

Global Installation

npm install -g @meshalto/cli

Alternative Command

npx create-meshalto-app my-payment-app

Usage

Create a New Project

# Interactive mode
npx @meshalto/cli create

# With project name
npx @meshalto/cli create my-payment-app

# Or using the create-meshalto-app alias
npx create-meshalto-app my-payment-app

The CLI will prompt you to:

  1. Choose a framework (React, Vue, or WordPress)
  2. Decide whether to include the backend API server
  3. Select your preferred package manager (npm, yarn, or pnpm)

Initialize in Existing Project

cd your-existing-project
npx @meshalto/cli init

What Gets Created

React Project Structure

my-payment-app/
├── sdk/
│   ├── vite-react/       # React payment components
│   │   ├── src/
│   │   ├── e2e/          # E2E tests
│   │   ├── .env          # Auto-generated
│   │   └── package.json
│   └── server/           # Backend API (optional)
│       ├── docker-compose.yml
│       ├── .env          # Auto-generated with API key
│       └── requirements.txt
└── README.md

Features

Automatic Setup

  • Clones the latest Meshalto SDK
  • Configures environment files
  • Generates secure API keys
  • Installs dependencies

Framework Choice

  • React (Vite + TypeScript)
  • Vue.js
  • WordPress Plugin

Backend Integration

  • Optional Docker-based API server
  • Pre-configured payment gateways
  • Auto-generated API authentication

Ready to Use

  • Payment forms with Stripe, Square, PayPal
  • Customizable themes
  • E2E tests included
  • Complete documentation

Quick Start After Creation

Start Backend (if included)

cd my-payment-app/sdk/server
docker-compose up -d

Start React Frontend

cd my-payment-app/sdk/vite-react
npm run dev

Configure API Keys

Edit .env files:

  • sdk/server/.env - Backend keys (Stripe, Square, PayPal)
  • sdk/vite-react/.env - Frontend keys (Publishable keys)

Commands

create [project-name]

Creates a new Meshalto payment integration project

Options:

  • Interactive prompts for framework, backend, package manager

init

Initializes Meshalto SDK in an existing project

Options:

  • Framework selection
  • Dependency installation

Environment Variables

The CLI automatically creates .env files with placeholders:

Backend .env

DATABASE_URL=postgresql://postgres:postgres@db:5432/meshalto
STRIPE_API_KEY=sk_test_your_key_here
SQUARE_ACCESS_TOKEN=your_token_here
SQUARE_LOCATION_ID=your_location_id_here
API_KEY=auto_generated_key

Frontend .env

VITE_MESHALTO_API_KEY=auto_generated_key
VITE_MESHALTO_API_URL=http://localhost:8002
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_your_key_here
VITE_SQUARE_APPLICATION_ID=your_app_id_here

Requirements

  • Node.js 18 or higher
  • Docker (for backend server)

Examples

Create React app with backend

npx @meshalto/cli create
# Select: React, Yes to backend, npm

Create WordPress plugin only

npx @meshalto/cli create
# Select: WordPress, No to backend

Add to existing React app

cd existing-app
npx @meshalto/cli init
# Select: React, Yes to install dependencies

Support

License

MIT © Meshalto