feat(store): initial release (#279)

This commit is contained in:
rahim
2026-01-02 14:41:58 +11:00
committed by GitHub
parent c9a216dd2d
commit d74e4e6701
54 changed files with 6047 additions and 66 deletions
+30 -13
View File
@@ -9,21 +9,38 @@ Refer to **[`CONTRIBUTING.md`](./CONTRIBUTING.md)** for setup, development, and
## Package Layout
| Package Path | Purpose |
| ----------------------- | ---------------------------------------------------- |
| `packages/core` | Core runtimeagnostic logic and state. |
| `packages/html` | DOM/Browserspecific implementations. |
| `packages/react` | React package—adapts core state to React components. |
| `packages/react-native` | React Native integration layer. |
| `packages/utils` | Shared utilities. |
| `examples/*` | Demo apps for various runtimes. |
| `site/` | Astrobased docs and website. |
| Package Path | Purpose |
| ----------------------- | ------------------------------------------------------------------ |
| `packages/utils` | Shared utilities (`/dom` subpath for DOMspecific helpers). |
| `packages/core` | Core runtimeagnostic logic (`/dom` subpath for DOM bindings). |
| `packages/store` | State management (`/dom` and `/react` subpaths for platform APIs). |
| `packages/html` | Web player—DOM/Browserspecific implementation. |
| `packages/react` | React player—adapts core state to React components. |
| `packages/react-native` | React Native player integration layer. |
| `examples/*` | Demo apps for various runtimes. |
| `site/` | Astrobased docs and website. |
### Dependency Hierarchy
- Core → (no internal deps)
- HTML / React / ReactNative → depend only on Core
- Prevents circular dependencies and maximizes reusability.
```text
utils ← shared utilities
utils/dom ← DOM-specific helpers
store ← state management
store/dom ← DOM platform APIs
store/react ← React bindings
core ← runtime-agnostic logic
core/dom ← DOM bindings
html ← Web player (DOM/Browser)
react ← React player
react-native ← React Native player
```
```text
utils ← store ← core ← html / react / react-native
```
## Workspace
@@ -72,7 +89,7 @@ Examples:
Breaking changes use `!`:
```
```text
feat(core)!: remove deprecated playback API
```