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

@bemedev/app-reactjs

Latest version: v4.0.2

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: bemedev
2 Stars
1 Forks
23 Versions
2.7K Downloads
TypeScript Repo language

Scan summary

@bemedev/app-reactjs was last scanned on 30 Nov 2026 at version 4.0.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 23 versions; the latest 5 were published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 4.0.2.
  • Downloads: 2,660 downloads.

Versions

23 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.2 LATEST 30 Nov 2026 No rules fired
4.0.1 30 Nov 2026 No rules fired
4.0.0-beta-03 30 Nov 2026 No rules fired
4.0.0-beta-02 28 Nov 2026 Not shown
4.0.0-beta-01 27 Nov 2026 Not shown

No rules fired in 4.0.2

Findings

Findings for v4.0.2. 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 4.0.2; other versions have their own rules, not their own score.

README

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

@bemedev/app-reactjs

ReactJS state hook binding for @bemedev/app state machines.

@bemedev/app-reactjs provides a lightweight hook to track and select state from a @bemedev/app interpreter service inside ReactJS component trees.

Demo

Check out the live interactive demo on Vercel: https://bemedev-app-reactjs.vercel.app

Installation

npm install @bemedev/app-reactjs
# or
pnpm add @bemedev/app-reactjs

Requirements: Node.js ≥ 24 · @bemedev/app ≥ 2.0.0 · React ≥ 18.0.0

Quick Start

import { interpret } from '@bemedev/app';
import { useService } from '@bemedev/app-reactjs';
import { myMachine } from './my.machine';

const service = interpret(myMachine, { context: { count: 0 } });
service.start();

function MyComponent() {
  // `useService` returns the `state`, `can` and `isInside` helpers.
  const hooks = useService(service);

  // 1. Select a specific slice of context
  const count = hooks.state({ selector: s => s.context.count });

  // 2. Or track the active state value
  const stateValue = hooks.state({ selector: s => s.value });

  // 3. Or track the whole state object
  const state = hooks.state();

  // 4. Reactive event and state hierarchy queries
  const canStart = hooks.can('START');
  const isInsideIdle = hooks.isInside('idle');

  return (
    <div>
      <p>Count: {count}</p>
      <p>State: {JSON.stringify(stateValue)}</p>
      <p>Can start: {String(canStart)}</p>
      <p>Inside idle: {String(isInsideIdle)}</p>
    </div>
  );
}

Available Hooks

The package also exports useState, useCan, and useIsInside. They accept the same service object as useService:

import { useCan, useIsInside, useState } from '@bemedev/app-reactjs';

const count = useState(service, { selector: state => state.context.count });
const canIncrement = useCan(service)('INCREMENT');
const isInside = useIsInside(service)('some.state');

useCan and useIsInside return a callable helper exposing .or and .and:

const canLoad = useCan(service).or('FETCH', 'RETRY');
const insideLoading = useIsInside(service).and('authenticated', 'loading');

API Reference

useService(service)

Creates the service helpers that re-render whenever the interpreter transitions, using deep comparison to prevent unnecessary renders.

Property Type Description
state (options?: UseStateOptions) => T Selects machine state or a context slice.
can (...events: string[]) => boolean Checks whether the given event(s) can be accepted (can.or, can.and).
isInside (...states: string[]) => boolean Checks whether the machine is inside the given state hierarchies.
wrap (selector, options?) => Component Builds a render-prop component receiving the selected state.
Wrapper (props) => ReactNode Renders children with the selected state.
Render-prop helpers

hooks.wrap(selector, options?) returns a component whose children render function receives the selected state:

function Counter() {
  const hooks = useService(service);
  const Wrap = hooks.wrap(state => state.context.count);

  return <Wrap>{count => <p>Count: {count}</p>}</Wrap>;
}

hooks.Wrapper renders the same selection directly, without an intermediate component:

function Counter() {
  const hooks = useService(service);

  return hooks.Wrapper({
    selector: state => state.context.count,
    children: count => <p>Count: {count}</p>,
  });
}
UseStateOptions
Option Type Description
selector (state: State) => T Optional selector function projecting machine state into a sub-state slice.
equals Dequal_F<T> Optional equality comparator function comparing previous and next selected state (defaults to deepEqual).
stateEquals Dequal_F<State> Optional equality comparator function comparing raw machine state before selection (defaults to deepEqual).

License

MIT

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 @bemedev/app-reactjs

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (2)
Research

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229