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

@geenius/payments

v0.16.1

Published

Geenius Payments — Multi-provider payment package for Convex apps (React + SolidJS)

Readme

@geenius/payments

Commercial multi-provider billing primitives for checkout, subscriptions, invoices, and Convex-backed payment workflows.

Installation

pnpm add @geenius/payments

@geenius/payments is a commercial-licensed package for Lancio add-ons and the default Studio billing stack. Install from npm, then configure your commercial license and provider credentials in your app.

Install the framework peer dependencies you plan to use:

  • React variants require react and react-dom
  • SolidJS variants require solid-js

Import Surface

import {
  BasePaymentProvider,
  configurePayments,
  getPaymentProvider,
  getPlans,
  setPaymentProvider,
} from '@geenius/payments'

import {
  createPaymentProvider,
  resolveProviderFromEnv,
} from '@geenius/payments/factory'

import type { PaymentConfig, Subscription } from '@geenius/payments/shared'

import {
  CheckoutButton,
  PaymentProvider,
  PricingTable,
  usePayments,
  useSubscription,
} from '@geenius/payments/react'

import {
  CheckoutButton as CssCheckoutButton,
  PaymentProvider as CssPaymentProvider,
  PricingTable as CssPricingTable,
} from '@geenius/payments/react-css'

import {
  CheckoutButton as SolidCheckoutButton,
  PaymentProvider as SolidPaymentProvider,
  PricingTable as SolidPricingTable,
  createPayments,
  createSubscription,
} from '@geenius/payments/solidjs'

import {
  CheckoutButton as SolidCssCheckoutButton,
  PaymentProvider as SolidCssPaymentProvider,
  PricingTable as SolidCssPricingTable,
} from '@geenius/payments/solidjs-css'

import { componentDefinition } from '@geenius/payments/convex'

The package publishes these stable subpaths:

  • @geenius/payments
  • @geenius/payments/shared
  • @geenius/payments/factory
  • @geenius/payments/react
  • @geenius/payments/react-css
  • @geenius/payments/react-css/styles.css
  • @geenius/payments/solidjs
  • @geenius/payments/solidjs-css
  • @geenius/payments/solidjs-css/styles.css
  • @geenius/payments/convex

Usage

import { type PlanConfig } from '@geenius/payments'
import { createPaymentProvider } from '@geenius/payments/factory'
import { PaymentProvider, PricingTable } from '@geenius/payments/react'

const plans: PlanConfig[] = [
  {
    id: 'pro',
    name: 'Pro',
    description: 'Recurring access for your core product.',
    features: ['Unlimited seats', 'Priority support'],
    prices: [
      {
        id: 'price_pro_month',
        providerPriceId: 'price_pro_month',
        amount: 7900,
        currency: 'USD',
        interval: 'month',
      },
    ],
  },
]

createPaymentProvider({
  provider: 'stripe',
  apiKey: process.env.STRIPE_SECRET_KEY ?? '',
  currency: 'USD',
  plans,
})

export function BillingRoute() {
  return (
    <PaymentProvider userId="user_123">
      <PricingTable
        successUrl="https://app.geenius.dev/billing"
        cancelUrl="https://app.geenius.dev/pricing"
      />
    </PaymentProvider>
  )
}

Storybook

This package includes React and SolidJS Storybook apps for local review:

pnpm --filter ./apps/storybook-react dev
pnpm --filter ./apps/storybook-solidjs dev

Both storybooks render the Tailwind and vanilla CSS checkout surfaces side by side through the shared @geenius/storybook shell so parity stays visible during package development.

License

Commercial license. See LICENSE.