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

@polymersuite/polymerpay-cli

v0.1.2

Published

Polymer Pay CLI

Readme

@polymersuite/polymerpay-cli

The official command-line interface for initializing and configuring the Polymer Pay SDK in your JavaScript or TypeScript projects.

Overview

The Polymer Pay CLI provides a seamless, interactive onboarding experience. Instead of manually installing dependencies and writing boilerplate code, you can use the CLI to automatically set up the Polymer Pay client in seconds.

It is framework-agnostic and works perfectly with Next.js, Express, NestJS, SvelteKit, Vue, React, or plain Node.js scripts.

Usage

You don't need to install the CLI globally. You can run it directly using your preferred package manager:

Using npm

npx @polymersuite/polymerpay-cli init

Using bun

bunx @polymersuite/polymerpay-cli init

Using pnpm

pnpm dlx @polymersuite/polymerpay-cli init

Using yarn

yarn dlx @polymersuite/polymerpay-cli init

What it does

When you run the init command, the CLI will automatically:

  1. Detect your environment: It intelligently detects if you are using TypeScript or JavaScript, and identifies your package manager (npm, yarn, pnpm, or bun).
  2. Install the SDK: It installs the latest version of @polymersuite/polymerpay-sdk using your detected package manager.
  3. Generate the Client: It creates a centralized, singleton client file (e.g., src/lib/polymerpay.ts) that initializes the SDK.
  4. Update Environment Variables: It safely appends the POLYMER_PAY_API_KEY variable to your .env file.

Example Output

┌   Polymer Pay Setup
│
◇  Environment
│  Detected: TypeScript, src/ directory, bun package manager.
│
◆  Where would you like to initialize the client? (Press Enter to use default)
│  src/lib/polymerpay.ts
│
◇  Installing @polymersuite/polymerpay-sdk using bun...
│
◇  Creating src/lib/polymerpay.ts...
│
◇  Updating .env file...
│
└  ✅ Success! Polymer Pay is ready.

Next steps:
1. Add your API key to .env: POLYMER_PAY_API_KEY=your_key_here
2. Import the client anywhere in your app:
   import { polymer } from "./src/lib/polymerpay"; // Adjust path as needed

Using the Generated Client

Once the CLI finishes, you can import the generated polymer instance anywhere in your application to interact with the API:

import { polymer } from "@/lib/polymerpay";

async function createPayment() {
  const checkout = await polymer.checkout.create({
    amount: 1000,
    currency: "USD",
    successUrl: "https://example.com/success",
    cancelUrl: "https://example.com/cancel",
  });

  return checkout.url;
}

Documentation

For full documentation, guides, and API reference, visit docs.polymerpay.com.