
Security News
GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.
nuxt-haptic
Advanced tools
Nuxt 4 module for mobile haptics, powered by web-haptics.
It wraps the browser Vibration API with a Nuxt-first DX:
useNuxtHaptics() auto-importv-nuxt-haptic directive for declarative interactions$nuxtHaptics injectionnpx nuxt module add nuxt-haptic
Or install manually:
bun add nuxt-haptic
export default defineNuxtConfig({
modules: ['nuxt-haptic'],
})
<script setup lang="ts">
const { success } = useNuxtHaptics()
</script>
<template>
<button v-nuxt-haptic="'selection'" type="button">
Tap
</button>
<button type="button" @click="success()">
Save
</button>
</template>
export default defineNuxtConfig({
modules: ['nuxt-haptic'],
nuxtHaptic: {
defaultPreset: 'selection',
enabled: true,
persistPreference: true,
preferenceStorageKey: 'nuxt-haptic:enabled',
touchOnly: true,
debug: false,
showSwitch: false,
},
})
useNuxtHaptics()Returns:
trigger(input?, options?)selection()light()success()warning()error()cancel()enabledisSupportedsetEnabled(value)toggleEnabled()configIf you need types in userland:
import type { HapticInput, TriggerOptions } from 'nuxt-haptic'
v-nuxt-hapticString shorthand:
<a v-nuxt-haptic="'selection'" href="/contact/">Contact</a>
Object form:
<button
v-nuxt-haptic="{ input: 'light', on: 'pointerdown', intensity: 0.7 }"
type="button"
>
Press
</button>
Directive fields:
input: any web-haptics inputon: click, pointerdown, or pointerupintensity: optional intensity overridetouchOnly: override module default per elementdisabled: disable haptics for that nodeweb-haptics falls back cleanly and can optionally emit debug audio.# Install dependencies
bun install
# Prepare stubs and types
bun run dev:prepare
# Run the playground
bun run dev
# Run tests
bun run test
bun run test:types
# Build the package
bun run prepack
web-haptics by Lochie Axon for the underlying haptics runtime.FAQs
Nuxt 4 module for mobile haptics powered by web-haptics.
The npm package nuxt-haptic receives a total of 9 weekly downloads. As such, nuxt-haptic popularity was classified as not popular.
We found that nuxt-haptic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.