Skip to content
JS
Package

selection-hook

The first open-source library for cross-application text selection monitoring and global input event hooks. Works with Node.js and Electron.

v2.1.1, 31 Aug 2026MITCommonJSTypes: BundledAccessibilityDOM and browser utilities
$ npm install selection-hook

Key numbers

As of 25 Sept 2026
Weekly downloads
8.5k
+580% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
24 days ago
v2.1.1
GitHub stars
110
24 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
103

Downloads

Last week 2026-09-15 to 2026-09-21
02.5k5k7.5k10kSept 2025Mar 2026Sept 2026High 9.7k (8 Sept 2026)Low 602 (4 Nov 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

8,456 downloads last week, 31,294 in the last month. The 12-month change of +580% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.1.1, 31 Aug 202624 days ago
First published
-
Last push to GitHub
3 Sept 202621 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
103
Dependents on npm
0

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.0.0
Runtimes
-
Unpacked size (npm)
3.1 MB
Dependencies (2)
node-addon-apinode-gyp-build
npm install selection-hook
  • jsDelivrhttps://cdn.jsdelivr.net/npm/selection-hook@2.1.1/
  • unpkghttps://unpkg.com/selection-hook@2.1.1/
  • esm.shhttps://esm.sh/selection-hook@2.1.1
PackageWeekly downloadsGzipLast releaseModuleComparison
focus-trap4.6m-3 months agoESM + CommonJS-
tinykeys232.1k-4 months agoESM + CommonJS-
@a11y/focus-trap16.5k-6 years agoESM + CommonJS-
react-focus-on162.8k-9 months agoESM + CommonJS-
focus-layers12.5k-5 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 8456 < 10000.