[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › Store

Observable state container with change notifications.

## Functions

| Function                                                                  | Description                                                                                                                                                                                |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [createStore](https://evolu.dev/docs/api-reference/common/Store/functions/createStore) | Creates a store with the given initial state. The store encapsulates its state, which can be read with `get` and updated with `set` or `update`. All changes are broadcast to subscribers. |

## Interfaces

| Interface                                                                      | Description                                                                                                                                                              |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ReadonlyStore](https://evolu.dev/docs/api-reference/common/Store/interfaces/ReadonlyStore) | A read-only view of a [Store](https://evolu.dev/docs/api-reference/common/Store/interfaces/Store) that provides state access and change notifications without allowing modifications. |
| [Store](https://evolu.dev/docs/api-reference/common/Store/interfaces/Store)                 | A store for managing state with change notifications. Like a [Ref](https://evolu.dev/docs/api-reference/common/Ref/interfaces/Ref) with subscriptions.                                |

## Type Aliases

| Type Alias                                                                   | Description                                                                                                                                        |
| ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Listener](https://evolu.dev/docs/api-reference/common/Store/type-aliases/Listener)       | Callback used by [ReadonlyStore.subscribe](https://evolu.dev/docs/api-reference/common/Store/interfaces/ReadonlyStore#subscribe) to observe changes.            |
| [Unsubscribe](https://evolu.dev/docs/api-reference/common/Store/type-aliases/Unsubscribe) | Function returned by [ReadonlyStore.subscribe](https://evolu.dev/docs/api-reference/common/Store/interfaces/ReadonlyStore#subscribe) to stop observing changes. |