Scan your whole stack
Are you using @hrejko/shared?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.5.0
@hrejko/shared was last scanned on 29 Nov 2026 at version 1.5.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.5.0 LATEST | 29 Nov 2026 | No rules fired |
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.
The publisher’s own README, as collected from the registry.
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
npm install @hrejko/shared
import { GameState, Player, GameMap } from "@hrejko/shared";
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).
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.
@hrejko/core — Core utilities and base classes@hrejko/server — Server-side game engine@hrejko/client — React client libraryISC
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.