npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shared-reactivity

v0.0.2

Published

Standalone cross-framework reactivity with engine-neutral core, Alien, Solid 1 and Solid 2 engines

Readme

Shared Reactivity 0.0.2

Published-release candidate from 0.0.2-dev.5. The user reports all prescribed acceptance tests (including the corrected deep cross-framework Chromium suite, BMR integration, Octane automatic-hook scenarios, release regression and tree-shaking) passed on their machine. The maintainer-side Node/TypeScript and package-artifact verification is tracked separately in release notes. Packaging does not publish to npm.

0.0.2 adds compiler-recognizable Octane integration via useSharedValue(view) or view.useShared(). BMR integration and cross-framework deep-store tests exercise the existing canonical signal/store bridge. The published 0.0.1 remains immutable; BMR 0.1.0 is unchanged.

Development checkpoints (historical)

Development checkpoint: 0.0.2-dev.5 (historical)

Browser test-fixture correction: The compiled Svelte test button now writes svelte City instead of Svelte City, matching the expected framework-ID naming scheme. User Windows Chromium run on dev.4 was 8/9, with only this case mismatch. The unchanged cross-framework DOM and canonical state assertions now match the fixture. Added an offline regression; full Node 393/393 passed. At the time of that checkpoint, corrected Chromium verification was pending; the user subsequently reported all requested release tests passing. No production src/ changes. See docs/SHARED_REACTIVITY_0_0_2_DEV5_DEEP_SVELTE_BROWSER_FIX.md.

Development checkpoint: 0.0.2-dev.4 (historical)

Deep cross-framework integration test milestone. Published [email protected] is unchanged. Production src/ is unchanged from 0.0.2-dev.3; the additions are Node tests, browser fixtures, scripts and engineering documentation.

New evidence: 19/19 dedicated Node deep-integration tests pass; 392/392 full Node tests pass. The browser tests for five real framework renderers are authored but NOT executed in this environment (required framework/compiler and Playwright packages are unavailable). The BMR Node contextual-import tests use the real BMR 0.1.0 package, with pass-through compiler fixtures; these are distinct from native framework renderer verification. See docs/SHARED_REACTIVITY_0_0_2_DEV4_DEEP_CROSS_FRAMEWORK_TESTS.md.

bun install
bun run test:integration:deep:node
bun run test:integration:deep:browser
bun run test:integration:deep:bmr
bun run test:integration:deep:all

Solid 2 caveat: standalone Solid 2 adapter signals may require native flush() to observe canonical writes immediately in synchronous Node probes. Canonical store reads are immediate; the selected Solid 2 engine's configured scheduling is a separate mechanism.

Original API and architecture notes

Canonical signal API (0.0.2-dev.0)

The only scalar constructor exposed by the default entrypoint and engine instances is createSignal(initial, { equals? }). It returns a stable canonical object supporting .get(), .set(valueOrUpdater), .subscribe(listener), and .subscriberCount; it is not Solid's [getter, setter] tuple. Bindings can adapt the same canonical signal to other frameworks without duplicating ownership.

import {createSignal, isSignal, SIGNAL_KIND} from 'shared-reactivity';
const count=createSignal(0);
const unsubscribe=count.subscribe((next,previous)=>console.log(previous, next));
count.set(value=>value+1);
console.log(count.get(), isSignal(count), count.kind===SIGNAL_KIND);
unsubscribe();

There are no createCell, isCell, Cell, or CELL_KIND compatibility aliases (the published 0.0.1 API already uses signals). On shared-reactivity/core, use createReactivity({engine:'solid1', solid}) (or a selected engine) and call reactive.createSignal(initial); /core intentionally does not create a default singleton. The runtime brand is shared-reactivity.signal/v1.

Standalone usage (no BMR, no framework)

import {createSignal,createStore} from 'shared-reactivity';
const count=createSignal(0);
const state=createStore({profile:{name:'Ada'},tasks:['A']});
const stop=count.subscribe((next,old)=>console.log(old,'->',next));
count.set(n=>n+1);
state.set(['profile','name'],'Grace');
state.set(['tasks'],items=>[...items,'B']);
stop();

createStore maintains owned, deeply frozen, structurally shared snapshots. Use store.set(path, value), store.delete(path), store.replace(next); direct mutation of snapshots is prohibited. The path array preserves key boundaries. A subscribe(listener,{path,deep}) listener only fires for relevant paths or ancestor replacement.

Simplified optional BMR runtime integration (dev.2)

Rather than manually creating every adapter host module, configure a single bridge:

import {createBMRIntegration} from 'shared-reactivity/bmr';
const bridge=createBMRIntegration(runtime, {
  // BMR host namespaces can be explicitly opted in by module ID.
  modules:['@app/state'],
  frameworks:{solid1:{solid:solid1Runtime},solid2:{solid:solid2Runtime},vue:{vue},svelte:true,octane:{octane}}
});
// Existing BMR runtime.defineModule('@app/state',{count,user}) is unchanged.
const vueModule=await runtime.import('@app/state?binding=vue');
bridge.dispose(); // canonical state modules and BMR runtime survive

For incremental setup: createBMRIntegration(runtime,{install:false}) then bridge.register('vue',{vue}).include('@app/state').install(). Custom frameworks use bridge.registerAdapter(name, adapter). Low-level installBindings remains available, as do direct framework factories outside BMR. See docs/SHARED_REACTIVITY_BMR_REGISTRATION.md for ownership, reconfiguration, error handling and security assumptions.

Selectable canonical reactivity engines (0.0.1-dev.2)

Alien Signals 3.x is the default engine. It is now a required package dependency. Solid 1 and Solid 2 are optional engines, injected using the exact framework/reactive namespace (neither is imported by the package entrypoint). These engines share the same createSignal, proxy-store, draft transaction and subscription contracts. They are distinct runtime instances: do not migrate live signals/stores between engines.

import * as solid1 from 'solid-js';
import {createReactivity, createMutable, createStore} from 'shared-reactivity';

// Defaults to the Alien Signals engine:
const session = createReactivity();
const {createSignal,createEffect,batch} = session;
const count = createSignal(0);
const stop = createEffect(() => console.log(count.get()));
batch(() => { count.set(1); count.set(2); });
stop();

// Alternative: Solid 1 reactive engine (injected, never Solid 2):
const solidRuntime = createReactivity({engine:'solid1',solid:solid1});
const solidCell = solidRuntime.createSignal(0);

Solid 2 as a selectable core engine (0.0.1-dev.15)

Solid 2 is now a third opt-in backend, distinct from the existing shared-reactivity/solid2 framework adapter. You provide the native @solidjs/signals namespace. It does not replace our framework-independent canonical stores with Solid 2 native stores.

import * as signals from '@solidjs/signals';
import {createReactivity} from 'shared-reactivity';

// Synchronous behavior is the default for the Solid 2 backend.
const r = createReactivity({engine:'solid2',solid2:signals});
const count = r.createSignal(1);
const doubled = r.createComputed(() => count.get() * 2);
const dispose = r.createEffect(() => console.log(doubled.get()));
count.set(2);
console.log(count.get(), doubled.get()); // 2, 4 (no await)
r.batch(() => {count.set(3);count.set(4);}); // flush once at transaction end
dispose();doubled.dispose();

// Opt in to Solid 2's native deferred graph scheduling:
const d = createReactivity({engine:'solid2',solid2:signals,scheduling:'deferred'});
const delayed = d.createSignal(0);
delayed.set(5);
console.log(delayed.get()); // 5: canonical signal state is always immediate
d.flush(); // drain queued graph computations/effects explicitly

Scheduling and lifecycle contracts:

  • scheduling:'sync' (default for Solid 2) calls native flush() at public signal-write boundaries and once after an explicit batch(); createEffect() initializes synchronously. It does not flush each internal write inside batch().
  • scheduling:'deferred' stages graph propagation until native microtask scheduling or explicit r.flush(). Canonical signals, direct subscriptions, and canonical stores remain synchronously readable; memo/effect visibility is deferred. Do not assume memo.get() or DOM effects have settled until the graph flushes.
  • r.flush() is exposed for all backends (no-op when not supported); Solid 2 uses its actual flush().
  • Solid 2's native createTrackedEffect is used to bridge our existing single-callback tracked createEffect(fn) API. Solid 2 marks this compatibility primitive as deprecated and documents restrictions on writes/flushes inside running effects/actions. Avoid reentrant imperative mutations from a Solid 2 effect callback; use a dedicated scheduled/action flow instead. This is not identical to Solid 1's scheduler.
  • @solidjs/signals is an optional peer dependency and currently requires Node.js >=22.12; Shared Reactivity remains usable with its other backends on its existing Node >=20 baseline. No Solid 2 dependency is loaded unless explicitly provided; Alien Signals remains the default.
  • Native Solid 2 draft stores stay benchmark/reference implementations only. Shared Reactivity's canonical state, snapshots and adapters keep their existing ownership semantics.

Use bun run test:engines:solid2, bun run bench:solid2:scheduling, and bun run bench:all for Node conformance and timing. The sync and deferred modes are not equivalent propagation workloads, so interpret benchmark ratios accordingly.

Note for Node benchmarks: Node's solid-js conditional export commonly selects an SSR implementation. Use solid-js/dist/solid.js for a representative reactive engine benchmark, while browser bundlers should resolve the real browser build. Importing the client build explicitly can create two Solid instances when mixing it with an application that imports solid-js; always inject the same Solid namespace as the consuming application.

Mutable store — native-looking assignments

const state = createMutable({profile:{name:'Ada'},todos:[]});
state.profile.name = 'Grace';
state.todos.push('Write tests');

Reads of specific paths participate in the selected engine's tracking. Array mutators commit as an atomic draft transaction. The proxy is not a native Solid store: it is the shared-reactivity store implementation supported by both backends.

Draft store — Solid-like createStore surface

const [state,setState] = createStore({
  profile:{name:'Ada',age:30},
  tasks:[]
}, {mode:'draft'});

setState(draft => {
  draft.profile.age += 1;
  draft.tasks.push('Task');
});
setState('profile', draft => { draft.name = 'Grace'; });
setState('profile','name','Lin');

The first tuple element is a read-only reactive proxy. setState edits a detached draft and commits all changes as one transaction; if the recipe throws or validation fails, nothing commits. Unchanged branches retain structural identity. Recipe return values are ignored; root replacement can be performed using the canonical path-store API.

createDraftStore(initial) is an equivalent explicit entrypoint. Backward compatibility: createStore(initial) still returns the pre-existing path-based store object (get(path), set(path,value), update(recipe), delete, subscribe, snapshot). Use createPathStore as its explicit alias. Framework adapters and the optional BMR bridge accept both proxy styles by unwrapping them to their one canonical store. Expose the store using unwrapStore(proxy) or the draft tuple's .canonical property.

Current limitations: drafts clone their plain-object/array tree per transaction (with structural sharing on commit), which is not optimized for large frequently edited collections; proxies support plain data only, not Maps/Sets/classes/cyclic object references. Native Solid 1 createMutable/createStore are not used under the hood in either backend. Batching applies to engine tracking, but signal .subscribe() notifications are coalesced in an explicit batch(); separate path-store setters can still deliver multiple low-level notifications, whereas one draft transaction emits one store change.

Engine comparison and verification

npm install
npm run test:engines:contracts  # no real engines needed when invoked directly
npm run test:engines:real       # actual Alien Signals and Solid 1 reactive client build
npm run bench:engines          # real engines: warmups, median/p95, throughput and per-round samples
npm run bench:bridge           # real Svelte adapter + subscribers
npm run bench:arrays           # array-push size scaling, 128–1536 items
npm run bench:store-isolation  # no-engine canonical store + plain JS controls
npm run bench:engine-isolation # native Alien/Solid signals vs full store
npm run bench:all              # run EVERY benchmark above, automatically discovered
npm run test:bench:harness     # deterministic benchmark harness + bench:all regressions
npm run test:engines:lifecycle # real-engine disposal, computed dependency and batching regressions
npm run test:release           # Node + typings + Chromium integration; no publication
npm run test:browser:engines   # real browser: you run Playwright

The benchmark compares our same store algorithms driven by either engine; it does not purport to compare against Solid 1's built-in native store package. Record environment, median latency and allocation separately before choosing a performance winner. User-reported real-engine measurements are recorded as the external dev.8 baseline. The revised dev.9 harness has not yet been executed against installed real engines here. See docs/SHARED_REACTIVITY_BENCHMARKING.md for methodology, CLI options, machine-readable JSON, and comparability guidance.

Standalone framework integration

No adapter entrypoint is imported by the root package. Each factory takes an explicitly injected framework instance; a BMR runtime is never required.

import {createSignal} from 'shared-reactivity';
import {createVueAdapter} from 'shared-reactivity/vue';
import * as vue from 'vue';
const source=createSignal(1);
const adapter=createVueAdapter({vue});
const ref=adapter.adapt(source);
console.log(ref.value); // 1
ref.value=2;             // writes to canonical source
source.set(3);           // notifies Vue consumers
adapter.dispose();       // releases adapter subscriptions, not canonical state

| Entry point | Factory | Signal view | Store view | |---|---|---|---| | ./raw | createRawAdapter | canonical signal | canonical store | | ./solid1 | createSolid1Adapter({solid}) | callable getter/setter, .asTuple() | .get(path) tracked, .proxy, .set, .delete, .replace | | ./solid2 | createSolid2Adapter({solid}) | callable getter/setter | same shape as Solid 1, separate framework instance | | ./vue | createVueAdapter({vue}) | Vue customRef (.value) | tracked .get(path), .proxy, mutation methods | | ./svelte | createSvelteAdapter() | Svelte store-compatible (subscribe, set, update, get) | subscribe whole store or .select(path) | | ./octane | createOctaneAdapter({octane}) | .get, .set, .subscribe, .use() | .select(path).use() via useSyncExternalStore |

Octane .use() is a component hook; call it during rendering, never while creating a module facade. Octane's documented useSyncExternalStore API is the basis of the bridge. Svelte runes remain compiler syntax and are not created dynamically by this library.

Solid and Vue factory adapters register automatic disposal if instantiated under a compatible framework owner/scope. When created outside such an owner (including ESM facade evaluation), explicitly call .dispose() on app teardown. A single adapter view holds at most one canonical subscription in these versions; it is shared, not created on every read.

Optional BMR contextual imports

import {installBindings} from 'shared-reactivity/bmr';

// The application already defined a canonical @app/state BMR module with
// meta: { sharedReactivity:true }, plus runtime-local adapter modules.
const registration=installBindings(runtime,{
  id:'app-bindings',
  bindings:{
    raw:null,
    solid1:{module:'@app/solid1-adapter'},
    solid2:{module:'@app/solid2-adapter'},
    vue:{module:'@app/vue-adapter'},
    svelte:{module:'@app/svelte-adapter'},
    octane:{module:'@app/octane-adapter'}
  }
});
// e.g. each adapter namespace provides {adapt: value => adapter.adapt(value)}
// Importer compiler type or ?binding=vue chooses a view.
// On teardown: registration.dispose(); adapter.dispose(); await runtime.dispose();

BMR handles only ESM facades and import-context selection. Canonical subscription notification is never routed through BMR. The module name, matcher, binding key, defaults, adapters and custom facade generator can all be replaced by the consumer. Named, alias, default and re-export discovery follows BMR's ctx.exportInfo contract. Explicit low-level exports:[...] manifests remain available. A facade converts branded signals/stores; ordinary functions or values pass through.

Verification commands

npm run test:core
npm run test:stores
npm run test:adapters
npm run test:bmr
npm run test:node
npm run test:types
npm run test:browser:syntax

# Install dev dependencies and Chromium before running browser suites:
npm install
npx playwright install chromium
npm run test:browser:offline
# Or one framework at a time:
npm run test:browser:solid1
npm run test:browser:solid2
npm run test:browser:vue
npm run test:browser:svelte
npm run test:browser:octane
npm run test:browser:bmr
npm run test:browser:cross-framework

Current Octane tooling documents Node.js 22.22.2+ for its build flow (core itself uses Node.js >=20). The offline browser suites need installed real framework dependencies. A pinned real BMR 0.1.0 source snapshot is already included in tests/fixtures/browser-module-runtime-0.1.0/ in this development source ZIP; no separately extracted BMR checkout or BMR installation is required to run tests. This test-only fixture is not shipped in the npm package. The build script compiles a real Svelte component using svelte/compiler, bundles the real framework modules with esbuild and serves fixtures through a Node HTTP server. No Playwright execution has been claimed. If npm dependencies are unavailable, browser verification is blocked. Real-browser rendering success is a required release gate.

Current restrictions

  • Signals are a minimal observable source, not a derived-state DAG or transaction engine.
  • Stores support plain objects/arrays, structural updates, immutable snapshots, and path subscriptions. Arbitrary class instances, maps, cycles, symbols and automatic mutation of raw nested objects are excluded.
  • Store projections offer path APIs and a best-effort proxy; do not assume full framework-native store parity until browser verification.
  • BMR's current registered-module linker does not execute circular ESM imports; this library deliberately has an acyclic import graph.
  • BMR cannot hot-replace already evaluated ESM namespaces; runtime modules and reactive values have distinct lifetimes.
  • This is the public npm packaging candidate; actual-framework browser verification of the final package should be completed before publication.

See docs/SHARED_REACTIVITY_HANDOFF.md, docs/SHARED_REACTIVITY_ARCHITECTURE.md, docs/SHARED_REACTIVITY_PROGRESS.md and docs/SHARED_REACTIVITY_TEST_MATRIX.md.

Simplified framework discovery (0.0.1-dev.3)

When BMR already owns framework plugins, no need to import their namespaces manually:

import {createRuntime} from 'browser-module-runtime';
import {solid,vue} from 'browser-module-frameworks';
import {createBMRIntegration} from 'shared-reactivity/bmr';
import {createSignal} from 'shared-reactivity';

const runtime=createRuntime({plugins:[solid(),vue()]});
const count=createSignal(0);
runtime.defineModule('@app/state',{count});

const bridge=await createBMRIntegration(runtime, {
  frameworks:['solid2','vue'],
  modules:['@app/state']
});

Use frameworks:'auto' to register all known configured framework compiler families, or retain frameworks:{vue:{vue}} for synchronous explicit namespace injection. BMR runtime getSupportedTypes() and import() determine framework module identity. Auto setup requires await; it fails clearly if a compiler or its framework namespace is unavailable. Svelte uses the store-compatible contract and does not import a framework namespace. Solid 1 and 2 require separate BMR runtimes. See examples/bmr/auto-frameworks.mjs and docs/SHARED_REACTIVITY_BMR_REGISTRATION.md.

Bun installation (development source 0.0.1-dev.4)

solid-js-v2 is a dev-only alias pinned to the published Solid 2 prerelease 2.0.0-rc.13, while solid-js remains Solid 1.x. The previous ^2.0.0 alias could not install before Solid 2 stable exists.

bun install
bun run test:node
bun run test:engines:real
bun run test:types
bun run test:browser:all

Real-engine and Playwright suites must still be executed on a machine with the dependencies and Chromium installed. This change does not alter runtime framework adapters or the optional BMR bridge.

Browser fixture dependency fix (0.0.1-dev.5)

All BMR browser test apps import browser-module-runtime as usual, while the test-only esbuild resolver maps that import to tests/fixtures/browser-module-runtime-0.1.0/src/index.js. The same actual-runtime fixture is used by Node BMR integration tests. This is not a stub. You can extract only the shared-reactivity/ source ZIP and run:

bun install
bunx playwright install chromium
bun run test:bmr:fixture
bun run test:browser:all

No global install, published BMR package, or adjacent BMR checkout is necessary. The production browser-module-runtime peer remains optional and is not imported by the standalone core. Real browser execution must be verified on your machine.

Octane 0.13.3 — compiler-managed shared state (0.0.2-dev.2 candidate)

In Octane compiled components, use the named hook useSharedValue(view) or the hook-named method view.useShared(). These names match Octane 0.13.3's compiler method/custom-hook slot conventions. Bare .use() has no automatic slot injection and requires an explicit stable caller-owned slot when used as a manual escape hatch.

import {count} from '@app/state';
import {useSharedValue} from 'shared-reactivity/octane';
// Inside the Octane-compiled component body:
const value = useSharedValue(count); // or count.useShared()

The old .use(slot) method remains available. This API candidate passed Node adapter/type tests; actual Octane compiler execution and real Chromium are still pending. See docs/SHARED_REACTIVITY_OCTANE_0_13_3_HOOK_FIX.md before replacing production workarounds.

Octane integration — raw JavaScript hook slots (0.0.1-dev.6)

Octane is a compiled hook framework. If a component or custom hook is authored as plain, uncompiled JavaScript (as in some test fixtures), pass a stable call-site symbol to view.use(slot) so the wrapper can forward it into useSyncExternalStore:

const count = octaneAdapter.adapt(signal);
function Counter() {
  const value = count.use(Symbol.for('my-app:Counter:count'));
  return octane.createElement('span', null, String(value));
}

Compiler-managed .tsrx/.tsx hooks must also preserve Octane's compiler slot ABI. Never assume ordinary uncompiled hook wrappers have the same semantics as compiled ones. The Octane browser tests are currently awaiting rerun.

Dev.7 — canonical signal introspection across frameworks

Each signal adapter (Solid 1, Solid 2, Vue 3, Svelte 5, Octane) exposes view.canonical === originalCell. The Vue customRef has a read-only, nonenumerable canonical property, without affecting value tracking. This is metadata about shared identity, not a second state or an additional subscription. The raw adapter continues to return the canonical signal unchanged.

Run the focused confirmation using bun run test:vue:canonical and bun run test:browser:cross-framework, followed by bun run test:browser:all. The code fix and targeted Node tests passed locally, but real-browser execution of dev.7 remains pending.

Dev.8 — BMR auto-registration and local dependencies

Automatic BMR integration (frameworks:'auto' / frameworks:['vue']) now requires that each detected framework's namespace is registered or explicitly mapped within that BMR runtime. Merely having vue or solid-js installed in local node_modules is no longer sufficient, because BMR's normal fallback can otherwise import an unrelated framework instance. Configure a runtime.defineModule('vue',vueNamespace), defineUrl, package pin or resolver mapping before bridge creation; alternatively use manual {frameworks:{vue:{vue:vueNamespace}}} injection.

The change is covered by bun run test:bmr:auto (including negative cases independent of host node_modules). Run bun run test:node and bun run test:browser:all for full verification.

Isolating array store cost from the underlying engine

Before choosing an array optimization, compare real engine-only update paths against the canonical store without an engine. The development source archive includes reproducible controls:

bun run test:bench:isolation
bun run bench:store-isolation   # canonical store; no engine dependencies needed
bun run bench:engine-isolation  # actual Alien Signals and Solid 1 controls

See docs/SHARED_REACTIVITY_BENCHMARKING.md for caveats about snapshot semantics, per-write vs single-transaction notifications, and how to interpret comparisons. Benchmarking is not a CI speed gate.

Development performance note (0.0.1-dev.13)

createMutable() array .push(...) uses an internal immutable-append fast path that preserves frozen old snapshots and exact index/length notifications. Generic store.update(draft => draft.items.push(value)) still performs a full atomic draft transaction per call; for many appends prefer one store.update(draft => { ... }) transaction. To reproduce local real-engine A/B measurements, run bun run bench:all; run bun run test:array:append for the optimized-path regressions.

Research: Solid 2 native signals/stores (dev.14)

Solid 2 @solidjs/signals is pinned only for development comparisons, not used as a production core engine. shared-reactivity/solid2 continues to mean the existing framework adapter. Solid 2 native writes normally defer committed reads until flush(), unlike the synchronous canonical API; its draft-based createStore is therefore a reference architecture and benchmark control, not a drop-in replacement.

npm run test:solid2:native
npm run bench:native-solid-stores -- --rounds 9 --warmup 2
npm run bench:all -- --rounds 9 --warmup 2

For the observed semantics, comparisons, and future-engine requirements, see docs/SHARED_REACTIVITY_SOLID2_NATIVE_STORE_COMPARISON.md. Node 22.12+ is required for this development benchmark (Solid 2 minimum); the standalone library's Node compatibility is unchanged.

Engine-neutral selection and tree-shaking (dev.16)

The standard shared-reactivity entry eagerly uses Alien Signals, preserving the convenient default createSignal()/createMutable() exports. If you want a Solid-only bundle, use the new shared-reactivity/core entrypoint and inject your framework namespace (the root entry otherwise includes Alien Signals):

import * as solid1 from 'solid-js';
import {createReactivity} from 'shared-reactivity/core';
const r=createReactivity({engine:'solid1',solid:solid1});
const count=r.createSignal(0);

Or import * as solid2 from '@solidjs/signals' and createReactivity({engine:'solid2',solid2,scheduling:'sync'}). A core import alone does not create a default engine. Use bun run test:tree-shaking to verify actual esbuild outputs after bun install. All engine selection modes and packaging caveats are in docs/SHARED_REACTIVITY_ENGINE_SELECTION_AND_BUNDLING.md.

Large list performance is now covered by bun run test:bench:lists, bun run bench:large-lists (insert/remove/update/sort/replace/atomic transaction at 1,024–16,384 items), and bun run bench:all, which discovers the new script. See docs/SHARED_REACTIVITY_LARGE_LIST_BENCHMARKS.md and the main benchmark methodology guide. No runtime-store optimization is introduced in dev.16.

Optimized mutable array operations (0.0.1-dev.18)

createMutable() now provides optimized paths for push(), splice(), unshift(), shift(), and pop() without full-tree draft cloning on every call. All mutations remain synchronous at the canonical store layer and retain immutable historical snapshots and path-scoped subscriptions:

import { createMutable, unwrapStore } from 'shared-reactivity';
const state = createMutable({ items: [{ id: 1 }, { id: 3 }] });
const before = unwrapStore(state).snapshot();
state.items.splice(1, 0, { id: 2 });
console.log([...state.items].map(x => x.id)); // [1,2,3]
console.log(before.items.length); // 2 (frozen previous snapshot)

sort, reverse, fill, copyWithin and explicit draft transactions keep the existing generic update implementation. For bulk writes use unwrapStore(state).update(draft => { ... }) to commit once, rather than assuming batch() avoids individual store cloning. Subscription-lifetime improvements for untracked reads apply to Alien Signals and Solid 1; per-effect path detachment is still being investigated. See docs/SHARED_REACTIVITY_DEV18_MUTATIONS_AND_LIFECYCLE.md and bun run bench:splice.

Published BMR integration tests (0.0.2-dev.1)

This revision adds tests/integration/bmr-published/ and exact-version test-only devDependencies on [email protected] and [email protected]. The runtime bridge API remains unchanged. See docs/SHARED_REACTIVITY_0.0.2_DEV0_BMR_INTEGRATION.md for the verified contract and clear distinction between package tests, simulated framework namespaces and actual framework renderer coverage.

npm run test:integration:bmr:node
npm run test:integration:bmr:browser
npm run test:integration:bmr:published # requires npm registry
npm run test:integration:bmr:all

0.0.2-dev.1 Chromium teardown assertion fix

The Windows Playwright run passed four of five package-level browser cases. The fifth had an unawaited locator assertion and was therefore reported as Test ended; this was a test bug, not proof of a BMR lifecycle defect. The assertion is now correctly await expect(page.locator(...)).toHaveCount(0), with checks for empty mount hosts and canonical signal behavior after disposal. Re-run bun run test:integration:bmr:browser and bun run test:integration:bmr:published; the latter did not run because test:integration:bmr:all stopped at the browser failure. See docs/SHARED_REACTIVITY_0.0.2_DEV1_BROWSER_TEARDOWN.md. Production src/ code is unchanged.

Genuine Octane 0.13.3 browser verification

The new test:octane:browser:real suite executes actual Octane 0.13.3 TSRX compilation and rendering, including the published BMR 0.1.0 Octane plugin. Run bun run test:octane:standalone:real and bun run test:octane:bmr:real to isolate failures. This is additional to the legacy test:octane:browser manual-slot fixture. See the real-Octane integration handoff for exact test cases and current verification status.