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

@solydflow/solydflow-js

v0.1.3

Published

Official SolydFlow JavaScript SDK

Readme

SolydFlow JavaScript SDK

Official JavaScript SDK for SolydFlow.

Build subscription and entitlement-based applications with dynamic pricing, Purchasing Power Parity (PPP), Smart Upgrade Credits, and hosted checkout flows.

The SDK enables your application to:

  • Fetch dynamic pricing
  • Apply Purchasing Power Parity (PPP)
  • Support Smart Upgrade Credits
  • Manage customer entitlements
  • Track subscription status
  • Launch secure hosted checkout sessions

For complete integration guides, API references, architecture details, webhook events, and advanced configuration, visit:

https://docs.solydflow.com/docs/intro


Installation

Install the SDK from npm:

npm install @solydflow/solydflow-js

or

yarn add @solydflow/solydflow-js

or

pnpm add @solydflow/solydflow-js

Quick Start

Initialize the SDK as early as possible after the user has been identified.

import { SolydFlow } from "@solydflow/solydflow-js";

await SolydFlow.configure(
  "sf_pk_live_YOUR_PUBLIC_KEY",
  "user_12345"
);

Parameters

| Parameter | Description | | ------------ | --------------------------------------------- | | publicKey | Your SolydFlow public API key | | customerId | Your application's unique customer identifier |


Check Customer Access

Determine whether a customer has access to a specific entitlement.

const hasAccess = await SolydFlow.hasEntitlement(
  "gold_access"
);

if (hasAccess) {
  console.log("Access granted");
}

Fetch Pricing & Packages

Retrieve offerings configured in your SolydFlow dashboard.

SolydFlow automatically applies:

  • Purchasing Power Parity (PPP)
  • Geo-based pricing
  • Smart Upgrade Credits
  • Customer-specific pricing rules
const offerings = await SolydFlow.getOfferings();

offerings.forEach((pkg) => {
  console.log(pkg.name);
  console.log(pkg.currency);
  console.log(pkg.display_price);
});

Start Checkout

Launch a hosted checkout session for a package.

await SolydFlow.purchasePackage(
  packageId,
  customerPhoneNumber
);

Example:

await SolydFlow.purchasePackage(
  "premium_monthly",
  "2348012345678"
);

The SDK automatically redirects the customer to a secure hosted payment page.


Understanding the Web Purchase Flow

Unlike mobile SDKs, web applications cannot wait for payment completion inside the browser.

Mobile SDK Flow

User
 ↓
In-App Purchase
 ↓
Payment Completed
 ↓
CustomerInfo Returned
 ↓
Entitlement Activated

Web SDK Flow

User
 ↓
Hosted Checkout
 ↓
Payment Completed
 ↓
SolydFlow Verification
 ↓
Webhook Sent
 ↓
Backend Updated
 ↓
Entitlement Activated

Because checkout occurs outside your application, purchase completion is communicated through webhooks.


Configure Webhooks

To receive subscription updates:

  1. Open the SolydFlow Console
  2. Navigate to your project settings
  3. Configure a webhook endpoint
  4. Deploy your backend listener

SolydFlow sends verified subscription events to your backend whenever a customer:

  • Starts a subscription
  • Renews a subscription
  • Upgrades a subscription
  • Cancels a subscription
  • Restores access

Your backend should:

  1. Verify the webhook signature
  2. Update customer records
  3. Sync entitlements
  4. Unlock application features

Recommended Integration Pattern

Frontend
    ↓
Fetch Offerings
    ↓
Customer Selects Plan
    ↓
Hosted Checkout
    ↓
Payment Completed
    ↓
SolydFlow Webhook
    ↓
Backend Updates User
    ↓
Customer Access Granted

Documentation

For production deployments, webhook setup, entitlement architecture, pricing configuration, SDK methods, and API references:

👉 https://docs.solydflow.com/docs/intro


Support

  • Documentation: https://docs.solydflow.com/docs/intro
  • Dashboard: https://console.solydflow.com
  • Website: https://solydflow.com