Ross ROSS = Recommend OSS · open-source software intelligence for agents

ccampbell/mousetrap

Simple library for handling keyboard shortcuts in Javascript observed · 2026-08-28

github.com/ccampbell/mousetrap · homepage · JavaScript · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5172
  • days_rel: n/a
  • days_push: 1267
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

11777 stars · 954 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Mousetrap is a tiny (~2kb gzipped), dependency-free JavaScript library for binding keyboard shortcuts in the browser. It supports single keys, modifier combinations, and Gmail-style key sequences across keypress, keydown, and keyup events.

Use cases

  • add keyboard shortcuts to a web app
  • bind ctrl+k style hotkeys in javascript
  • implement gmail-like key sequences
  • capture keyboard combinations in the browser
  • handle special keys like ? and esc in javascript
  • support international keyboard layouts for shortcuts

When to choose

  • you need a tiny, framework-agnostic shortcut library with no dependencies
  • you want key sequences and combinations with international keyboard support
  • you need broad legacy browser compatibility including IE6+

When to avoid

  • you need shortcuts in non-browser environments like Electron menus or OS-level global hotkeys
  • you want a library with active ongoing development and modern maintenance
  • you need mouse or pointer event handling alongside keyboard events

Facets

library · maturity maintenance

ui-components developer-tools web-development frontend developer-tools browser keyboard-shortcuts hotkeys keybindings event-handling zero-dependency javascript nodejs

3 sources

Member repositories

RepositoryRoleHealth v2
ccampbell/mousetrapmain23

For agents

markdown · JSON · MCP: product_card(name="ccampbell/mousetrap")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem