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

qrio-payments

v0.8.0

Published

Qrio Payments micro-frontend and embeddable checkout component with multi-gateway support (Razorpay, PayU).

Downloads

35

Readme

qrio-payments

Embeddable payments checkout component for Qrio with multi-gateway support (Razorpay, PayU). Built with React + Tailwind (shadcn-style). Ships as a library and includes a small CRA demo app.

Quick Start (demo app)

  1. Install deps
cd qrio-payments
npm install
  1. Start API locally (see API section) then run demo:
npm start

Library build

npm run build:lib

Outputs to dist/ with ESM, CJS, and types.

Usage in qrio-ui

  1. Add the payments package to the Next.js app (monorepo import or local path).
  2. Ensure Tailwind includes payment component files in content paths:
// qrio-ui/tailwind.config.ts
content: [
	'./app/**/*.{ts,tsx}',
	'./components/**/*.{ts,tsx}',
	'../qrio-payments/src/**/*.{ts,tsx}',
]
  1. Use the component:
import { PaymentCheckout, type PaymentsConfig } from 'qrio-payments'

const config: PaymentsConfig = {
	backend: { baseUrl: process.env.NEXT_PUBLIC_API_URL! },
	gateways: {
		razorpay: { id: 'razorpay', displayName: 'Razorpay', enabled: true },
		payu: { id: 'payu', displayName: 'PayU', enabled: false },
	},
}

<PaymentCheckout
	config={config}
	params={{ amount: 10000, currency: 'INR', description: 'Order #123' }}
	onResult={(r) => console.log(r)}
/>

API Requirements (qrio-api)

Environment variables:

  • RAZORPAY_KEY_ID, RAZORPAY_KEY_SECRET
  • PAYU_KEY, PAYU_SALT, PAYU_ENV (test|prod)

Routes exposed:

  • POST /payments/razorpay/order → { orderId, amount, currency, keyId }
  • POST /payments/payu/initiate → { action, fields }

Notes

  • Razorpay: opens inline modal; verification should be performed server-side via webhook or signature verify endpoint.
  • PayU: redirects via auto-submitted form; result handled at surl/furl endpoints + server verification.

Deploying the package (free)

For free/private distribution without JFrog:

  • GitHub Packages (free for public) or GitHub registry with scoped package
  • Private Git submodule or monorepo workspace import
  • Verdaccio (self-hosted npm registry) on a small VM

We can finalize the preferred option after testing integration in qrio-ui.