# jaywcjlove/hotkeys-js

➷ A robust Javascript library for capturing keyboard input. It has no dependencies.

Repository: https://github.com/jaywcjlove/hotkeys-js
Canonical: https://ross.abutalabs.com/products/hotkeys-js
Homepage: https://jaywcjlove.github.io/hotkeys-js
Language: TypeScript
License: MIT
License Family: permissive
Topics: hotkeys, javascript, masterkey, keymaster, shortcutkey, keyboard, shortcuts, keypress, hotkey, shortcut, keyboard-shortcuts, browser
Last push: 2026-08-14T17:29:02+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 98, longevity 100
- inputs: {"age_days": 4125, "days_push": 19, "days_rel": 19, "gap_med": 5.5, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7124, forks 413 (observed 2026-08-28T04:09:56.072133+00:00)

## What it is
A dependency-free JavaScript micro-library for capturing keyboard input and defining keyboard shortcuts in the browser. It provides a simple API for binding and dispatching hotkey handlers.

## Use cases
- add keyboard shortcuts to a web app
- capture keypress combinations in javascript
- bind ctrl+s to save action
- handle hotkeys without dependencies
- define global keyboard shortcuts in browser

## When to choose
- you need lightweight, zero-dependency keyboard shortcut handling in the browser
- you want a simple API for binding key combinations

## When to avoid
- you need keyboard input capture outside the browser (e.g., OS-level global hotkeys)
- your framework already provides built-in keyboard event handling you prefer

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: keyboard-shortcuts, hotkeys, keypress, zero-dependency, micro-library, javascript

## Member repositories
- jaywcjlove/hotkeys-js (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.072133+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:04.943745+00:00, confidence not recorded.
  - readme: https://github.com/jaywcjlove/hotkeys-js (fetched 2026-08-28T04:09:56.072133+00:00, sha 81353e7c5b0c)
  - homepage: https://jaywcjlove.github.io/hotkeys-js (fetched 2026-08-29T08:35:54.642535+00:00, sha 663accb35660)
  - registry_npm: https://registry.npmjs.org/hotkeys-js (fetched 2026-08-29T08:35:54.645332+00:00, sha 469a499ca54e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
