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

@hrejko/shared

Latest version: v1.5.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: pemasat
1 Versions
50 Downloads

Scan summary

@hrejko/shared was last scanned on 29 Nov 2026 at version 1.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 1.5.0.
  • Downloads: 50 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.5.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 1.5.0

Findings

Findings for v1.5.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 1.5.0; other versions have their own rules, not their own score.

README

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

@hrejko/shared

Shared base types and contracts for the Hrejko multiplayer game framework.

Designed to keep development simple as soon as possible and aligned with React-oriented packages.

Questions? Contact me on Discord: https://discord.gg/CY6qP8zyjV

Installation

npm install @hrejko/shared

What's Included

  • Types — Game state, player, map, and message types shared between client and server
  • Game Map — Map utilities and helpers
  • Player — Player state types and utilities
  • Game — Core game state definitions
  • Analytics — Analytics event types

Usage

import { GameState, Player, GameMap } from "@hrejko/shared";

Connection Liveness Contracts (since 1.3.0)

  • ClientMessageType.Heartbeat ("heartbeat") — the application-level liveness signal. WebSocket protocol ping/pong is answered by the browser's network process even when the page JS is frozen, so only messages produced by page JS can prove a client is alive. @hrejko/client sends it every 4 s while the page is visible; @hrejko/server stamps liveness and otherwise ignores it.

  • ExtendedGameConfiguration.onPlayerConnectionChange — optional hook called by the server whenever a player is marked active or inactive, so a game can run its own cleanup:

    onPlayerConnectionChange?: (
      player: Player,
      isActive: boolean,
      game?: Game,
    ) => void;
  • ExtendedGameConfiguration.toPublicPlayer — optional (player, game | undefined) => Record<string, unknown> projector applied to every player the server sends. Use it to keep server-only fields (bot AI state) off the wire; without it players are sent whole minus privateId.

  • ExtendedGameConfiguration.projectForViewer (since 1.5) — optional (message: ViewerProjectedMessage, viewer, game | undefined) => message | null called once per recipient for broadcast_gameUpdated, broadcast_gameStarted, broadcast_playerUpdated, player_welcome and player_reconnect. Use it for per-viewer fair play (fog of war, invisibility). null drops the message for that viewer.

  • ExtendedGameConfiguration.viewportCulling (since 1.5) — false | ViewportCullingConfig ({ entityKeys, getViewport?, alwaysInclude? }) culling entity arrays in tick updates per viewer. Unset = the deprecated built-in culling of Tunneler's arrays (unchanged 1.4 behavior).

Lobby Contracts (since 1.4.0)

  • ClientMessageType.SetLobby ("setLobby") — { settings } write to the shared lobby bag. No lobbyId on the message by design: the server uses the sender's own player.lobbyId, so a client cannot address a lobby it isn't in.
  • ClientMessageType.RemoveBot ("removeBot") — { botPublicId }.
  • Lobby.settings — app-owned, client-writable, broadcast verbatim. Lobby.limits — framework-owned { minPlayersCount, maxPlayersCount }. Neither is present on the stub lobby that signals a lobby removal.
  • RESERVED_LOBBY_KEYS — stripped from every incoming setLobby patch.
  • ExtendedGameConfiguration.onLobbySettingsChange — validate/normalize a patch before it is stored or broadcast; return false to reject it entirely.
  • ExtendedGameConfiguration.onLobbyChanged — runs after every settled lobby mutation; may change membership (re-entry safe) and return settings to merge.
  • ExtendedGameConfiguration.botFactory — shape a bot at creation time.
  • GameGlobalSettings.minHumanPlayersCount (default 1) — non-bot players an accepted lobby needs before a game may start.

Full release notes: CHANGELOG.md.

Related Packages

License

ISC

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 @hrejko/shared

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229