Skip to content

Type-Safe keyboard shortcuts library with awesome devtools

License

Notifications You must be signed in to change notification settings

TanStack/hotkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
TanStack Hotkeys

TanStack Hotkeys

Note

TanStack Hotkeys is pre-alpha (prototyping phase). We are actively developing the library and are open to feedback and contributions.

Type-safe keyboard shortcuts for the web. Template-string bindings, parsed objects, a cross-platform Mod key, a singleton Hotkey Manager, and utilities for cheatsheet UIs—built to stay SSR-friendly.

  • Type-safe bindings — template strings (Mod+Shift+S, Escape) or parsed objects for full control
  • Flexible options — keydown/keyup, preventDefault, stopPropagation, conditional enabled, requireReset
  • Cross-platform Mod — maps to Cmd on macOS and Ctrl on Windows/Linux
  • Batteries included — validation + matching, sequences (Vim-style), key-state tracking, recorder UI helpers, React hooks, and devtools (in progress)

Note

You may know TanStack Hotkeys by our adapter names, too!

  • React Hotkeys
  • Solid Hotkeys – needs a contributor!
  • Angular Hotkeys – needs a contributor!
  • Svelte Hotkeys – needs a contributor!
  • Vue Hotkeys – needs a contributor!

Get Involved

Partners

CodeRabbit Cloudflare
Keys & you?

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.

LET'S CHAT

Explore the TanStack Ecosystem

… and more at TanStack.com »

About

Type-Safe keyboard shortcuts library with awesome devtools

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 6