# @hapi/inert

> Static file and directory handlers plugin for hapi.js

Latest version **7.1.2** (published 2026-06-17) · BSD-3-Clause license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 7.1.2 |
| Published | 2026-06-17 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 32.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 236 |
| Maintainers | nlf, devinivy, wyatt, lloydbenson, cjihrig, marsup |
| Keywords | file, directory, handler, hapi, plugin |

## Links

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

## Dependencies (6)

- [lru-cache](https://npm.io/package/lru-cache.md) ^7.14.1
- [@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/hoek](https://npm.io/package/@hapi/hoek.md) ^11.0.2
- [@hapi/bounce](https://npm.io/package/@hapi/bounce.md) ^3.0.1
- [@hapi/validate](https://npm.io/package/@hapi/validate.md) ^2.0.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 7.1.2 (latest) — 2026-06-17
- 7.1.1 — 2026-05-20
- 7.1.0 — 2023-03-13
- 7.0.1 — 2023-02-11
- 7.0.0 — 2022-07-17
- 6.0.5 — 2022-01-16
- 6.0.4 — 2021-08-30
- 6.0.3 — 2020-09-26
- 6.0.2 — 2020-08-10
- 6.0.1 — 2020-01-12
- 6.0.0 — 2020-01-05
- 5.2.2 — 2019-09-12
- 5.2.1 — 2019-06-26
- 5.2.0 — 2019-04-10

## README

<a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a>

# @hapi/inert

#### Static file and directory handlers for hapi.js.

**inert** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together.

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

## Useful resources

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

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