</>PackageGraphPackageGraph

joi

npmv18.2.3TypeScript

Object schema validation

22.5M
Weekly downloads
3
Dependents
16
Dependencies
93/100
Popularity

Overview

joi is an npm package that object schema validation. It is extremely widely used, with about 22.5M downloads per week and 3 known dependents in the graph. The latest version is 18.2.3, 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 battle-tested, widely-adopted 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

  • Large, well-established user base (22.5M weekly downloads).
  • 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.

Relationship graph

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

Dependencies

Runtime (7)

@hapi/address ^5.1.1@hapi/formula ^3.0.2@hapi/hoek ^11.0.7@hapi/pinpoint ^2.0.1@hapi/tlds ^1.1.1@hapi/topo ^6.0.2@standard-schema/spec ^1.1.0

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.

Alternatives to joi

@standard-schema/specnpm

A family of specs for interoperable TypeScript

0/wk4 dependentsMITTS
zodnpm

TypeScript-first schema declaration and validation library with static type inference

0/wk9 dependentsMITTS
@eslint/object-schemanpm

An object schema merger/validator

0/wk1 dependentsApache-2.0TS
valibotnpm

The modular and type safe schema library for validating structural data

0/wk4 dependentsMITTS
css-treenpm

A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations

97.6M/wk5 dependentsMIT
ip-addressnpm

A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

89.9M/wk2 dependentsMITTS
zod-to-json-schemanpm

Converts Zod schemas to Json Schemas

50.4M/wk1 dependentsISCTS
validate-npm-package-namenpm

Give me a string and I'll tell you if it's a valid npm package name

39.8M/wk1 dependentsISC
fast-json-stringifynpm

Stringify your JSON at max speed

11M/wk3 dependentsMITTS
json-schema-ref-resolvernpm

JSON schema reference resolver

9.5M/wk1 dependentsMITTS
@fastify/ajv-compilernpm

Build and manage the AJV instances for the fastify framework

9.5M/wk2 dependentsMITTS
@bufbuild/protobufnpm

Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.

0/wk1 dependents(Apache-2.0 AND BSD-3-Clause)TS

Frequently installed together

Version history

VersionPublishedLicense
18.2.3latest1 month agoBSD-3-Clause
18.2.21 month agoBSD-3-Clause
17.13.41 month agoBSD-3-Clause
18.2.12 months agoBSD-3-Clause
18.2.02 months agoBSD-3-Clause
18.1.23 months agoBSD-3-Clause
18.1.14 months agoBSD-3-Clause
18.1.04 months agoBSD-3-Clause
18.0.28 months agoBSD-3-Clause
18.0.111 months agoBSD-3-Clause
18.0.011 months agoBSD-3-Clause
17.13.32 years agoBSD-3-Clause
17.13.22 years agoBSD-3-Clause
17.13.12 years agoBSD-3-Clause
17.13.02 years agoBSD-3-Clause
17.12.32 years agoBSD-3-Clause
17.12.22 years agoBSD-3-Clause
17.12.12 years agoBSD-3-Clause
17.12.02 years agoBSD-3-Clause
17.11.12 years agoBSD-3-Clause

Maintainers

Keywords

Frequently asked questions

How do I install joi?

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

What license is joi released under?

joi is distributed under the BSD-3-Clause license.

How popular is joi?

joi has approximately 22,506,435 downloads per week and 3 known dependent packages.