# RobertWHurst/KeyboardJS

A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts.

Repository: https://github.com/RobertWHurst/KeyboardJS
Canonical: https://ross.abutalabs.com/products/keyboardjs
Homepage: http://robertwhurst.github.io/KeyboardJS/
Language: JavaScript
License: MIT
License Family: permissive
Topics: keyboardjs, key-combos, keyboard, keyboard-shortcuts, keyboard-events, keyboard-hooks, keydown, javascript
Last push: 2023-01-19T09:07:23+00:00

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

## Adoption (not part of the score)
Stars 2103, forks 221 (observed 2026-08-28T04:06:13.769459+00:00)

## What it is
KeyboardJS is a JavaScript library for binding keyboard combos and shortcuts in the browser (also Node.js compatible) without dealing with raw key codes. It supports complex combo sequences, keydown/keyup handlers, scoped contexts for single-page apps, and custom keyboard locales.

## Use cases
- bind keyboard shortcuts in a web app
- handle key combos like ctrl+shift+s in javascript
- scope keyboard bindings to different parts of a single page app
- support non-US keyboard layouts for shortcuts
- detect key sequences like a then b then c
- prevent repeat firing when a key is held down

## When to choose
- you need flexible key combo binding with sequences and contexts in a browser app
- you need custom keyboard locale support
- you're maintaining an existing project already using KeyboardJS

## When to avoid
- starting a new project - the author recommends the successor library Keystrokes instead
- you need active development or frequent updates
- you need framework-specific hotkey handling with React/Vue integrations

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: keyboard-shortcuts, key-bindings, keyboard-combos, event-handling, hotkeys, nodejs, javascript

## Member repositories
- RobertWHurst/KeyboardJS (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.769459+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-30T02:54:13.654210+00:00, confidence not recorded.
  - readme: https://github.com/RobertWHurst/KeyboardJS (fetched 2026-08-28T04:06:13.769459+00:00, sha 8ad540f9a24c)
  - homepage: http://robertwhurst.github.io/KeyboardJS/ (fetched 2026-08-29T10:34:37.736559+00:00, sha 7fea7ad032e2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
