
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
SignalRX is a lightweight and highly optimized library for managing signals as global reactive stores in a simple, efficient, and intuitive way.
npm install signalrx
# or
yarn add signalrx
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
export const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>({
isAuthenticated: false,
token: null,
} /* Initial State */);
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
export const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>({
isAuthenticated: false,
token: null,
});
/* Get the full store state */
const signalData = authSignalStore.getValue();
/* Get a partial value */
const token = authSignalStore.getValue(value => value.token);
/* Map to a custom object */
const newData = authSignalStore.getValue(value => ({
valueToken: value.token,
authenticated: value.isAuthenticated,
}));
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>({
isAuthenticated: false,
token: null,
});
/* Method 1: Update partially using a callback */
authSignalStore.setData(prev => ({ ...prev, token: "token example" }));
/* Method 2: Replace the entire store */
authSignalStore.setData({ isAuthenticated: true, token: "token example" });
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>({
isAuthenticated: false,
token: null,
});
/* Subscribe to changes */
const unsubscribe = authSignalStore.subscribe(value => {
console.log(value); // { isAuthenticated: false, token: null }
});
The
subscribecallback is automatically triggered whenever the signal value is updated throughsignal.setData().
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>({
isAuthenticated: false,
token: null,
});
/* Clear all active subscriptions */
authSignalStore.clearSubscriptions();
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>(
{
isAuthenticated: false,
token: null,
},
{
storage: {
name: "<your-storage-key>",
storageType: "localstorage" | "sessionstorage" | "custom",
values: {
token: true, // Save this property to storage
isAuthenticated: false // Do not save this property
},
},
} /* Signal config */
);
import { Signal } from "signalrx";
interface AuthSignalState {
isAuthenticated: boolean;
token: string | null;
}
const authSignalStore: Signal<AuthSignalState> = new Signal<AuthSignalState>(
{
isAuthenticated: false,
token: null,
},
{
storage: {
name: "<your-storage-key>",
storageType: "custom",
customStorage: {
getValue() {
// Your custom implementation
},
setValue() {
// Your custom implementation
},
deleteValue() {
// Your custom implementation
},
},
},
} /* Signal config */
);
/* You can use the `CustomSignalConfigStorage<T>` interface to type your custom storage */
getValue() → Retrieve the full or partial signal state.setData() → Update or replace the current signal data.subscribe() → Listen to signal changes in real-time.clearSubscriptions() → Remove all active signal subscriptions.storage → Persist specific values using localStorage, sessionStorage, or a custom storage engine.If you want to contribute, please fork this repository and create a pull request.
Direct pushes to main are not allowed.
MIT © 2025 — Created with ❤️ by Joaquin Feola
FAQs
A lightweight library for managing signals as global reactive stores.
The npm package signalrx receives a total of 33 weekly downloads. As such, signalrx popularity was classified as not popular.
We found that signalrx 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.