Is lab still maintained?
No — lab stopped being maintained around February 2019. The same project continues under the name @hapi/lab.
- Status
- No longer maintained
- Last maintained
- February 2019
- Use instead
@hapi/lab— on npm- Succession
- Renamed package
- Drop-in
- yes — swap the import
- Confidence
- high
What should I use instead of lab?
The same project continues under the name @hapi/lab. @hapi/lab is close enough to a drop-in replacement that most projects only change the dependency and the import.
How to migrate from lab to @hapi/lab
Change the dependency to @hapi/lab and update require('lab') to require('@hapi/lab'); the assertion companion code moved to @hapi/code at the same time.
Why lab is on this list
hapi moved its module family under the @hapi scope in 2019, and the unscoped lab package carries an npm notice saying it has moved to @hapi/lab and is no longer maintained. The last unscoped release was 18.0.2 in February 2019. The hapijs/lab repository README is now titled @hapi/lab, so the test runner itself continued without interruption under the new name.
The succession is settled: primary sources agree and the ecosystem has already moved.
lab alternatives
The dataset lists no second option: @hapi/lab is where the ecosystem went, and nothing else has meaningful adoption.
Check your own project for lab
npx dead-deps --all --min-state unmaintained
Run that in the directory holding your lockfile. If lab is anywhere in your tree — a direct dependency or buried under something else — it appears in the report with this verdict, this successor and the same evidence links, alongside anything else that has stopped moving. Nothing is uploaded; the scan reads your lockfile locally and queries public registry metadata.
Exit code 1 means something was flagged, which makes npx dead-deps --min-state deprecated usable as a CI gate. See how verdicts are produced.
Evidence
Every claim on this page traces to a primary source. Check them:
- npm deprecation notice on lab ("now available at @hapi/lab")npmjs.com
- hapijs/lab repository, README now titled @hapi/labgithub.com
Packages related to lab
- hapiRenamed package: @hapi/hapi · unmaintained since February 2019
- react-testing-libraryRenamed package: @testing-library/react · unmaintained since May 2019
- wreckRenamed package: @hapi/wreck · unmaintained since March 2019
- @hapi/joiRenamed package: joi · unmaintained since March 2020
- @material-ui/coreRenamed package: @mui/material · unmaintained since September 2021
See the full index of covered packages, or read the methodology for how a verdict is reached and why a quiet package is not a dead one.