Skip to content

Commit

Permalink
add examples and gif (#2433)
Browse files Browse the repository at this point in the history
  • Loading branch information
brock-statsig authored Dec 23, 2024
1 parent 95ffe50 commit ba68ac0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions docs/client/concepts/parameter-stores.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ sidebar_label: Parameter Stores
slug: /client/concepts/parameter-stores
---

:::info
Parameter Stores are only available for Statsig Client SDKs.
:::

Parameter Stores provide a new way to organize and manage parameters in your web or mobile app via the Statsig console. They are now available for the Statsig JS, React, React Native, Android, iOS, and Dart SDKs.
Parameter Stores provide a new way to organize and manage parameters in your web or mobile app via the Statsig console. Now available for JS, React, React Native, Android, iOS, and Dart SDKs with Server SDKs coming soon - let us know in [Slack](https://statsig.com/slack) if you'd like support in a certain language soon.

## **What is a Parameter Store?**

Rather than thinking in terms of Statsig entities like Feature Gates, Experiments, Layers, or Dynamic Configs, Parameter Stores let you focus on **parameters**—the values in your app that need to be configurable remotely.

Parameter Stores decouple your code from the configuration, much like Statsig Layers decouple your code from specific experiments. This level of abstraction allows you to run experiments, adjust gating, or change values on the fly—**without hardcoding experiment names** in your app.
Parameter Stores **decouple your code from configuration, indefinitely**. This abstraction allows you to run experiments, adjust gating, or change values on the fly— **without hardcoding any experiment/gate names**. Instead you define *parameters* that can be remapped remotely to any value or any Statsig entity.

## **An Example: Parameterizing the Statsig Website**

While usually release cycles are more painful on platforms like mobile, take the example of the Statsig Website - perhaps our marketing team asks for frequent updates, so we'd prefer to parameterize the text, images, buttons, colors and more:

<img src="/img/param_stores_mapping.png"/>


When the time comes to run an experiment, we can point these variables directly at experiments - starting an A/B test without writing a line of code:

<img src="/img/param_stores.gif" />

Each parameter can be remapped between Statsig entities (as long as the parameter type remains the same). These parameters will receive dynamic values depending on the `StatsigUser` the SDK is initialized with, and they can be updated anytime without requiring a mobile code change or waiting for your mobile release cycle.

## **How to Use Parameter Stores**

Expand Down
Binary file added static/img/param_stores.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/param_stores_mapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ba68ac0

Please sign in to comment.