Solux is a state management library for SolidJS. Events and slices organize updates while Solid provides reactive reads and derivations. The package includes normalized entities, optional RxJS epics, and opt-in Redux DevTools integration.
bun add @carere/soluxRead the package guide for API usage and the
documentation website. Cloudflare Workers Builds
deploys main to production and other branches to isolated previews.
Run it locally with bun moon run website:dev.
This is a Bun workspace with two Moon projects:
| Project | Path | Purpose |
|---|---|---|
solux |
packages/solux |
Published @carere/solux library and consumer regressions |
website |
apps/website |
TanStack Solid Start docs, Zaidan components, English/French Paraglide, and public-package examples |
The root and website are private. @carere/solux keeps its public package name
and ESM exports. See CHANGELOG.md for released changes.
Use the pinned toolchain in .prototools: Bun 1.4.4, Node 24.22.1,
npm 11.19.1, and Moon 2.6.5.
Install proto and Cocogitto, then:
proto use
bun install --frozen-lockfile
bun lefthook install
bun moon run website:devMoon owns project commands. Run shared static tools directly from the root:
bun moon run solux:build website:build
bun tsc --noEmit
bun biome check . --error-on-warnings
bun --bun knip
bun sort-package-json --check package.json 'apps/*/package.json' 'packages/*/package.json'
bun moon run solux:test-unit solux:test-unit-browser solux:test-package
bun moon run website:test-browser website:deploy-checkInstall Chromium once before browser tests: bun playwright install chromium
from apps/website (CI also installs browser system dependencies).
See CONTRIBUTING.md for tasks and verification, the hosting guide for Cloudflare deployments and branch protection, and the release guide for the single-dispatch npm and GitHub release workflow.
Create fresh slices and nested state for every independent store or SSR request.
The store creator owns store.dispose() and all external subscriptions. Disposal
closes store observers and per-store DevTools resources; it does not cancel epics
or middleware side effects. Read the package's lifecycle and time-travel guide
for the full ownership contract.
Shared agent skills are maintained in carere/home. AGENTS.md routes agents to Solux-specific guidance; installing skills does not authorize external writes.
MIT © Kevin Abatan. See LICENSE.