
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@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 1,325,874 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 2 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.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.