# @hapi/hapi

> HTTP Server framework

Latest version **21.4.10** (published 2026-07-22) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @hapi/hapi
pnpm add @hapi/hapi
yarn add @hapi/hapi
bun add @hapi/hapi
```

## 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 | 21.4.10 |
| Published | 2026-07-22 |
| First published | 2019-04-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.15.0 |
| Dependencies | 18 |
| Unpacked size | 410 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14791 |
| Maintainers | nlf, devinivy, wyatt, lloydbenson, cjihrig, marsup |
| Keywords | framework, http, api, web |

## Links

- npm: https://www.npmjs.com/package/@hapi/hapi
- Repository: https://github.com/hapijs/hapi
- Homepage: https://hapi.dev
- Issues: https://github.com/hapijs/hapi/issues
- npm.io page: https://npm.io/package/@hapi/hapi

## Dependencies (18)

- [@hapi/ammo](https://npm.io/package/@hapi/ammo.md) ^6.0.1
- [@hapi/boom](https://npm.io/package/@hapi/boom.md) ^10.0.1
- [@hapi/call](https://npm.io/package/@hapi/call.md) ^9.0.1
- [@hapi/hoek](https://npm.io/package/@hapi/hoek.md) ^11.0.7
- [@hapi/shot](https://npm.io/package/@hapi/shot.md) ^6.0.2
- [@hapi/topo](https://npm.io/package/@hapi/topo.md) ^6.0.2
- [@hapi/heavy](https://npm.io/package/@hapi/heavy.md) ^8.0.1
- [@hapi/mimos](https://npm.io/package/@hapi/mimos.md) ^7.0.1
- [@hapi/accept](https://npm.io/package/@hapi/accept.md) ^6.0.3
- [@hapi/bounce](https://npm.io/package/@hapi/bounce.md) ^3.0.2
- [@hapi/catbox](https://npm.io/package/@hapi/catbox.md) ^12.1.1
- [@hapi/podium](https://npm.io/package/@hapi/podium.md) ^5.0.2
- [@hapi/somever](https://npm.io/package/@hapi/somever.md) ^4.1.1
- [@hapi/subtext](https://npm.io/package/@hapi/subtext.md) ^8.1.3
- [@hapi/teamwork](https://npm.io/package/@hapi/teamwork.md) ^6.0.1
- [@hapi/validate](https://npm.io/package/@hapi/validate.md) ^2.0.1
- [@hapi/statehood](https://npm.io/package/@hapi/statehood.md) ^8.2.1
- [@hapi/catbox-memory](https://npm.io/package/@hapi/catbox-memory.md) ^6.0.2

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 21.4.10 (latest) — 2026-07-22
- 20.3.0 (v20-latest) — 2023-02-14
- 21.3.0 (next) — 2023-02-14
- 18.4.1 (lts) — 2020-02-13
- 21.4.9 — 2026-05-06
- 21.4.8 — 2026-04-02
- 21.4.7 — 2026-03-06
- 21.4.6 — 2026-02-19
- 21.4.5 — 2026-02-18
- 21.4.4 — 2025-11-06
- 21.4.3 — 2025-08-13
- 21.4.2 — 2025-08-04
- 21.4.1 — 2025-08-04
- 21.4.0 — 2025-03-05
- 21.3.12 — 2024-10-24
- … 46 more at https://npm.io/package/@hapi/hapi/versions

## README

<img src="https://raw.githubusercontent.com/hapijs/assets/master/images/hapi.png" width="400px" />

# @hapi/hapi

#### The Simple, Secure Framework Developers Trust

Build powerful, scalable applications, with minimal overhead and full out-of-the-box functionality - your code, your way.

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

## Useful resources

- [Documentation and API](https://hapi.dev/)
- [Version status](https://hapi.dev/resources/status/#hapi) (builds, dependencies, node versions, licenses, eol)
- [Changelog](https://hapi.dev/resources/changelog/)
- [Project policies](https://hapi.dev/policies/)
- [Support](https://hapi.dev/support/)

## Technical Steering Committee (TSC) Members

 - Devin Ivy ([@devinivy](https://github.com/devinivy))
 - Lloyd Benson ([@lloydbenson](https://github.com/lloydbenson))
 - Nathan LaFreniere ([@nlf](https://github.com/nlf))
 - Wyatt Lyon Preul ([@geek](https://github.com/geek))
 - Nicolas Morel ([@marsup](https://github.com/marsup))
 - Jonathan Samines ([@jonathansamines](https://github.com/jonathansamines))

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