# Installation

Install the adapter for your framework with your preferred package manager:

```sh
npm i @tanstack/angular-hotkeys
```

Every framework adapter re-exports the core `@tanstack/hotkeys` package, so you don't need to install both.

> [!NOTE]
> Not using a framework? Install `@tanstack/hotkeys` directly for vanilla JavaScript or TypeScript.

The types need TypeScript 5.4 or later. `defineAppHotkeys` needs TypeScript 6.0 or later for a declaration with more than a `hotkey`: an earlier version reports that the declaration "is not assignable to type 'defineAppHotkeys needs TypeScript 6.0 or later'". An earlier version also can't tell a chord from a sequence in `alternates` written inline in a declaration, so it rejects `timeout` for that app hotkey.

Requires Angular 19 or newer (21 or newer for the integrated devtools panel).

Start with the [Angular Quick Start](./framework/angular/quick-start) and [Angular guides](./framework/angular/guides/hotkeys). To add the devtools panel, install:

```sh
npm i @tanstack/angular-devtools
npm i @tanstack/angular-hotkeys-devtools
```

See [Devtools](./devtools) for setup instructions.
