# Installation

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

```sh
npm i @tanstack/preact-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.

Requires Preact 10.5.2 or newer (10.7.2 or newer when using TypeScript `"moduleResolution": "bundler"`).

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

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

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