Feel the Web Come to Life

Bring mobile-like tactile experiences to your web applications with seamless haptic and audio feedback

~6KB
Tiny Bundle Size
0
Dependencies
100%
TypeScript

Why Developers Love Superhaptic

Everything you need to add delightful haptic feedback to your web apps

Mobile-First

Vibration patterns optimized for mobile devices, mimicking iOS and Android haptics perfectly

Audio Fallback

Automatic audio feedback on desktop browsers where vibration isn't available

Instant Setup

Simple API with preset patterns - get started in seconds, not hours

Ultra Lightweight

Zero dependencies, ~6KB bundle size - no bloat, just pure performance

TypeScript Ready

Full type definitions included for the best developer experience

Universal Support

Works with npm, pnpm, yarn, bun - all major browsers supported

How It Works

Three simple steps to add haptic feedback to your app

1

Install

Add superhaptic to your project using your favorite package manager

2

Import

Import the library into your JavaScript or TypeScript file

3

Use

Call superhaptic methods to add feedback to user interactions

Installation

npm install superhaptic
pnpm add superhaptic
yarn add superhaptic
bun add superhaptic
import superhaptic from 'superhaptic';

// Use preset patterns
superhaptic.preset('success');  // ✓ Vibrates or plays sound

// Custom pattern
superhaptic.vibrate(50);        // Single 50ms vibration

// Control
superhaptic.disable();          // Turn off
superhaptic.enable();           // Turn on

What Developers Say

Join thousands of developers building better experiences

"Superhaptic transformed our mobile web experience. Users love the tactile feedback - it feels native!"

S
Sarah Chen
Lead Developer @ TechCo

"The API is so simple yet powerful. Added haptics to our entire app in under an hour. Game changer!"

M
Marcus Johnson
Frontend Engineer @ StartupXYZ

"Finally, a haptic library that just works. Zero config, TypeScript support, and it's tiny. Perfect!"

A
Aisha Patel
Full Stack Developer

Try It Live

Click the buttons below to experience superhaptic in action

Button Feedback
button.addEventListener('click', () => {
  superhaptic.preset('light');
  // Handle click...
});
Form Validation
if (isValid) {
  superhaptic.preset('success');
  submitForm();
} else {
  superhaptic.preset('error');
  showErrors();
}
Toggle Switch
toggle.addEventListener('change', (e) => {
  const intensity = e.target.checked ? 20 : 10;
  superhaptic.vibrate(intensity);
});
Notifications
function showNotification() {
  superhaptic.preset('notification');
  toast.show('New message!');
}
Custom Patterns
// [vibrate, pause, vibrate, pause, ...]
superhaptic.vibrate([50, 100, 50, 100, 50]);

// Complex rhythm
superhaptic.vibrate([10, 50, 20, 50, 30]);

Ready to Feel the Difference?

Start adding delightful haptic feedback to your web applications today

Get Started for Free