Skip to content

Commit a833803

Browse files
committed
chore: rename project and packages to tanstack hotkeys
1 parent dbc6dc1 commit a833803

184 files changed

Lines changed: 972 additions & 966 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/conflict-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@tanstack/keys': minor
2+
'@tanstack/hotkeys': minor
33
---
44

55
Add hotkey conflict detection with configurable behavior

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ body:
66
value: |
77
Thank you for reporting an issue :pray:.
88
9-
This issue tracker is for reporting reproducible bugs or regression's found in [keys](https://github.com/tanstack/keys)
9+
This issue tracker is for reporting reproducible bugs or regression's found in [keys](https://github.com/tanstack/hotkeys)
1010
If you have a question about how to achieve or implement something and are struggling, please post a question
11-
inside of keys's [Discussions tab](https://github.com/tanstack/keys/discussions) instead of filing an issue.
11+
inside of keys's [Discussions tab](https://github.com/tanstack/hotkeys/discussions) instead of filing an issue.
1212
1313
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
14-
- TanStack Keys's [Discussions tab](https://github.com/tanstack/keys/discussions)
15-
- TanStack Keys's [Open Issues](https://github.com/tanstack/keys/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
16-
- TanStack Keys's [Closed Issues](https://github.com/tanstack/keys/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
14+
- TanStack Hotkeys's [Discussions tab](https://github.com/tanstack/hotkeys/discussions)
15+
- TanStack Hotkeys's [Open Issues](https://github.com/tanstack/hotkeys/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
16+
- TanStack Hotkeys's [Closed Issues](https://github.com/tanstack/hotkeys/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
1717
1818
The more information you fill in, the better the community can help you.
1919
2020
- type: input
21-
id: tanstack-keys-version
21+
id: tanstack-hotkeys-version
2222
attributes:
23-
label: TanStack Keys version
23+
label: TanStack Hotkeys version
2424
description: |
25-
- Please let us know the exact version of the TanStack Keys framework adapter that you were using when the issue occurred. If you are using an older version, check to see if your bug has already been solved in the latest version. Please don't just put in "latest", as this is subject to change.
26-
- The latest "keys" version is <img alt="" src="https://badgen.net/npm/v/@tanstack/react-keys" />
25+
- Please let us know the exact version of the TanStack Hotkeys framework adapter that you were using when the issue occurred. If you are using an older version, check to see if your bug has already been solved in the latest version. Please don't just put in "latest", as this is subject to change.
26+
- The latest "keys" version is <img alt="" src="https://badgen.net/npm/v/@tanstack/react-hotkeys" />
2727
placeholder: |
2828
e.g. v0.0.1
2929
validations:
@@ -57,7 +57,7 @@ body:
5757
- Your bug may get fixed much faster if we can run your code and it doesn't have dependencies other than React.
5858
- To create a shareable code example for web, you can use CodeSandbox (https://codesandbox.io/s/new) or Stackblitz (https://stackblitz.com/).
5959
- Please make sure the example is complete and runnable without prior dependencies and free of unnecessary abstractions
60-
- Feel free to fork any of the official CodeSandbox examples to reproduce your issue: https://github.com/tanstack/keys/tree/main/examples/
60+
- Feel free to fork any of the official CodeSandbox examples to reproduce your issue: https://github.com/tanstack/hotkeys/tree/main/examples/
6161
- For React Native, you can use: https://snack.expo.dev/
6262
- For TypeScript related issues only, a TypeScript Playground link might be sufficient: https://www.typescriptlang.org/play
6363
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
- name: Build Packages
4848
run: pnpm run build:all
4949
- name: Publish Previews
50-
run: pnpx pkg-pr-new publish --pnpm './packages/*' --keys './examples/*/*'
50+
run: pnpx pkg-pr-new publish --pnpm './packages/*' --hotkeys './examples/*/*'

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ id: contributing
77

88
## Questions
99

10-
If you have questions about implementation details, help or support, then please use our dedicated community forum at [Github Discussions](https://github.com/tanstack/keys/discussions) **PLEASE NOTE:** If you choose to instead open an issue for your question, your issue will be immediately closed and redirected to the forum.
10+
If you have questions about implementation details, help or support, then please use our dedicated community forum at [Github Discussions](https://github.com/tanstack/hotkeys/discussions) **PLEASE NOTE:** If you choose to instead open an issue for your question, your issue will be immediately closed and redirected to the forum.
1111

1212
## Reporting Issues
1313

14-
If you have found what you think is a bug, please [file an issue](https://github.com/tanstack/keys/issues/new). **PLEASE NOTE:** Issues that are identified as implementation questions or non-issues will be immediately closed and redirected to [Github Discussions](https://github.com/tanstack/keys/discussions)
14+
If you have found what you think is a bug, please [file an issue](https://github.com/tanstack/hotkeys/issues/new). **PLEASE NOTE:** Issues that are identified as implementation questions or non-issues will be immediately closed and redirected to [Github Discussions](https://github.com/tanstack/hotkeys/discussions)
1515

1616
## Suggesting new features
1717

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Tanner Linsley
3+
Copyright (c) 2026 Tanner Linsley
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<br />
66

77
<div align="center">
8-
<a href="https://www.npmjs.com/package/@tanstack/keys" target="\_parent">
9-
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/keys.svg" alt="npm downloads" />
8+
<a href="https://www.npmjs.com/package/@tanstack/hotkeys" target="\_parent">
9+
<img alt="" src="https://img.shields.io/npm/dm/@tanstack/hotkeys.svg" alt="npm downloads" />
1010
</a>
11-
<a href="https://github.com/TanStack/keys" target="\_parent">
12-
<img alt="" src="https://img.shields.io/github/stars/TanStack/keys.svg?style=social&label=Star" alt="GitHub stars" />
11+
<a href="https://github.com/TanStack/hotkeys" target="\_parent">
12+
<img alt="" src="https://img.shields.io/github/stars/TanStack/hotkeys.svg?style=social&label=Star" alt="GitHub stars" />
1313
</a>
14-
<a href="https://bundlephobia.com/result?p=@tanstack/react-keys@latest" target="\_parent">
15-
<img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-keys@latest" alt="Bundle size" />
14+
<a href="https://bundlephobia.com/result?p=@tanstack/react-hotkeys@latest" target="\_parent">
15+
<img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-hotkeys@latest" alt="Bundle size" />
1616
</a>
1717
</div>
1818

@@ -21,7 +21,7 @@
2121
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
2222
</a>
2323
<a href="#badge">
24-
<img src="https://img.shields.io/github/v/release/tanstack/keys" alt="Release"/>
24+
<img src="https://img.shields.io/github/v/release/tanstack/hotkeys" alt="Release"/>
2525
</a>
2626
<a href="https://twitter.com/tan_stack">
2727
<img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/>
@@ -34,12 +34,12 @@
3434

3535
</div>
3636

37-
# TanStack Keys
37+
# TanStack Hotkeys
3838

3939
Type-safe keyboard shortcuts for the web. Template strings, parsed objects, cross-platform `Mod`, a singleton Hotkey Manager, and utilities for cheatsheet UIs. Built to stay SSR-friendly.
4040

4141
> [!NOTE]
42-
> TanStack Keys is pre-alpha (prototyping phase). We are actively developing the library and are open to feedback and contributions.
42+
> TanStack Hotkeys is pre-alpha (prototyping phase). We are actively developing the library and are open to feedback and contributions.
4343
4444
## Features
4545

@@ -78,30 +78,30 @@ Type-safe keyboard shortcuts for the web. Template strings, parsed objects, cros
7878
- `useHotkeyRecorder` – record keyboard shortcuts interactively with live preview
7979
- **Devtools**
8080
- Devtools are a core focus: visibility into all registered hotkeys, scopes, and options
81-
- `@tanstack/keys-devtools` and `@tanstack/react-keys-devtools` (in active development)
81+
- `@tanstack/hotkeys-devtools` and `@tanstack/react-hotkeys-devtools` (in active development)
8282
- **Planned**
8383
- Scoping hotkeys to a DOM element or React ref
8484
- Warn/error on conflicting shortcuts (TBD)
8585
- Ignore hotkeys when certain inputs are focused (e.g. `input`, `textarea`)
8686
- Focus traps and tab-order utilities
8787

88-
### <a href="https://tanstack.com/keys">Read the docs →</a>
88+
### <a href="https://tanstack.com/hotkeys">Read the docs →</a>
8989

9090
<br />
9191

9292
> [!NOTE]
93-
> You may know **TanStack Keys** by our adapter names, too!
93+
> You may know **TanStack Hotkeys** by our adapter names, too!
9494
>
95-
> - [**React Keys**](https://tanstack.com/keys/latest/docs/framework/react/react-keys)
96-
> - Solid Keys – needs a contributor!
97-
> - Angular Keys – needs a contributor!
98-
> - Svelte Keys – needs a contributor!
99-
> - Vue Keys – needs a contributor!
95+
> - [**React Hotkeys**](https://tanstack.com/hotkeys/latest/docs/framework/react/react-hotkeys)
96+
> - Solid Hotkeys – needs a contributor!
97+
> - Angular Hotkeys – needs a contributor!
98+
> - Svelte Hotkeys – needs a contributor!
99+
> - Vue Hotkeys – needs a contributor!
100100
101101
## Quick Example
102102

103103
```tsx
104-
import { useHotkey, formatForDisplay } from '@tanstack/react-keys'
104+
import { useHotkey, formatForDisplay } from '@tanstack/react-hotkeys'
105105

106106
function Editor() {
107107
useHotkey(
@@ -124,15 +124,15 @@ function Editor() {
124124

125125
## Packages
126126

127-
- **`@tanstack/keys`** – Core: parse, format, match, validate, manager, sequence, key-state
128-
- **`@tanstack/react-keys`** – React: `useHotkey`, `useHotkeySequence`, `useHeldKeys`, `useKeyHold`, `useHotkeyRecorder`
129-
- **`@tanstack/keys-devtools`** – Base devtools (in development)
130-
- **`@tanstack/react-keys-devtools`** – React devtools (in development)
127+
- **`@tanstack/hotkeys`** – Core: parse, format, match, validate, manager, sequence, key-state
128+
- **`@tanstack/react-hotkeys`** – React: `useHotkey`, `useHotkeySequence`, `useHeldKeys`, `useKeyHold`, `useHotkeyRecorder`
129+
- **`@tanstack/hotkeys-devtools`** – Base devtools (in development)
130+
- **`@tanstack/react-hotkeys-devtools`** – React devtools (in development)
131131

132132
## Get Involved
133133

134134
- We welcome issues and pull requests!
135-
- Participate in [GitHub discussions](https://github.com/TanStack/keys/discussions)
135+
- Participate in [GitHub discussions](https://github.com/TanStack/hotkeys/discussions)
136136
- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
137137
- See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
138138

@@ -164,9 +164,9 @@ function Editor() {
164164
<div align="center">
165165
<img src="https://tanstack.com/assets/partner_logo.svg" alt="Keys & you?" height="65">
166166
<p>
167-
We're looking for TanStack Keys Partners to join our mission! Partner with us to push the boundaries of TanStack Keys and build amazing things together.
167+
We're looking for TanStack Hotkeys Partners to join our mission! Partner with us to push the boundaries of TanStack Hotkeys and build amazing things together.
168168
</p>
169-
<a href="mailto:partners@tanstack.com?subject=TanStack Keys Partnership"><b>LET'S CHAT</b></a>
169+
<a href="mailto:partners@tanstack.com?subject=TanStack Hotkeys Partnership"><b>LET'S CHAT</b></a>
170170
</div>
171171

172172
</div>
@@ -177,7 +177,7 @@ We're looking for TanStack Keys Partners to join our mission! Partner with us to
177177
- <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
178178
- <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
179179
- <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
180-
- <a href="https://github.com/tanstack/keys"><b>TanStack Keys</b></a> – Type‑safe keyboard shortcuts
180+
- <a href="https://github.com/tanstack/hotkeys"><b>TanStack Hotkeys</b></a> – Type‑safe keyboard shortcuts
181181
- <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
182182
- <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
183183
- <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state

docs/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"docSearch": {
44
"appId": "",
55
"apiKey": "",
6-
"indexName": "tanstack-keys"
6+
"indexName": "tanstack-hotkeys"
77
},
88
"sections": [
99
{

docs/framework/react/adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The React adapter provides hooks for using Keys in React applications.
77
The `useTemplate` hook connects a Keys instance to React's reactivity system.
88

99
```tsx
10-
import { useTemplate } from '@tanstack/react-keys'
10+
import { useTemplate } from '@tanstack/react-hotkeys'
1111

1212
function MyComponent() {
1313
const keys = React.useMemo(() => createTemplate(), [])

docs/framework/react/reference/functions/useHeldKeyCodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: useHeldKeyCodes
99
function useHeldKeyCodes(): Record<string, string>;
1010
```
1111

12-
Defined in: [useHeldKeyCodes.ts:30](https://github.com/TanStack/keys/blob/main/packages/react-keys/src/useHeldKeyCodes.ts#L30)
12+
Defined in: [useHeldKeyCodes.ts:30](https://github.com/TanStack/keys/blob/main/packages/react-hotkeys/src/useHeldKeyCodes.ts#L30)
1313

1414
React hook that returns a map of currently held key names to their physical `event.code` values.
1515

docs/framework/react/reference/functions/useHeldKeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: useHeldKeys
99
function useHeldKeys(): string[];
1010
```
1111

12-
Defined in: [useHeldKeys.ts:26](https://github.com/TanStack/keys/blob/main/packages/react-keys/src/useHeldKeys.ts#L26)
12+
Defined in: [useHeldKeys.ts:26](https://github.com/TanStack/keys/blob/main/packages/react-hotkeys/src/useHeldKeys.ts#L26)
1313

1414
React hook that returns an array of currently held keyboard keys.
1515

0 commit comments

Comments
 (0)