A lightweight data store and utilities intended to simplify managing data sourced from Drupal.
✅ Retrieve an object from Drupal’s API, then serve all future requests for that object from local state.
✅ API data is represented in a simplified, deserialized structure.
✅ Easily add filters and include additional resources using Drupal JSON:API Params.
✅ Universal - can be used on both client side and server side.
✅ Access the store directly when necessary.
✅ Import individual utility functions like
fetchJsonApiEndpointif you only need some of the features of Drupal State.
✅ Easily source data from API endpoints that require authorization
Plus much more on the roadmap. Have a feature request? Submit it in the issue queue.