</>PackageGraphPackageGraph

joi

npmv18.2.8TypeScript

Object schema validation

Safe to adopt

Yes — joi scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 7 days ago. 19 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 7 days ago. 19 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 7 transitive packages, about 2.1 MB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    BSD-3-Clause — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding joi to a project.

7
Direct dependencies

Runtime packages this one declares itself.

7
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

2.1 MB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BSD-3-ClauseMIT

Every license you inherit by installing joi, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >= 20
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

joi vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
joithis page03BSD-3-Clause7 days ago
zod246.7M13MIT1 day ago
@standard-schema/spec99.1M9MIT1 day ago
valibot16.8M5MIT1 day ago
@eslint/object-schema01Apache-2.01 day ago
fastify8.9M4MIT1 day ago

Dependencies

Declared by joi v18.2.8. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (9)

@hapi/bourne ^3.0.0@hapi/code ^9.0.3@hapi/eslint-plugin ^7.0.0@hapi/joi-legacy-test npm:@hapi/joi@15.x.x@hapi/lab ^26.0.0@types/node ^20.17.47ajv ^8.18.0ajv-formats ^3.0.1typescript ^5.8.3

Used by

Popular packages that depend on joi.

Relationship graph

Dependencies (left) and dependents (right) of joi.

Frequently installed together

Release history

19 releases in the last two years, typically about 5 days apart.

Recent versions of joi
VersionPublishedSizeLicense
18.2.8latest7 days ago1.8 MBBSD-3-Clause
18.2.77 days ago1.8 MBBSD-3-Clause
17.13.77 days ago1.8 MBBSD-3-Clause
18.2.67 days ago1.8 MBBSD-3-Clause
17.13.621 days ago1.8 MBBSD-3-Clause
18.2.521 days ago1.8 MBBSD-3-Clause
17.13.521 days ago1.8 MBBSD-3-Clause
18.2.421 days ago1.8 MBBSD-3-Clause
18.2.32 months ago1.8 MBBSD-3-Clause
18.2.22 months ago1.8 MBBSD-3-Clause
17.13.42 months ago1.7 MBBSD-3-Clause
18.2.14 months ago570 KBBSD-3-Clause
18.2.04 months ago570 KBBSD-3-Clause
18.1.25 months ago571 KBBSD-3-Clause
18.1.15 months ago571 KBBSD-3-Clause

Overview

joi is an npm package that object schema validation. It has 3 known dependents in the graph. The latest version is 18.2.8, released under the BSD-3-Clause license.

Who should use it

Teams working in the npm ecosystem who need object schema validation and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (BSD-3-Clause).

Cons

  • Large dependency tree (16 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use joi?

Yes — joi scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 7 days ago. 19 releases in the last 2 years.

How do I install joi?

Run `npm install joi` to add joi to your npm project.

How many dependencies does joi have?

joi declares 16 direct dependencies and pulls in 7 packages in total once its runtime tree is resolved totalling about 2.1 MB on disk.

What license is joi released under?

joi is distributed under the BSD-3-Clause license. Its dependency tree also includes: BSD-3-Clause, MIT.

How popular is joi?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on joi.

Is joi still maintained?

The most recent release of joi (v18.2.8) was published 7 days ago.

Does joi run install scripts?

No. joi does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.