
Security News
Socket Releases Free Certified Patches for Nuxt Security Vulnerabilities
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.
@nimblebrain/mpak-schemas
Advanced tools
Shared Zod schemas and TypeScript types for the mpak registry
Shared Zod schemas and TypeScript types for the mpak registry monorepo.
This package is the single source of truth for all data schemas used across the mpak ecosystem (server, client, CLI, SDK). Schemas are defined using Zod v4, which provides:
pnpm add @nimblebrain/mpak-schemas
Within the monorepo, add it as a workspace dependency:
{
"dependencies": {
"@nimblebrain/mpak-schemas": "workspace:*"
}
}
import {
PackageSchema,
BundleSchema,
type Package,
type Bundle,
} from "@nimblebrain/mpak-schemas";
import { validatePackage, validateBundle } from "@nimblebrain/mpak-schemas";
const result = validatePackage(unknownData);
if (result.success) {
console.log(result.data.name); // typed as Package
} else {
console.error(result.errors); // string[]
}
import { PackageSchema } from "@nimblebrain/mpak-schemas";
// Parse (throws on invalid)
const pkg = PackageSchema.parse(data);
// Safe parse (returns result object)
const result = PackageSchema.safeParse(data);
package.tsEnums and search parameter schemas.
ServerTypeSchema - node, python, binaryPlatformSchema - darwin, win32, linuxPackageSortSchema - downloads, recent, namePackageSearchParamsSchema - query parameters for searchapi-responses.tsAll API response schemas for both internal and v1 APIs.
Package schemas: PackageSchema, PackageDetailSchema, PackageSearchResponseSchema, PackageVersionSchema, etc.
Bundle schemas (v1 API): BundleSchema, BundleDetailSchema, BundleSearchResponseSchema, VersionInfoSchema, VersionDetailSchema, DownloadInfoSchema, MCPBIndexSchema, AnnounceRequestSchema, AnnounceResponseSchema
Internal API schemas: PublishResponseSchema, ClaimStatusResponseSchema, ClaimResponseSchema, MyPackagesResponseSchema, UnclaimedPackagesResponseSchema
auth.tsUserProfileSchema - user profile from /app/auth/meskill.tsAgent Skills specification schemas.
SkillFrontmatterSchema - SKILL.md frontmatterSkillAnnounceRequestSchema - POST /v1/skills/announceSkillSearchResponseSchema, SkillDetailSchema, etc.mpak-json.tsmpak.json ownership claim file schema.
MpakJsonSchema - Zod schema for mpak.jsonMPAK_JSON_SCHEMA - JSON Schema for IDE autocompletegenerateMpakJsonExample() - utility to generate example filesvalidation.tsConvenience validation helpers that return { success, data, errors }.
validatePackage(), validatePackageDetail(), validateBundle(), etc.# Build (ESM + CJS)
pnpm build
# Type check
pnpm typecheck
# Run tests
pnpm test
# Watch mode
pnpm dev
Apache-2.0
FAQs
Shared Zod schemas and TypeScript types for the mpak registry
We found that @nimblebrain/mpak-schemas 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
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

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.