@vrs-pay/js 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -77,11 +77,18 @@ if (await vrs.hasFeature("csv_export")) {
77
77
 
78
78
  ---
79
79
 
80
- ## The VRS Pay Ecosystem
80
+ ## Which package should I use?
81
81
 
82
- - **`@vrs-pay/js`** *(This package)*: Universal browser SDK for any frontend.
83
- - **`@vrs-pay/react`**: Turnkey React 18 & 19 components (`<PricingTable />`, `<PricingComparisonTable />`, `<CustomerPortal />`, `<Gate />`) and hooks.
84
- - **`@vrs-pay/sdk`**: Server SDK for Node.js, Bun, Cloudflare Workers, and backend API routes.
82
+ VRS Pay provides 3 public packages for different parts of your stack:
83
+
84
+ | Package | Environment | Compatible Frameworks | Purpose & Auth |
85
+ | :--- | :--- | :--- | :--- |
86
+ | **`@vrs-pay/js`** *(This package)* | **Browser / Client** | **ANY frontend framework** (Vanilla JS, Vue, Svelte, Angular, Solid, plain HTML) | Lightweight browser client for pricing, checkout redirects, and portal sessions. Uses your **Publishable Key** (`pk_...`). |
87
+ | **`@vrs-pay/react`** | **Browser / Client** | **swift-rust**, React 18 & 19, Next.js, Remix, Vite, Astro | Drop-in UI components (`<PricingTable />`, `<PricingComparisonTable />`, `<CustomerPortal />`, `<Gate />`) and hooks. Uses your **Publishable Key** (`pk_...`). |
88
+ | **`@vrs-pay/sdk`** | **Server / Backend** | **swift-rust (server)**, Next.js API/actions, Express, Hono, Bun, Node, Cloudflare Workers | Server SDK to create checkout sessions, issue customer tokens, and verify webhooks. Uses your **Secret Key** (`sk_...`). |
89
+
90
+ > **What about `@vrs-pay/core`?**
91
+ > `@vrs-pay/core` is an internal private engine used by our payment API service. It is marked `"private": true` and is **never published to npm**. For your applications, only the 3 packages above are used.
85
92
 
86
93
  ---
87
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrs-pay/js",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "VRS Pay in the browser: pricing, checkout, customer portal and access checks with a publishable key.",
5
5
  "type": "module",
6
6
  "license": "MIT",