
Adding native-feeling haptics to Angular web apps with ng-haptics I wanted Angular web...
title: Adding native-feeling haptics to Angular web apps with ng-haptics published: true description: tags: angular, haptics, oss, vibration
I wanted Angular web apps to feel a bit more “native” on mobile devices, especially when it comes to touch feedback.
So I built a small open-source library called ng-haptics.
It’s a lightweight Angular-first way to add haptic feedback using only native Web APIs.
Web apps often feel “flat” compared to native apps.
One missing piece is tactile feedback:
Native apps solve this with haptics. Web apps usually don’t.
ng-haptics tries to bridge that gap in Angular.
A tiny Angular library that provides:
<button ngHaptic="light">
Click me
</button>
👉 https://xaconi.github.io/ng-haptics/
👉 GitHub: https://github.com/Xaconi/ng-haptics
👉 npm: https://www.npmjs.com/package/ng-haptics
{% embed https://files.catbox.moe/9qanwb.mp4 %}
This is not a wrapper around Capacitor or native SDKs.
It’s built entirely on top of native Web APIs like:
This started as a weekend experiment, but it turned into a small Angular utility for improving UX in mobile web apps. Huge thanks to Lochie's amazing web-haptics lib, a great inspiration!
Would love feedback from other Angular developers 🙌
gemmaI ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...
communityHey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...
ai(yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...
aiMy laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...
githubactionsI Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...
aiI've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...
Workflows from the Neura Market marketplace related to this Perplexity resource