
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@br-validators/zod
Advanced tools
Zod schemas for Brazilian document validators — delegates to @br-validators/core
Zod schemas that delegate to @br-validators/core v1.10.0 validate* functions — same golden vectors, same error messages.
pnpm add @br-validators/zod @br-validators/core zod
Peer dependency: zod ^3.23.0 || ^4.0.0
import { z } from 'zod';
import { cpfSchema, telefoneSchema } from '@br-validators/zod';
const formSchema = z.object({
cpf: cpfSchema,
telefone: telefoneSchema,
});
formSchema.parse({
cpf: '123.456.789-09',
telefone: '(11) 99999-9999',
});
| Schema | Output |
|---|---|
cpfSchema | canonical string |
cnpjSchema | canonical string |
cepSchema | canonical string |
telefoneSchema | { value, tipo } |
placaSchema | { value, format } |
pisPasepSchema / pisSchema | canonical string |
pixKeySchema | { value, keyType } |
boletoSchema | { value, inputKind, situacao } |
cartaoCreditoSchema | { value, brand } |
createInscricaoEstadualSchema({ uf }) | { value, uf } |
Subpath imports mirror core: @br-validators/zod/cpf, etc.
MIT
FAQs
Zod schemas for Brazilian document validators — delegates to @br-validators/core
The npm package @br-validators/zod receives a total of 2,058 weekly downloads. As such, @br-validators/zod popularity was classified as popular.
We found that @br-validators/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.
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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.