
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@ecopages/signals
Advanced tools
Renderer-agnostic signal primitives based on the TC39 Signals proposal
@ecopages/signals is a renderer-agnostic signals package that can be used standalone or underneath Radiant.
Its core model is based on the TC39 Signals proposal, with a smaller surface area and a few convenience helpers for application code today.
The public entrypoint remains index.ts, while the implementation now lives in focused modules under src/ so the core runtime, effects, watcher support, and store logic can evolve independently.
This package currently provides:
State<T> for writable valuesComputed<T> for lazily derived valuescurrentComputed() for advanced derived helpers that need the active computed contexteffect(...) for reactive side effects with scheduled re-executionwatch(...) for observing derived values with previous-value accessuntrack(...) and peek(...) for non-tracking readssubtle.Watcher plus watched and unwatched hooks for low-level invalidation workflowscreateStore(...) for deep reactive object and array stateisStore(...) for detecting signal-backed store proxiessnapshot(...) for materializing plain nested dataComputed evaluationThe package is organized around a stable public barrel and smaller implementation files:
index.ts re-exports the public API and exposes subtlesrc/types.ts defines the public contracts, options, and low-level symbolssrc/state.ts implements writable State signalssrc/computed.ts implements lazy derived Computed signals and active-computation helperssrc/effect.ts and src/watch.ts implement effect scheduling and derived-value observationsrc/watcher.ts implements proposal-shaped low-level watcherssrc/tracking.ts contains non-tracking read helperssrc/store.ts contains deep store proxying and snapshot materializationThis package is renderer-agnostic.
This package is based on the current TC39 Signals proposal and tracks the same broad model around:
State and Computed signal classesIt is not a drop-in implementation of the current proposal draft.
It is best understood as proposal-aligned in its core semantics, but not yet fully API-compatible with the draft surface.
effect(...), watch(...), createStore(...), and snapshot(...) directly.subscribe(...) hooks for adapter and library integration.subtle.Watcher API, while still keeping the existing convenience helpers.subtle.Watcher follows the proposal-style re-arm behavior, where calling watch(...) resets the pending set and notification latch for the next invalidation cycle.subscribe(...) is intended for adapter-style push integration. Application-level derived work is usually better expressed with Computed, effect(...), or watch(...).watch(...) is built on top of a computed signal plus an effect, so it inherits computed equality behavior and effect scheduling.subtle.Watcher reports staleness rather than recalculated values. Calling watch(...) is both registration and reset.createStore(...) wraps nested plain objects and arrays, while snapshot(...) detaches the current plain value graph for logging, serialization, or comparison.import { Computed, State, createStore, effect, watch } from '@ecopages/signals';
const count = new State(0);
const parity = new Computed(() => ((count.get() & 1) === 0 ? 'even' : 'odd'));
const store = createStore({ profile: { name: 'Ada' } });
const dispose = effect(() => {
console.log(parity.get(), store.profile.name);
});
const stopWatching = watch(
() => store.profile.name,
(nextName, previousName) => {
console.log(previousName, '->', nextName);
},
);
count.set(1);
store.profile.name = 'Grace';
dispose();
stopWatching();
This implementation is still smaller than the current TC39 proposal draft.
Watcher and subtle semantics surface yetThose omissions are deliberate. The goal is to keep a small, useful standalone package while leaving room to align further as the proposal evolves.
FAQs
Renderer-agnostic signal primitives based on the TC39 Signals proposal
We found that @ecopages/signals demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.