
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@zod-plugin/effect
Advanced tools
TypeScript-first schema declaration and validation library with static type inference
✨ https://zod.dev ✨
TypeScript-first schema validation with static type inference
Effect plugin for ZodThis is a plugin to add support for Effect to Zod. Effect provides a foundation for writing TypeScript in a functional, composable way. Refer to the Effect docs for details.
Requirements (peer dependencies):
zod@^3.0.0effect@^3.0.0To install the plugin:
npm add effect zod @zod-plugin/effect
To use the plugin, add the following line in the entry point of your application:
import "@zod-plugin/effect";
This adds two new methods to the ZodType base class. These methods are now available on all schemas throughout your application.
.effect.parse(data): Effect<T, ZodError, never>This method accepts some input data and parses it asynchronously.
import * as z from "zod";
import { Effect } from "effect";
import "@zod-plugin/effect";
const schema = z.object({
name: z.string(),
});
const effect = schema.effect.parse({ name: "Michael Arnaldi" });
//=> Effect<{ name: string }, ZodError, never>;
await Effect.runPromise(effect);
// => { name: "Michael Arnaldi" }
.effect.parseSync(data): Effect<T, ZodError, never>This method accepts some input data and parses it synchronously. If any asynchronous refinements or transforms are encountered, Effect will throw an error.
import * as z from "zod";
import { Effect } from "effect";
import "@zod-plugin/effect";
const schema = z.object({
name: z.string(),
});
const effect = schema.effect.parseSync({ name: "Michael Arnaldi" });
//=> Effect<{ name: string }, ZodError, never>;
await Effect.runSync(effect);
// => { name: "Michael Arnaldi" }
FAQs
TypeScript-first schema declaration and validation library with static type inference
We found that @zod-plugin/effect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.