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

tickcli-js

Latest version: v0.1.18

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: tickcli
19 Versions
3.4K Downloads

Scan summary

tickcli-js was last scanned on 30 Nov 2026 at version 0.1.18. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 19 versions; the latest 2 were published within 7 days (24–30 Nov 2026).
  • Findings: No rules fired in version 0.1.18.
  • Downloads: 3,363 downloads.

Versions

19 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.18 LATEST 30 Nov 2026 No rules fired
0.1.17 24 Nov 2026 No rules fired
0.1.16 23 Nov 2026 No rules fired
0.1.15 22 Nov 2026 Not shown
0.1.13 18 Nov 2026 Not shown

No rules fired in 0.1.18

Findings

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

README

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

tickcli

Live rooms for browser games, made for games written in one HTML file (by people or by an AI). One player's browser runs the rules (the host); a small Node hub keeps the shared state, who is in the room, the order of changes and the limits. No game code ever runs on the server, so a new game needs no server change.

Good for: party and co-op games, tag and races, turn and board games with people watching, team battles with minions and towers, co-op dungeon crawlers, casual shooters, knockout tournaments. Players can be on a computer, a laptop or a phone in the same room. Not for: precise shooters or anything with prizes (the host's browser decides hits and scores, so a player who edits their browser can cheat).

MIT. No runtime dependencies; the Node adapter uses ws (peer dependency).

Quick start (2 minutes)

  1. Save this as dots.html in an empty folder:
<!doctype html><meta charset="utf-8"><title>Dots</title>
<script src="room.js"></script>
<script src="game.js"></script>
<script>
let x = 400, y = 300;                        // where my dot is
Game({
  title: "Dots", size: [800, 600],           // draw in 800 x 600 on any screen
  multiplayer: { max: 8, player: { x: [0, 800], y: [0, 600] } },   // what each player shares
  update(g, dt) {
    const a = g.axis();                      // arrow keys, WASD or the touch pad
    x = Math.min(800, Math.max(0, x + a.x * 250 * dt));
    y = Math.min(600, Math.max(0, y + a.y * 250 * dt));
    g.me.set({ x, y });                      // 1. tell everyone where I am
  },
  draw(g, ctx, w, h) {
    ctx.fillStyle = "#0f172a"; ctx.fillRect(0, 0, w, h);
    for (const p of g.players) {             // 2. draw everyone, me included
      ctx.fillStyle = p.me ? "#60a5fa" : "#e2e8f0";
      ctx.beginPath(); ctx.arc(p.state.x, p.state.y, 12, 0, 7); ctx.fill();
    }
  },
});
</script>
  1. Run npx tickcli-js in that folder (Node 22 or later).
  2. Open http://localhost:8080/, pick the game, and open it again in a second window or send the link to a friend: you get a lobby, a room code, an invite link and both dots moving live.

More: npx tickcli-js ./games --port 3000 --saves ./saves (saved profiles and worlds), --title "Game night", --help. Set TICKCLI_SECRET to any long random text so players keep their seats across restarts. The bigger example games (tag, chess, a race, a shooter, a dungeon, a tournament...): npx tickcli-js node_modules/tickcli-js/examples/games after npm install tickcli-js, or npm run demo in a clone of this repo.

In your own Node app

npm install tickcli-js ws
import { createGameServer } from "tickcli-js/serve";

const app = createGameServer({ games: "./games", saves: "./saves", secret: process.env.TICKCLI_SECRET });
console.log("open", await app.listen(8080));
process.on("SIGTERM", () => app.close().then(() => process.exit(0)));   // writes pending saves first
Option Default What it does
games the current folder folder of .html games (names: letters, digits, -, _)
saves none a folder for saved profiles and worlds, or your own SavePort
secret random per process signs the players' pass cookies; keep it stable to keep seats and saves
limits DEFAULT_LIMITS players per room, rooms, message sizes and rates
secure false mark the pass cookie Secure (set it behind https)
title "tickcli games" heading of the game list page

app.server is a plain node:http server and app.hub the RoomHub, so you can add routes or read hub.stats(). A game loads the libraries as room.js, lib:room or tickcli/room.js (same for game.js); the server serves its own copies.

Need signed-in players, your own routes, or games in a sandboxed frame? Build on the parts instead: tickcli-js (the hub, no dependencies), tickcli-js/node (sockets, tickets, guest passes, saves; uses ws) and tickcli-js/client/*.js (the browser libraries). See Hosting it.

How it works

game page (room.js + game.js)  --postMessage, private port-->  relay.js (trusted page)  --1 WebSocket-->  hub (Node)
Part File Job
Hub src/hub.ts Rooms in memory, membership, host election and terms, change order, rates and sizes, data budgets, fan-out 20 times a second on a 10 ms sub-tick, restart hand-over. Pure logic: no sockets, injected clock.
Node adapter src/node.ts ws sockets to the hub, heartbeat, same-site check, one-time tickets, anonymous passes.
Relay client/relay.js Runs in the trusted page around the game (or in the game's own window). Owns the socket: reconnects with jitter, tells the server when the tab is hidden, pings.
Room client client/room.js In the game page: state mirrors, sends own state at most 12 times a second (10 in rooms over 8 players), eases others' movement, clock, actions.
Game shell client/game.js Game({...}): board fitting, input (keys, swipe, touch pad, held directions), no phone zoom on fast taps, tap-then-hold, pinch or long press, screens; with multiplayer the lobby, teams, invite link, notices and the host loop.

The game page never needs network access: it can run in <iframe sandbox="allow-scripts"> and still play, because the relay outside it holds the socket. The page never sees a ticket, a pass or an address.

Writing a game

<script src="room.js"></script>
<script src="game.js"></script>
<script>
Game({
  title: "Tag", aspect: 4 / 3,
  multiplayer: { max: 8, teams: 0, player: { x: [0, 800], y: [0, 600] } },   // every field a player sets, with its range
  setup(g) { /* each match, everyone */ },
  update(g, dt) { const a = g.axis(); /* move yourself */ g.me.set({ x, y }); },
  host(g, dt) { /* ONE player: rules, timers, monsters */ g.shared.set({ round: 2, hp: { [id]: 80 } }); /* g.gameOver() ends the match (call it every frame if you like: only the first call in a match counts) */ },
  actions: { tag(g, from, data) { /* host: a player asked; return false to refuse */ } },
  onFx(g, from, name, data) { /* everyone: sparks and sounds */ },
  draw(g, ctx, w, h) { /* g.players, g.shared (read-only; g.shared is frozen) */ },
});
</script>
Who Writes How
Each player own input and position g.me.set({...}), any time; clamped to the declared ranges
Host (one browser) rules, scores, health, everything that is not a player g.shared.set({...}) in host(), an action handler or setup() (starting values; only the host's count)
Anyone a request to the host g.act(name, data) resolves {ok}; never merged or dropped, done once even when the host changes or the line drops
Anyone a cosmetic effect (arrives with the next frame, up to 50 ms later) g.fx(name, data)
Server membership, host, order, match number, clock -
  • Writes merge deeply: {hp: {a: 80}} changes one entry, null removes a key, lists are replaced whole. Values that did not change are not sent (room.js and the hub both drop them), so writing a whole object every step is fine; a write that changes nothing sends nothing.
  • Top speed: a third number in a player field's range caps how fast it moves, player: { x: [0, 800, 300] } = at most 300 a second. The hub cuts a bigger jump to that distance (10% headroom, measured on the senders' sample times), so a speed hack or teleport shows as normal running to everyone else and to the host's rules; the writer is not refused. A new match lets each player jump once (to a start spot); a respawn mid-match shows as a quick run. Leave it out for fields that may jump.
  • Things the host moves (monsters, minions, shots) ease smoothly on every other screen when their position fields are named x, y (also z, angle, rot, and a quaternion qx, qy, qz, qw). Players ease the same way. Others are drawn in the past by a delay measured per room (mean delay of the last 40 updates + 2 send intervals + its spread, 100 to 500 ms; usually 200 to 400), at their senders' sample times; the drawing clock follows it by running 2% fast or 4% slow; a late update: the last speed for 100 ms, then hold. Measured through the real code: 0% jump frames, speed within 1%, for 4 and 16 players with 30 ms jitter.
  • Timers are end times on the shared clock: g.shared.set({endsAt: g.now + 60}). The clock: 4 pings 250 ms apart after connecting, then one every 5 s; the offset of the fastest of the last 8 (none older than 60 s) is used, reached over a second, never in one step.
  • g.shared is read-only all the way down (frozen): a write into it throws in strict code and does nothing otherwise, and list.sort() on a list in it throws, so copy first (g.shared.list.slice().sort()). The page never copies the whole state: each write makes new objects only along the paths it changes, so a frame costs the same at 3 KB or 60 KB (0.07 ms at 60 KB with 32 moving things, was 1.4 ms). structuredClone(g.shared) works (plain frozen objects).
  • A late joiner gets g.shared and g.players in full, so they must tell the whole story.
  • Host duty moves at once when the host leaves, hides its tab, or its game loop stops for 5 s; the new host continues from the server's copy of g.shared. Keep nothing important only in host variables.
  • Teams: multiplayer.teams: 2 splits the lobby evenly (anyone can switch before the start); g.me.team, player.team, g.teams, g.teamColor(i).
  • No host app around the page (a downloaded copy): the game runs as a one-player game.

More of the shell, by kind of game:

Option or call For What it does
size: [800, 600] every game with fixed coordinates draw works in these units on any screen
world: [2400, 1600], g.camera.follow(x, y), overlay(g, ctx, w, h) races, dungeons, team battles a world bigger than the board, a camera, a layer on top in board units
onPointer(g, x, y), g.pointer board games, aiming a click or tap in board (world) units
buttons: [{id, label, key}] abilities, boost, fire up to 4 extra buttons: a key on a computer, a touch button on a phone
multiplayer.seats, seatNames, min chess and other games for a fixed few that many play (g.seats, g.me.seat), the rest of the room watches; watchers get no update, input or actions
multiplayer.cup: true tournaments a knockout bracket over the room: the shell seats each match and moves winners on; the game ends a match with g.gameOver(winnerId)
multiplayer.countdown: 3 races, shooters 3-2-1 on the shared clock before each match
g.shoot({x, y, vx, vy, life, r}), g.shots, g.hit(shot) shooters a shot is sent once and every screen moves it; the host decides what it hits
g.late races, anything with a start line true in setup() on a page that came into a running match (a late joiner, a reload): start next to the others, not on the start line
g.spawnNear({x: [0, W], y: [0, H], gap}) any game with a camera or a big world where to start or respawn so the others are on screen: a ring round the middle at the start of a match, later gap away from someone still playing (keys: ["x", "z"] in 3D, skip(player) to leave someone out)

The lobby also takes a friend's room code typed in by hand (codes never use I, O, 0 or 1), the touch pad holds one direction per finger, and angles named angle or rot (radians) turn the short way round on other screens.

three.js and other engines

three.js (the shell keeps its board, bar and touch pad; three.js draws on the shell's canvas). Load three.js as the global THREE (<script src="lib:three"></script> on the tickcli server, which makes it from the installed three package, 0.171 or newer; or your own bundle), then room.js, game.js, game3d.js:

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 tickcli-js

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

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

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

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

Frame 2085668439 (1)
Group 1261154229