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

@hollis-labs/surface-chat

Latest version: v0.21.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: chrispian
0 Stars
0 Forks
29 Versions
5.5K Downloads
Go Repo language

Scan summary

@hollis-labs/surface-chat was last scanned on 28 Nov 2026 at version 0.21.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 29 versions; the latest 5 were published within 7 days (22–28 Nov 2026).
  • Findings: No rules fired in version 0.21.0.
  • Downloads: 5,492 downloads.

Versions

29 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.21.0 LATEST 28 Nov 2026 No rules fired
0.20.0 23 Nov 2026 No rules fired
0.19.1 22 Nov 2026 No rules fired
0.19.0 22 Nov 2026 Not shown
0.18.1 22 Nov 2026 Not shown

No rules fired in 0.21.0

Findings

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

README

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

@hollis-labs/surface-chat

A conversation with an agent host, without any styling. It is the behaviour half of Surface's chat; the visuals are the registry's chat components (conversation, message, markdown, prompt-input, tool), and web/src/agent/AgentPanel.tsx puts the two together.

Unpublished for now. Another app can take it as source (the page aliases @hollis-labs/surface-chat to src/index.ts); it has no dependency but React, and React only for src/react.ts.

File What it is
src/stream.ts Shared conversation event types and SSE frame decoding
src/reduce.ts The conversation as data, and what each event does to it. Pure functions
src/conversation-store.ts Durable conversation state, attachments, turns and approvals
src/react.ts useChat(store, select) and its shorthands; useStickToBottom

Why drawing stays cheap

  • The shape. Items are held by id (items) with their order beside them (ids). A streamed token replaces one item and nothing else: ids keeps its identity unless an item is added or removed, and so does every other item. A list drawn from ids, with each row subscribed to its own item, redraws only the row that changed.
  • The composer owns its draft. Typing changes component state in the composer and nothing in the store.
  • One notification per frame. A burst of tokens between two frames is one redraw.

Measured on a live turn in the page (development build, window.__chatRenders, commits per component): typing 30 characters gave the composer 30 commits and the list and every row 0; a reply of 77 streamed tokens gave its own row 73 commits, the list 2 (its two new items) and each of the four earlier messages 0.

History policy

The page attaches and reads the conversation stream from the beginning, then resumes from its last event. All turns arrive on that stream, including those sent by other clients. Resetting follows the successor conversation; there is no separate thread-history endpoint.

Not here

  • Page tools. Surface tools run on the server.
  • Cards. The panel draws each item through a table (web/src/agent/items.tsx): a tool with a card of its own goes to that card, every other tool to the plain row.

npm test runs the reducer and store tests (node --test).

The conversation wire

conversation.ts, conversation-reduce.ts and conversation-store.ts bind the same reducer and components to a durable conversation instead of one run at a time: the page attaches as a viewer or a controller, reads one event stream from wherever it says, and submits turns when it holds the right to type. createConversationStore is the panel's transport.

What it handles How
First paint and reload Attach, read the stream from 0 (history arrives without deltas), then follow it. No separate history read
The sender's own message Drawn at once under its request id; the stream's copy takes the same item, so it is never shown twice
A client that takes no deltas A finished part carries its whole content, so stream: "committed" draws the same messages
A dropped connection Resumes after the last event seen
The agent's side replaced (409 stale_attachment) Attaches again and keeps its cursor
The conversation reset (410 conversation_closed) Moves to the new conversation
Another window typing A refused send says so; takeover() takes the input
A turn the host refuses (422) The message stays, with the reason under it

It assumes nothing about which agent runs the turns, only the wire (github.com/hollis-labs/libs/agent/chat), at any base URL. The tests run it against an in-memory host (test/fake-host.ts) that follows the wire's rules and event shapes. Surface's panel uses it for every configured agent.

A window that only watches (role: "viewer") becomes a controller when it takes over. A page that is going away should call dispose(): it detaches, which releases the input for the next page.

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 @hollis-labs/surface-chat

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 (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

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