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

@oneshot101/paymenterjs

v0.1.0

Published

A developer-friendly Paymenter API client for TypeScript and JavaScript

Downloads

3

Readme

PaymenterJS

PaymenterJS is a developer-friendly Paymenter API client for TypeScript and JavaScript. This library provides a structured and typed way to interact with your Paymenter instance's API.

Installation

# npm
npm install @oneshot101/paymenterjs

# pnpm
pnpm add @oneshot101/paymenterjs

# yarn
yarn add @oneshot101/paymenterjs

# bun
bun add @oneshot101/paymenterjs

Quick start

To get started, you need to initialize the client with your Paymenter instance URL and API key.

import { PaymenterClient } from '@oneshot101/paymenterjs';

const client = new PaymenterClient({
  baseUrl: 'https://your-paymenter-instance.com/api',
  apiKey: 'your-api-key',
});

Usage

Users

Manage user accounts and details.

// List all users
const users = await client.users.list();

// Get a specific user
const user = await client.users.get(1);

// Create a new user
const newUser = await client.users.create({
  username: 'johndoe',
  email: '[email protected]',
  password: 'securepassword',
  first_name: 'John',
  last_name: 'Doe',
});

// Update a user
await client.users.update(1, {
  first_name: 'Johnny',
});

// Delete a user
await client.users.delete(1);

Tickets

Full support for the ticketing system.

// List all tickets
const tickets = await client.tickets.list();

// Get a specific ticket
const ticket = await client.tickets.get(1);

// Create a new ticket
const newTicket = await client.tickets.create({
  subject: 'Help needed',
  user_id: 1,
  priority: 'high',
  status: 'open',
});

// Update a ticket
await client.tickets.update(1, {
  status: 'closed',
});

Invoices

Create and manage invoices.

// List all invoices
const invoices = await client.invoices.list();

// Get a specific invoice
const invoice = await client.invoices.get(1);

// Create a new invoice
const newInvoice = await client.invoices.create({
  user_id: 1,
  status: 'pending',
});

Orders

Manage customer orders.

// List all orders
const orders = await client.orders.list();

// Get a specific order
const order = await client.orders.get(1);

// Create a new order
const newOrder = await client.orders.create({
  user_id: 1,
  product_id: 1,
  billing_cycle: 'monthly',
});

Services

Interact with services provided to users.

// List all services
const services = await client.services.list();

// Get a specific service
const service = await client.services.get(1);

// Create a new service
const newService = await client.services.create({
  name: 'Web Hosting',
  description: 'Premium web hosting',
  price: 10.0,
});

Affiliates

Manage affiliate programs and tracking.

// List all affiliates
const affiliates = await client.affiliates.list();

// Get a specific affiliate
const affiliate = await client.affiliates.get(1);

// Create a new affiliate
const newAffiliate = await client.affiliates.create({
  user_id: 1,
  code: 'SPECIALOFFER',
  commission: 10,
});

Credits

Handle user credits.

// List all credits
const credits = await client.credits.list();

// Get a specific credit transaction
const credit = await client.credits.get(1);

// Add credits to a user
const newCredit = await client.credits.create({
  user_id: 1,
  amount: 50.0,
  description: 'Bonus credits',
});

Links