
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
joi-serialization
Advanced tools
This lib can serialize and deserialize a JOI Schema into an arbitrary object, which could be saved as JSON e.g. in a Database.
Typescript definitions are included.
It supports all functions documented in the JOI API reference, also nothing is lost during the serialization, with some exceptions:
You have to install joi as a peer dependency. This library was tested with joi version 14.3.1, but probably works with other versions too.
For serialization the function serialize is exported. Just call it with a JOI Schema as parameter.
It is just a wrapper to the JOI function schema.describe(), so for serialization purposes, you don't have to install this library. However this might change in the future.
For deserialization the function deserialize(schema, options?) is exported. Just pass the serialized JOI Schema (a JOI Schema description) as parameter. Optionally you can pass an option object:
symbols: {[name: string]: symbol}, will be used for deserialization of joi.symbol().map(). Since javascript symbols cannot be serialized to e.g. JSON, you can pass a symbol map, which will be used.npm install joi-serialization
const {serialize, deserialize} = require('joi-serialization').
This library is heavily tested and should (while not measured) come near to 100% coverage.
.tags, .description... from any type)FAQs
JOI serialization and deserialization.
We found that joi-serialization 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.