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 🙏

© 2025 – Pkg Stats / Ryan Hefner

omise-ts

v1.0.0

Published

A modern-day version of the [omise-node](https://github.com/omise/omise-node) package, allowing you to easily use the [Omise APIs](https://www.omise.co/docs) with Node.js.

Readme

omise-ts

A modern-day version of the omise-node package, allowing you to easily use the Omise APIs with Node.js.

What's wrong with the official version?

  • It's not maintained (or at least very, very rarely maintained)
  • It doesn't work with Next.js, explained in this issue

Why is this SDK better?

  • It's maintained, and it works with Next.js (see the example-app in this repo)
  • It's written in TypeScript
  • It offers more than just basic CRUD operations per resource; it also includes slightly more complex functions such as deleting all schedules for a customer

Limitations of this SDK

  • It doesn't support all Omise resources/actions, but it is very easy to add new ones
  • It relies on the types from official omise-node library

Usage

The example-app shows how to use this SDK with a Next.js application.

Install from npm

yarn add omise-ts

or

npm install omise-ts

Find your secret key on your Omise dashboard, and then you can do things like:

const Omise = new OmiseClient({
  apiSecretKey: YOUR_OMISE_SECRET_KEY,
})

// Create a charge for an existing customer
const charge = await Omise.charges.create({
  amount: 250 * 100, // 250 baht
  customer: 'cust_test_5soxme7qwp1fs0zljfx',
  currency: 'THB',
})

// Add a new card and set it as the default for a customer
const customerWithNewCard = await Omise.customers.updateDefaultCard(
  'cust_test_5soxme7qwp1fs0zljfx',
  'tokn_test_5soxo23uixfjgi0vazn'
)

// List all customers
await Omise.customers.list()

// Delete a schedule
await Omise.schedules.destroy('schd_test_5sqh1ofvhp6k9r0kxtp')