@nozle-js/react 0.4.0 → 0.5.1

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.
package/README.md CHANGED
@@ -25,11 +25,9 @@ function App() {
25
25
  return (
26
26
  <BillingProvider
27
27
  apiKey="pk_live_..."
28
- customerId="cust_123"
29
- baseUrl="https://your-api.example.com"
30
- wsUrl="wss://your-ws.example.com/connection/websocket"
31
- stripeKey="pk_test_..."
32
- features={["tokens_used", "code_completions"]}
28
+ baseUrl="https://api.nozle.app" // Default: https://api.nozle.app
29
+ workspaceId="ws_123" // Optional: workspace scoping
30
+ centrifugoUrl="wss://ws.nozle.app/connection/websocket" // Optional: real-time updates
33
31
  >
34
32
  <YourApp />
35
33
  </BillingProvider>
@@ -37,6 +35,8 @@ function App() {
37
35
  }
38
36
  ```
39
37
 
38
+ > **Note:** LLM wrappers (`wrapOpenAI`, `wrapAnthropic`) and server-side methods (`checkAndDeduct`, `customers.upsert`) are only available in `@nozle-js/node`. The React SDK is for client-side billing UI only.
39
+
40
40
  ## Hooks
41
41
 
42
42
  ### `useCan(feature)`