
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@langchain/protocol
Advanced tools
@langchain/protocolTypeScript bindings for the LangChain agent streaming protocol.
This package publishes the generated TypeScript schema bindings from
protocol.cddl so TypeScript applications can type protocol commands, events,
results, and content blocks consistently.
protocol.tsCommand, Message, and protocol eventsThis package does not currently ship a runtime client, transport, or helper APIs. It is intended for typing protocol payloads and generated bindings only.
npm install @langchain/protocol
Use type-only imports when consuming the protocol schema:
import type {
Command,
Message,
SubscribeParams,
MessagesEvent,
} from "@langchain/protocol";
You can then use the exported types to model protocol payloads in your own transport or client implementation:
import type { Command, SubscribeParams } from "@langchain/protocol";
const params: SubscribeParams = {
channels: ["messages", "lifecycle"],
};
const subscribeCommand: Command = {
id: 1,
method: "subscription.subscribe",
params,
};
The canonical protocol definition lives at protocol.cddl. The TypeScript
bindings in this package are generated from that schema.
FAQs
TypeScript bindings for the LangChain agent streaming protocol
The npm package @langchain/protocol receives a total of 755,285 weekly downloads. As such, @langchain/protocol popularity was classified as popular.
We found that @langchain/protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.