
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mi-nimal type-checking library
A minimal JavaScript library providing runtime type-checking powered by Valibot.
parse(), inferSchema(), and validate()One‑Shot Validation: Validate any value against its inferred schema in a single call.
Assignment Enforcement: Wrap validated data in a Proxy to intercept property and array-index assignments, ensuring all mutations conform to the original schema.
npm install mitili
# or
yarn add mitili
import { parse, inferSchema, validate } from 'mityli';
// 1️⃣ Infer and validate a value
const raw = { name: 'Alice', age: 30 };
const user = parse(raw);
console.log(user.name); // "Alice"
// 2️⃣ Safe assignments (via Proxy)
user.age = 31; // OK
user.age = '31'; // throws ValiError: Expected number
// 3️⃣ Reuse schema for other data
const schema = inferSchema(raw);
try {
const other = validate(schema, { name: 'Bob', age: '25' });
} catch (err) {
console.error('Invalid data:', err);
}
Infer a Valibot schema from any JS value.
Validate a value against a given schema (alias to Valibot parse).
Infer, validate, and return a Proxy‑wrapped object/array for runtime assignment checks.
Contributions, bug reports, and feature requests are welcome! Please open an issue or pull request on GitHub.
MIT
FAQs
A minimal runtime type-checking library for JavaScript using Valibot
We found that mityli 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.
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.