{"_id":"@dudousxd/nestjs-codegen-valibot","_rev":"6-81d3fba9be5a1fdbfe76f52be72c7558","name":"@dudousxd/nestjs-codegen-valibot","dist-tags":{"latest":"0.5.1"},"versions":{"0.2.0":{"name":"@dudousxd/nestjs-codegen-valibot","version":"0.2.0","author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"license":"MIT","_id":"@dudousxd/nestjs-codegen-valibot@0.2.0","maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"dist":{"shasum":"175487e890e9df65c1f1ad8e9d3e4dc170db9e3e","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-codegen-valibot/-/nestjs-codegen-valibot-0.2.0.tgz","fileCount":9,"integrity":"sha512-QkBaw8aT47qbU8rVPuEfEFJsl4k72+vyj1tDTCqRv62oFVuDyr8fEMIMt0N9put3lu8Qd9dCEwKEx4L7swUL3g==","signatures":[{"sig":"MEUCIQCAdc8TJmQKMtxpAlkUpv0/97FwDYRj0hq+y4BnF3ZJFQIgeEpamkJmsXu5S81IsqNIn/cYXJV8Jc+hNYsCUIaLLCM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-codegen-valibot@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25609},"main":"./dist/index.cjs","type":"module","_from":"file:dudousxd-nestjs-codegen-valibot-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"_resolved":"/tmp/37c86ed500223b4142eb447d27298a41/dudousxd-nestjs-codegen-valibot-0.2.0.tgz","_integrity":"sha512-QkBaw8aT47qbU8rVPuEfEFJsl4k72+vyj1tDTCqRv62oFVuDyr8fEMIMt0N9put3lu8Qd9dCEwKEx4L7swUL3g==","repository":{"url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","type":"git","directory":"packages/valibot"},"_npmVersion":"10.9.8","description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.8","ts-morph":"28.0.0","typescript":"5.9.3","@types/node":"20.19.42","@dudousxd/nestjs-codegen":"0.2.0"},"peerDependencies":{"@dudousxd/nestjs-codegen":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-codegen-valibot_0.2.0_1781129395262_0.8427684292256892","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@dudousxd/nestjs-codegen-valibot","version":"0.2.1","author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"license":"MIT","_id":"@dudousxd/nestjs-codegen-valibot@0.2.1","maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"dist":{"shasum":"963d034aeb3a2d0d49594f3a41910f342ba86a56","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-codegen-valibot/-/nestjs-codegen-valibot-0.2.1.tgz","fileCount":10,"integrity":"sha512-0BqsyrPT3JQex/sqKfjk3Naz8R4GAjlQZCIx+gR6/UXF/KJy57iIz8l7jYSPUjGK9UefzPq9lTwT4mwcrQNPOQ==","signatures":[{"sig":"MEUCIC84wzFYrx0Iw7N4+PmnNoJ6RwMdP3xbewxdrmo5NCZ7AiEAv89smDY+4sgGDULWIISQ8V5NtfOxIdzW3qCRmpJQDro=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-codegen-valibot@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28472},"main":"./dist/index.cjs","type":"module","_from":"file:dudousxd-nestjs-codegen-valibot-0.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"_resolved":"/tmp/104f425873eb2bf8c368dda3908cd6d8/dudousxd-nestjs-codegen-valibot-0.2.1.tgz","_integrity":"sha512-0BqsyrPT3JQex/sqKfjk3Naz8R4GAjlQZCIx+gR6/UXF/KJy57iIz8l7jYSPUjGK9UefzPq9lTwT4mwcrQNPOQ==","repository":{"url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","type":"git","directory":"packages/valibot"},"_npmVersion":"10.9.8","description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.8","ts-morph":"28.0.0","typescript":"5.9.3","@types/node":"20.19.42","@dudousxd/nestjs-codegen":"0.2.1"},"peerDependencies":{"@dudousxd/nestjs-codegen":"^0.2.1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-codegen-valibot_0.2.1_1781133664414_0.713744698626545","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@dudousxd/nestjs-codegen-valibot","version":"0.3.0","author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"license":"MIT","_id":"@dudousxd/nestjs-codegen-valibot@0.3.0","maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"dist":{"shasum":"b8ec0ee5fba4e26174f467acac7a1c5dee1e463a","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-codegen-valibot/-/nestjs-codegen-valibot-0.3.0.tgz","fileCount":10,"integrity":"sha512-oEEoXgkLF92ECvB58728Q3QCp7JoXTucgOLowCoFOwO6nik72BpVzPpNyAKnulGK+IMmzP8lLxwd12Sz7GQ6rQ==","signatures":[{"sig":"MEYCIQCtwA2gnhhIsto2pYTsOqhNaFNtDybee4Ael26ngJ4d+AIhALk5K4IyB6w2DB0mhy8tRJ+4VTsRi4iqqKmUY6jGOLV+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-codegen-valibot@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28570},"main":"./dist/index.cjs","type":"module","_from":"file:dudousxd-nestjs-codegen-valibot-0.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"_resolved":"/tmp/0aae2cdda5ad3cf61b01f6c99d0a12df/dudousxd-nestjs-codegen-valibot-0.3.0.tgz","_integrity":"sha512-oEEoXgkLF92ECvB58728Q3QCp7JoXTucgOLowCoFOwO6nik72BpVzPpNyAKnulGK+IMmzP8lLxwd12Sz7GQ6rQ==","repository":{"url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","type":"git","directory":"packages/valibot"},"_npmVersion":"10.9.8","description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.8","ts-morph":"28.0.0","typescript":"5.9.3","@types/node":"20.19.42","@dudousxd/nestjs-codegen":"0.3.0"},"peerDependencies":{"@dudousxd/nestjs-codegen":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-codegen-valibot_0.3.0_1781171668814_0.597885664541348","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@dudousxd/nestjs-codegen-valibot","version":"0.4.0","author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"license":"MIT","_id":"@dudousxd/nestjs-codegen-valibot@0.4.0","maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"dist":{"shasum":"d64efa3dce63ebc00207fcbec5c0233ae1e3b5dd","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-codegen-valibot/-/nestjs-codegen-valibot-0.4.0.tgz","fileCount":10,"integrity":"sha512-xW8sVd1/FfX2MCJFntt7NDtTy0+9GLjdYxGec8MprIW6i3HlZS/ATZRV4s44jp0SPkaMCZrl+nWAPSZmm8t+Ng==","signatures":[{"sig":"MEUCIEzuAcPkIrFdYxFLTEWXCoyWs2LhBuKLFASWRZv18z3qAiEAzBf4LeI3gMa/2MEZ2jTdfAN5GiWnnRd9pUsTW0F5bZA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-codegen-valibot@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":33925},"main":"./dist/index.cjs","type":"module","_from":"file:dudousxd-nestjs-codegen-valibot-0.4.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"_resolved":"/tmp/e6e04918c24c7bf56f37dd0bc1387412/dudousxd-nestjs-codegen-valibot-0.4.0.tgz","_integrity":"sha512-xW8sVd1/FfX2MCJFntt7NDtTy0+9GLjdYxGec8MprIW6i3HlZS/ATZRV4s44jp0SPkaMCZrl+nWAPSZmm8t+Ng==","repository":{"url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","type":"git","directory":"packages/valibot"},"_npmVersion":"10.9.8","description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.8","ts-morph":"28.0.0","typescript":"5.9.3","@types/node":"20.19.42","@dudousxd/nestjs-codegen":"0.4.0"},"peerDependencies":{"@dudousxd/nestjs-codegen":">=0.3.0 <1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-codegen-valibot_0.4.0_1781234070562_0.20393600949512658","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@dudousxd/nestjs-codegen-valibot","version":"0.5.0","author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"license":"MIT","_id":"@dudousxd/nestjs-codegen-valibot@0.5.0","maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"dist":{"shasum":"4f97396a1305ca7503728a6faaa38426c6e70eb8","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-codegen-valibot/-/nestjs-codegen-valibot-0.5.0.tgz","fileCount":10,"integrity":"sha512-azOz//m7xT/cx9nRs0AoOoACY3WdwTaHXPx/SDFBhDUwI86RtLR3ILPXsiJYWSuSqhTgjjgxx3AirwupIr1Nkw==","signatures":[{"sig":"MEUCIFqJJZERirAo4j7oEVWu3hU9nVHXz7P4MQMGgDDgM/3mAiEAjVkm2zJU6uYmKkEd6MsUVEApZQVfqq4S3IRlX0EtyAE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-codegen-valibot@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38039},"main":"./dist/index.cjs","type":"module","_from":"file:dudousxd-nestjs-codegen-valibot-0.5.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"_resolved":"/tmp/f2ef6be3b512e73ee66d480c3af84cd8/dudousxd-nestjs-codegen-valibot-0.5.0.tgz","_integrity":"sha512-azOz//m7xT/cx9nRs0AoOoACY3WdwTaHXPx/SDFBhDUwI86RtLR3ILPXsiJYWSuSqhTgjjgxx3AirwupIr1Nkw==","repository":{"url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","type":"git","directory":"packages/valibot"},"_npmVersion":"10.9.8","description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.8","ts-morph":"28.0.0","typescript":"5.9.3","@types/node":"20.19.42","@dudousxd/nestjs-codegen":"0.5.0"},"peerDependencies":{"@dudousxd/nestjs-codegen":">=0.3.0 <1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-codegen-valibot_0.5.0_1781797236629_0.5753029283410926","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@dudousxd/nestjs-codegen-valibot","version":"0.5.1","repository":{"type":"git","url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","directory":"packages/valibot"},"description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","license":"MIT","author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"sideEffects":false,"peerDependencies":{"@dudousxd/nestjs-codegen":">=0.3.0 <1"},"devDependencies":{"@types/node":"20.19.42","ts-morph":"28.0.0","typescript":"5.9.3","vitest":"4.1.8","@dudousxd/nestjs-codegen":"0.5.2"},"engines":{"node":">=20"},"scripts":{"build":"tsup","test":"vitest run","typecheck":"tsc --noEmit -p tsconfig.json"},"_id":"@dudousxd/nestjs-codegen-valibot@0.5.1","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","_integrity":"sha512-4scrXe4P6SBTKMHiiQR4p/9rPwF4ibH32+NZ6piOhM2S9FnIWdSP52L8aka27VZHChYNyoyKHaRT0Rl2Cnsqng==","_resolved":"/tmp/37fc86922a879082674b5090d5360654/dudousxd-nestjs-codegen-valibot-0.5.1.tgz","_from":"file:dudousxd-nestjs-codegen-valibot-0.5.1.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-4scrXe4P6SBTKMHiiQR4p/9rPwF4ibH32+NZ6piOhM2S9FnIWdSP52L8aka27VZHChYNyoyKHaRT0Rl2Cnsqng==","shasum":"183552e1fe695eda10f49a8dc92ab85ebaba692b","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-codegen-valibot/-/nestjs-codegen-valibot-0.5.1.tgz","fileCount":10,"unpackedSize":32775,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-codegen-valibot@0.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBfb5BcdGc3oAspJkpfktvcFkvEkpXIQLTbFGyu/dcAjAiBDw4xyiU5g/X30OOHtWn7AZ8/N4KUkjX+koizwhTtZAw=="}]},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"directories":{},"maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-codegen-valibot_0.5.1_1781898514400_0.29116615636354304"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-10T22:09:55.094Z","modified":"2026-06-19T19:48:34.781Z","0.2.0":"2026-06-10T22:09:55.425Z","0.2.1":"2026-06-10T23:21:04.570Z","0.3.0":"2026-06-11T09:54:28.955Z","0.4.0":"2026-06-12T03:14:30.706Z","0.5.0":"2026-06-18T15:40:36.763Z","0.5.1":"2026-06-19T19:48:34.528Z"},"bugs":{"url":"https://github.com/DavideCarvalho/nestjs-codegen/issues"},"author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"license":"MIT","homepage":"https://github.com/DavideCarvalho/nestjs-codegen#readme","repository":{"type":"git","url":"git+https://github.com/DavideCarvalho/nestjs-codegen.git","directory":"packages/valibot"},"description":"Valibot validation adapter for @dudousxd/nestjs-codegen — renders the schema IR to valibot source.","maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"readme":"# @dudousxd/nestjs-codegen-valibot\n\n> Valibot validation adapter for [`@dudousxd/nestjs-codegen`](https://www.npmjs.com/package/@dudousxd/nestjs-codegen).\n\n![npm](https://img.shields.io/npm/v/@dudousxd/nestjs-codegen-valibot)\n\n`nestjs-codegen` translates your `@Body()`/`@Query()` DTOs and `defineContract` schemas\ninto one neutral schema IR (`SchemaNode`), then renders that IR with a **validation\nadapter**. This package is the **valibot** adapter: it renders the IR into valibot\nsource in the generated `forms.ts`.\n\nReach for valibot when bundle size matters — it's a tiny, tree-shakeable validator, so\nonly the actions your forms actually use end up in the client bundle.\n\n## Install\n\n```bash\npnpm add -D @dudousxd/nestjs-codegen-valibot\n```\n\n`valibot` itself is the runtime dependency your generated `forms.ts` imports from\n(`import * as v from 'valibot'`), so install it in your app too:\n\n```bash\npnpm add valibot\n```\n\n## Setup\n\nzod is bundled and used by default. To emit valibot schemas instead, pass\n`valibotAdapter` to the codegen config:\n\n```ts\nimport { defineConfig } from '@dudousxd/nestjs-codegen';\nimport { valibotAdapter } from '@dudousxd/nestjs-codegen-valibot';\n\nexport default defineConfig({\n  validation: valibotAdapter,\n});\n```\n\nGiven a DTO like:\n\n```ts\nclass CreateUserDto {\n  @IsEmail() email!: string;\n  @MinLength(8) password!: string;\n}\n```\n\nthe adapter renders `forms.ts` in valibot's idiom:\n\n```ts\nimport * as v from 'valibot';\n\nexport const CreateBodySchema = v.object({\n  email: v.pipe(v.string(), v.email()),\n  password: v.pipe(v.string(), v.minLength(8)),\n});\nexport type CreateBody = v.InferOutput<typeof CreateBodySchema>;\n```\n\n## How it fits\n\nThe codegen builds **one** neutral schema IR from your DTOs and contracts. A validation\nadapter renders that IR into a concrete library's source:\n\n- **zod** — bundled, the default (`validation: 'zod'`)\n- **valibot** — this package (`validation: valibotAdapter`)\n- **arktype** — [`@dudousxd/nestjs-codegen-arktype`](https://www.npmjs.com/package/@dudousxd/nestjs-codegen-arktype) (`validation: arktypeAdapter`)\n\nPick exactly one — it decides which library your generated `forms.ts` imports and\nvalidates with.\n\n## Documentation\n\n- [Pluggable Validation docs](https://github.com/DavideCarvalho/nestjs-codegen/blob/main/apps/docs/content/docs/validation.mdx)\n- [Repository](https://github.com/DavideCarvalho/nestjs-codegen)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}