GitHunt
AA

aadeexyz/tactus

Add native-like haptic feedback to any web app.

Tactus 🌡

Give your web app a little tap of magicβ€”add native-style haptic feedback to every click.

πŸš€ Install

npm install tactus

Usage

import { triggerHaptic } from "tactus";

export default function BuyButton() {
    return <button onClick={() => triggerHaptic()}>Buy now</button>;
}

triggerHaptic(duration?) fires one haptic pulse.

  • No argument β†’ 100 ms by default
  • iPhone / iPad β†’ Safari’s crisp β€œtick” πŸ’₯
  • Other browsers β†’ falls back to the Vibration API πŸ“³

🌐 Browser support

Platform Supported Notes
iOS 12 + (Safari & web-views) βœ… Native (switch)
Android 5 + βœ… Vibrations API
Desktop 🚫 Not supported yet

πŸ“„ License

MIT Β© 2025 Aadee

Made with ❀️ by Aadee

Languages

TypeScript100.0%

Contributors

MIT License
Created June 16, 2025
Updated March 6, 2026
aadeexyz/tactus | GitHunt