# jamiebuilds/tinykeys

A tiny (~650 B) & modern library for keybindings.

Repository: https://github.com/jamiebuilds/tinykeys
Canonical: https://ross.abutalabs.com/products/tinykeys
Homepage: https://jamiebuilds.github.io/tinykeys/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-05-26T06:08:18+00:00

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

## Adoption (not part of the score)
Stars 4100, forks 89 (observed 2026-08-28T04:08:35.528014+00:00)

## What it is
tinykeys is a tiny (~650 B) TypeScript library for binding keyboard shortcuts in the browser using a simple declarative syntax. It supports key sequences, modifier keys, and cross-platform modifier matching, and works with any framework or vanilla JS.

## Use cases
- add keyboard shortcuts to a web app
- bind hotkeys like Cmd+B in a React component
- detect key sequences like the Konami code
- handle Ctrl+1..9 shortcuts across Windows and Mac
- replace Mousetrap with a modern tiny keybinding library

## When to choose
- you need a minimal, dependency-free keyboard shortcut library for the browser
- you want framework-agnostic keybindings usable in React, Vue, Angular, or vanilla JS
- bundle size matters and you only need keybinding handling

## When to avoid
- you need global OS-level hotkeys outside the browser
- you need complex shortcut management UI or scope-based shortcut systems
- you're building a non-web (Node, mobile native) application

## Facets
- artifact type: library
- maturity: active
- function: ui-components, developer-tools, accessibility
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: keybindings, keyboard-shortcuts, hotkeys, tiny-library, event-handling, zero-dependency, javascript, typescript, nodejs

## Member repositories
- jamiebuilds/tinykeys (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:35.528014+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-29T18:23:17.154124+00:00, confidence not recorded.
  - readme: https://github.com/jamiebuilds/tinykeys (fetched 2026-08-28T04:08:35.528014+00:00, sha c085d277ba58)
  - homepage: https://jamiebuilds.github.io/tinykeys/ (fetched 2026-08-29T09:15:05.393785+00:00, sha f2ba83c9babc)
  - registry_npm: https://registry.npmjs.org/tinykeys (fetched 2026-08-29T09:15:05.402547+00:00, sha a5de6e1924b4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
