Pressure.js
JavaScript library that handles Force Touch, 3D Touch, and pointer pressure across devices with a single API.
| What is it | JavaScript library that handles Force Touch, 3D Touch, and pointer pressure across devices with a single API. |
|---|---|
| Pricing | Unknown |
| Platform | Web Application |
| API | Yes |
| Best for | creating pressure-sensitive web interactions, building accessible web controls |
| Domain registered | 2016 |
Data updated Aug. 1, 2026
What does Pressure.js do?
Pressure.js is a JavaScript library that lets web developers incorporate pressure sensitivity into their projects. It works with Force Touch on MacBooks and Magic Trackpads, 3D Touch on iPhones, and pointer pressure from devices like Microsoft Surface tablets and Wacom pens. The library provides a consistent way to respond to how hard a user is pressing on a screen or trackpad, enabling interactive elements that change based on pressure level.
The library stands out by unifying these different hardware inputs under one simple API, making it much easier to develop for multiple pressure-sensitive systems. It includes a built-in polyfill that uses time as a substitute for force on devices that lack pressure support—if a user holds down longer, it simulates harder pressure. This ensures your pressure-based features work for everyone. It also handles multitouch scenarios where multiple fingers press on different elements simultaneously.
Pressure.js is ideal for developers building interactive web applications, games, or creative tools. Use cases include creating pressure-sensitive drawing apps, implementing 'deep press' shortcuts similar to iOS, designing interactive data visualizations that respond to pressure, or adding accessibility features where pressing harder increases text size. It works across all major browsers and devices that support pointer events or Apple's pressure technologies.
Key features
What makes it stand outWho is Pressure.js for?
Who benefits most from this toolTrust & presence
Similar tools
JavaScript library for creating 3D graphics and interactive experiences in web browsers.
AI-powered JavaScript to TypeScript converter — paste your code, get instant TypeScript with proper type annotations
A friendly JavaScript library that brings machine learning models for pose, image, and sound recognition directly into your web browser.
API and JavaScript library for adding AI-powered spelling and grammar correction to any product or workflow.
GPU-over-IP software that pools and shares remote GPUs for AI and graphics workloads over standard networks