Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

simple-state-model-graphql-client

Latest version: v0.3.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: johnvmt
0 Stars
0 Forks
3 Versions
17 Downloads
JavaScript Repo language

Scan summary

simple-state-model-graphql-client was last scanned on 24 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest 2 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 17 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 24 Nov 2026 No rules fired
0.2.0 23 Nov 2026 No rules fired
0.1.0 9 Aug 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

simple-state-model-graphql-client

Client for the schema served by simple-state-model-graphql-api. It is framework-agnostic — no Svelte, React or DOM dependency beyond an optional window.WebSocket.

Install

npm install simple-state-model-graphql-client

Usage

import { StateGraphQLClient } from "simple-state-model-graphql-client";
import { StateController, uniqueID } from "simple-state-model";

const client = new StateGraphQLClient({
    graphQLURL: "wss://example.com/graphql",
    logger: console
});

await client.connect();

Pair it with a local StateController in CLIENT mode to get optimistic updates: apply the patch locally, send it to the server, and let the server's echo confirm it.

const sourceID = uniqueID(); // identifies this client's own writes
const stateController = new StateController({ mode: StateController.MODES.CLIENT });

// server -> local
await client.subscribeMutations(
    "element-1",
    { exclude_source: sourceID }, // don't echo our own patches back to us
    (error, mutation) => {
        if(error)
            return console.error(error);

        // the first mutation carries the full state, with reset: true
        stateController.patch(mutation.patch, { source: "server" });
    }
);

// local -> server
stateController.on("patch", (patch, patchOptions) => {
    if(patchOptions?.source === "server") // came from the server, don't send it back
        return;

    client.patch("element-1", patch, { source: sourceID });
});

Presence

Every mutation subscription registers a subscriber on the server, anonymous until it is named. The subscriber ID arrives with the first mutation.

let subscriberID;

await client.subscribeMutations("element-1", {}, (error, mutation, subscriber) => {
    if(subscriber && !subscriberID) {
        subscriberID = subscriber.id;
        client.updateSubscriber(subscriberID, { name: "Jane" });
    }
});

await client.subscribeSubscribers("element-1", {}, (error, subscribers) => {
    console.log(`${subscribers.count} watching`, subscribers.subscribers);
});

Watching the subscriber list does not add you to it.

Connection

StateGraphQLClient extends BaseGraphQLClientApp, which handles the WebSocket connection and emits status (IDLE, CONNECTING, CONNECTED, DISCONNECTED — see GraphQLClientStatuses). Pass addContext to attach auth headers/connection params, and call disconnect() to tear down.

Related packages

  • simple-state-model — the core model
  • simple-state-model-graphql-api — the matching server

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm simple-state-model-graphql-client

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229