1.0.0 • Published 6 months ago

statsig-node-cloudflare-kv v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Statsig Node Server SDK - Edge Config Adapter

npm version

A first party Cloudflare integration with the Statsig server-side Node.js SDK.

Quick Setup

  1. Install the Statsig Node SDK
npm install statsig-node@5.3.0
  1. Install this package
npm install statsig-node-cloudflare-kv
  1. Setup the Statsig Cloudflare Integration
  2. Import the package
import { CloudflareKVDataAdapter } from 'statsig-node-cloudflare-kv'
  1. Create an instance of the CloudflareKVDataAdapter
const dataAdapter = new CloudflareKVDataAdapter(env.YOUR_KV_BINDING, 'statsig-YOUR_COMPANY_ID');
  1. When initializing the statsig sdk, add the adapter to options
await statsig.initialize(
    'server-secret-key',
    { dataAdapter: dataAdapter },
);
1.0.0

6 months ago

0.1.0

6 months ago

0.1.1

6 months ago

0.0.4

1 year ago

0.0.2-beta.1

1 year ago

0.0.2-beta.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.1-beta.2

1 year ago

0.0.1-beta.1

1 year ago

0.0.1-beta.0

1 year ago