# joi

> Object schema validation

Latest version **18.2.9** (published 2026-09-11) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install joi
pnpm add joi
yarn add joi
bun add joi
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 18.2.9 |
| Published | 2026-09-11 |
| First published | 2012-09-16 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 20 |
| Dependencies | 7 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21174 |
| Maintainers | marsup, nlf, nargonath, devinivy, wyatt, hueniverse |
| Keywords | schema, validation |

## Links

- npm: https://www.npmjs.com/package/joi
- Repository: https://github.com/hapijs/joi
- Homepage: https://github.com/hapijs/joi#readme
- Issues: https://github.com/hapijs/joi/issues
- npm.io page: https://npm.io/package/joi

## Dependencies (7)

- [@hapi/hoek](https://npm.io/package/@hapi/hoek.md) ^11.0.7
- [@hapi/tlds](https://npm.io/package/@hapi/tlds.md) ^1.1.1
- [@hapi/topo](https://npm.io/package/@hapi/topo.md) ^6.0.2
- [@hapi/address](https://npm.io/package/@hapi/address.md) ^5.1.1
- [@hapi/formula](https://npm.io/package/@hapi/formula.md) ^3.0.2
- [@hapi/pinpoint](https://npm.io/package/@hapi/pinpoint.md) ^2.0.1
- [@standard-schema/spec](https://npm.io/package/@standard-schema/spec.md) ^1.1.0

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 18.2.9 (latest) — 2026-09-11
- 17.13.8 (latest-17) — 2026-09-11
- 12.1.1 (v12-legacy) — 2024-01-01
- 9.0.0-9 (9-beta) — 2016-06-27
- 6.10.1 (node-0.x) — 2015-11-26
- 18.2.8 — 2026-09-02
- 18.2.7 — 2026-09-02
- 17.13.7 — 2026-09-02
- 18.2.6 — 2026-09-02
- 17.13.6 — 2026-08-19
- 18.2.5 — 2026-08-19
- 17.13.5 — 2026-08-19
- 18.2.4 — 2026-08-19
- 18.2.3 — 2026-06-17
- 18.2.2 — 2026-06-17
- … 244 more at https://npm.io/package/joi/versions

## README

# joi

#### The most powerful schema description language and data validator for JavaScript.

## Installation
`npm install joi`

### Visit the [joi.dev](https://joi.dev) Developer Portal for tutorials, documentation, and support

## Useful resources

- [Documentation and API](https://joi.dev/api/)
- [Versions status](https://joi.dev/resources/status/#joi)
- [Changelog](https://joi.dev/resources/changelog/)
- [Project policies](https://joi.dev/policies/)

---
_Source: https://npm.io/package/joi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
