Adding native-feeling haptics to Angular web apps with…
    Neura MarketNeura Market/Stable Diffusion
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityStable DiffusionStable Diffusion
    DeepSeekDeepSeekCoPilotCoPilotMidjourneyMidjourney
    View All Directories
    OverviewPromptsBlogVideosGuidesCoursesCommunityModelsLoRAsComfyUI WorkflowsTrending
    Stable DiffusionBlogAdding native-feeling haptics to Angular web apps with ng-haptics
    Back to Blog
    Adding native-feeling haptics to Angular web apps with ng-haptics
    angular

    Adding native-feeling haptics to Angular web apps with ng-haptics

    Nicolás Giacconi May 14, 2026
    0 views

    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

    cover_image: https://direct_url_to_image.jpg

    Use a ratio of 100:42 for best results.

    published_at: 2026-05-14 20:54 +0000


    Adding native-feeling haptics to Angular web apps with ng-haptics

    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.


    💡 Why this exists

    Web apps often feel “flat” compared to native apps.

    One missing piece is tactile feedback:

    • button presses
    • success/error feedback
    • interaction confirmation

    Native apps solve this with haptics. Web apps usually don’t.

    ng-haptics tries to bridge that gap in Angular.


    ⚙️ What it is

    A tiny Angular library that provides:

    • Standalone APIs
    • Declarative directives
    • SSR-safe design
    • Zero dependencies
    • Mobile-first testing

    🧪 Example usage

    <button ngHaptic="light">
      Click me
    </button>
    

    📱 Demo

    👉 https://xaconi.github.io/ng-haptics/
    👉 GitHub: https://github.com/Xaconi/ng-haptics
    👉 npm: https://www.npmjs.com/package/ng-haptics


    🎥 Demo video

    {% embed https://files.catbox.moe/9qanwb.mp4 %}


    🧠 Notes

    This is not a wrapper around Capacitor or native SDKs.

    It’s built entirely on top of native Web APIs like:

    • navigator.vibrate()
    • feature detection
    • fallback-safe design

    🚀 Final thoughts

    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 🙌

    Tags

    angularhapticsopensourcevibration

    Comments

    More Blog

    View all
    Context bankruptcy: The case for strategic forgetting for AI Agentsai

    Context bankruptcy: The case for strategic forgetting for AI Agents

    Most of us have seen a coding agent fail to complete a task we know it can do. We just don't...

    J
    James O'Reilly
    Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestrationgooglecloud

    Parallel Compliance Engine: Drive-to-Sheets Multi-Agent Orchestration

    When building Generative AI applications, developers often encounter a massive bottleneck: sequential...

    A
    Aryan Irani
    Is It Ethical to Post and Ask About Circuits on Dev.to?discuss

    Is It Ethical to Post and Ask About Circuits on Dev.to?

    I’ve been thinking about sharing some electronic circuit posts on Dev.to — small circuits, DIY...

    C
    codebunny20
    The One-Click Exporter: AI Studio Antigravity, Probed to Its Limitsagents

    The One-Click Exporter: AI Studio Antigravity, Probed to Its Limits

    What nobody tells you about exporting your multi-agent prototype to a local workspace. Every...

    L
    leslysandra
    Guarding the till while autonomous data agents do the diggingagenticarchitect

    Guarding the till while autonomous data agents do the digging

    Autonomous agents are genuinely good at answering messy business questions. Give one an LLM and a set...

    S
    Sireesha Pulipati
    Return on Attention: Why AI Code Reviews Are Wearing Us Outai

    Return on Attention: Why AI Code Reviews Are Wearing Us Out

    PR volume went up, ticket quality didn't, and the gap got filled with LLMs on both sides of the review: bots reviewing, bots replying, bots occasionally arguing with bots about priorities that only existed in a teammate's head. Our CEO named the actual problem, and it's bigger than code review.

    C
    christine

    Stay up to date

    Get the latest Stable Diffusion prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Stable Diffusion and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Stable Diffusion resource

    • Create a WHOIS API Interface for AI Agents with 8 Domain Management Operationsn8n · Free · Related topic
    • Document Q&A Chatbot with Gemini AI and Supabase Vector Search for Telegramn8n · Free · Related topic
    • Generate & Email Personalized Jokes with GPT-4 Mini and Gmailn8n · Free · Related topic
    • AI-Powered Cold Call Machine with LinkedIn, OpenAI & Sales Navigatorn8n · Free · Related topic
    Browse all workflows