Skip to content
JS
Package

body-scroll-lock

Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element (eg. modal/lightbox/flyouts/nav-menus)

v4.0.0-beta.0, 23 Jun 2021MIT-Types: -DOM and browser utilitiesReact
$ npm install body-scroll-lock

Key numbers

As of 25 Sept 2026
Weekly downloads
1.3m
+54% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v4.0.0-beta.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5m2mSept 2025Mar 2026Sept 2026High 1.9m (25 Aug 2026)Low 595.7k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,324,323 downloads last week, 6,613,406 in the last month. The 12-month change of +54% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
063 in total
Latest version
4.0.0-beta.0, 23 Jun 20215 years ago
First published
19 Jan 2018
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
821

Major versions

  1. v3 first release 3.0.0, 18 Mar 2020
  2. v2 first release 2.0.0, 19 Jan 2018
  3. v1 first release 1.0.1, 19 Jan 2018

Recent releases

VersionPublished
3.1.515 Sept 2020
3.1.415 Sept 2020
3.1.331 Aug 2020
3.0.32 Jun 2020
3.0.226 Apr 2020
3.0.118 Mar 2020
3.0.018 Mar 2020
2.7.118 Mar 2020
2.7.016 Mar 2020
2.6.413 Jul 2019
2.6.327 Jun 2019
2.6.227 Jun 2019
2.6.124 Nov 2018
2.6.021 Nov 2018
Module format
-Not determined from package.json
TypeScript types
-
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install body-scroll-lock

CDN

jsDelivr: 20.2m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/body-scroll-lock@4.0.0-beta.0/
  • unpkghttps://unpkg.com/body-scroll-lock@4.0.0-beta.0/
  • esm.shhttps://esm.sh/body-scroll-lock@4.0.0-beta.0
PackageWeekly downloadsGzipLast releaseModuleComparison
tua-body-scroll-lock143.5k-8 months agoESM + CommonJS-
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.