Gluon universal package · 1.10.0

@gluonjs/store

Typed, application-scoped state management for Gluon.

Runtimeuniversal
Version1.10.0
LicenseMIT
Public entry points1

Install and start

Install the public package at the same version as the rest of the Gluon train:

shell
npm install @gluonjs/store
ts
import { createStoreManager, defineStore } from '@gluonjs/store';

const counter = defineStore('counter', () => ({ count: 0 }), {
  increment(state) { state.count += 1; },
});

Purpose

Typed, application-scoped state management without a DOM dependency.

Use cases

  • Shared state, getters, and actions for browser or server code.
  • Application-scoped store instances with typed inference.
  • Structured state ownership in larger Gluon apps.

Public entry points

Only these package exports are part of the supported public boundary.

Dependencies and peers

Installed dependencies

  • @gluonjs/reactivity · runtime dependency

Peer dependencies

  • @gluonjs/reactivity@1.10.0

API reference

Open an entry point above for generated symbol documentation and a reviewed example for every public symbol. Application code must import from this package entry point, never from repository source paths.

Scope and limits

  • Does not provide DOM access or component templating.
  • Applications needing reactive presentation still depend on Core and Reactivity.

Related guides

Verified integration notes

  • Peers on `@gluonjs/reactivity`.
  • Used by SSR and test utilities for application state scenarios.