
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
@cratestack/validator-zod
Advanced tools
An RpcLink for CrateStack's generated TypeScript RPC client that validates request input against per-op zod schemas.
An RpcLink
(issue #182) for CrateStack's generated
TypeScript RPC client (transport rpc schemas) that validates request.input against a per-op
zod schema before the call reaches the network — client-side validation with
the exact same schema shape your server-side procedure/model input already has, instead of hoping
the generated types alone catch a bad call at compile time.
import { createZodValidatorLink } from "@cratestack/validator-zod";
import { CratestackRpcRuntime } from "./generated/runtime"; // your project's generated client
import { z } from "zod";
const runtime = new CratestackRpcRuntime("https://api.example.com", {
links: [
createZodValidatorLink({
"model.Order.create": z.object({ total: z.number().positive() }),
}),
],
});
Ops with no configured schema pass through unvalidated — this is opt-in per op, not a blanket
gate. On success, the schema's parsed output (defaults, z.coerce, transforms) becomes the
actual request input, not just a type-level assertion. On failure, the chain short-circuits —
the real network call never happens — and the call rejects the same way a server-side validation
failure would, with an RpcErrorBody carrying code: "invalid_argument".
FAQs
An RpcLink for CrateStack's generated TypeScript RPC client that validates request input against per-op zod schemas.
The npm package @cratestack/validator-zod receives a total of 175 weekly downloads. As such, @cratestack/validator-zod popularity was classified as not popular.
We found that @cratestack/validator-zod demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.