@silverprotocol/core weekly downloads statistics
By silverprotocol · npm · MCP servers
AgJSON core — the typed schema (AgInput / AgEvent / AgMessage), the Normalizer interface, and the normative reduce().
@silverprotocol/core has 3,597 recorded weekly downloads on npm, an increase of 18.0% over the past 30 days, ranking #1665 of 3,247 tracked listings.
About @silverprotocol/core
Every agent framework — Claude Agent SDK, OpenAI Agents SDK, Google ADK, LangGraph, Vercel AI SDK — streams its own shape of events. Build a client, a UI, or a tool that works across more than one and you end up writing a bespoke adapter per framework.
AgJSON is the wire format that ends that. It normalizes any framework's native event stream into one typed, versioned, forward-compatible shape — so a client written once works with every framework a normalizer exists for.
What's in core
- The schema —
AgInput,AgEvent,AgMessage,AgReduceResult, all as discriminated unions (typed, neverany) with Zod validators. - The
Normalizercontract — the stateful, per-invokepush(native): AgEvent[]/flush(): AgEvent[]interface every@silverprotocol/<framework>package implements. reduce()— the normative fold from anAgEventstream into the messages / turns / artifacts object graph your client renders.
Install
npm install @silverprotocol/core
To actually produce AgJSON from a framework, add its normalizer:
npm install @silverprotocol/claude-agent-sdk
# or @silverprotocol/openai-agents / @silverprotocol/google-adk
Consume AgJSON
core is the consumer side — validate an incoming event stream and fold it into
the object graph, with the same code regardless of which framework produced it:
import { ingestAgEvents, Reducer, AGJSON_VERSION } from "@silverprotocol/core";
const events = ingestAgEvents(rawWireObjects, {
onReject: ({ input, reason }) => console.warn("not an AgJSON event:", reason, input),
});
const reducer = new Reducer();
for (const ev of events) reducer.push(ev);
const { messages, turns, artifacts, memory } = reducer.result();
console.log(AGJSON_VERSION, messages);
ingestAgEvents validates raw wire objects against AgEvent and never throws
(the consumer posture). Unknown fields pass through at every depth. An event it
cannot validate (a newer event type, an unknown enum value, a malformed known
type) is not folded: it rides in place as {type: "ext.agjson.ignored", seq, ignoredType, raw}, which keeps its seq slot so the Reducer never mistakes it
for a gap. raw is for live inspection only; don't persist it. Input that is not
an event at all (not an object, no string type, no number seq) returns
nothing and goes to the optional onReject callback. Reducer folds the
validated stream into the normative snapshot; AGJSON_VERSION is the wire
version this build implements (1.0.0-draft.8).
Stored records and inputs
Messages and memory records you read back from storage, and inputs a client sends, follow the same forward-compatible posture (AgJSON draft.4 §0.2):
import { readStoredAgMessages, readStoredAgMemoryRecords, checkAgInput } from "@silverprotocol/core";
const { value: messages, reports } = readStoredAgMessages(rowsFromYourStore);
for (const r of reports) console.warn("unreadable", r.path, r.ignoredType, r.raw);
const checked = checkAgInput(requestBody);
if (!checked.ok) return reply(400, { code: checked.code, path: checked.path }); // "unknown-value" | "malformed" | "major-mismatch"
readStoredAgMessage(s)andreadStoredAgMemoryRecordsomit what they cannot read and report it: acontentelement that fails at any depth is omitted whole, and a record that fails is omitted from its array. Each report carries itspath, the element'stypewhen it has one, and the verbatim value, so inserting every report back at its index rebuilds the stored record. Unknown fields pass through at every depth; nothing is coerced. What they return is a view: keep storing and forwarding the record as received, never the view. A record carried inside an event keeps the event rule above: amessages.snapshotwith one unknown block is ignored whole, so it cannot resync a parked live fold, while the same message read from storage keeps its readable blocks.checkAgInputrejects the whole input, before you act on any of it, when it fails the schema in any way other than an unknown field, and names one path and one class.unknown-value: a string outside a closed set this version defines (akind, an answerstatus, a reasoningeffort, a blocktypeinmessages,run.system,run.contextorresults[].content, …).major-mismatch: another majorversion.malformed: everything else, including a missing value, a wrong JSON type, a non-object input, or aprotocolother than"agjson". It judgesprotocolfirst, thenversion, then the rest; it checks the envelope members whatever thekind, and when the rest has both kinds of problem the class ismalformed. An accepted input comes back with its unknown fields intact.validateHitlAnswerrejects an answer whosestatusis not a defined one (unknown-status), so an unrecognized status is never read as a grant.
Persisting a fold…
Description from the npm listing.
- agjson
- agent
- agents
- ai
- llm
- normalizer
- protocol
- streaming
- mcp
- claude
- openai
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (135)Similar npm MCP servers plugins
All 20 @silverprotocol/core alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@silverprotocol/core. First seen Nov 17, 2026; last successful collection Nov 17, 2026. See the methodology.