# yoannmoinet/nipplejs

:video_game: A virtual joystick for touch capable interfaces.

Repository: https://github.com/yoannmoinet/nipplejs
Canonical: https://ross.abutalabs.com/products/nipplejs
Homepage: https://yoannmoi.net/nipplejs/
Language: TypeScript
License: MIT
License Family: permissive
Topics: joystick, frontend, dom, vanilla-javascript, dependency-free, gamedev
Last push: 2026-05-26T19:34:05+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 86, longevity 100
- inputs: {"age_days": 4015, "days_push": 99, "days_rel": 99, "gap_med": 11, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1941, forks 197 (observed 2026-08-28T04:05:57.447933+00:00)

## What it is
nipplejs is a dependency-free, vanilla TypeScript library that renders virtual joysticks for touch and mouse capable web interfaces. It supports static, semi, and dynamic joystick modes with multitouch, axis locking, and event-based vector output for controlling games or UIs.

## Use cases
- add an on-screen joystick to a mobile web game
- control a character with touch drag input in the browser
- build dual-stick touch controls for a web shooter
- capture analog stick vector input from touch and mouse
- create a horizontal-only slider-style touch control
- replace keyboard controls with touch controls on tablets

## When to choose
- you need a lightweight, zero-dependency virtual joystick in vanilla JS or any framework
- you want multitouch support with configurable modes, axis locking, and styling
- you're building touch-friendly games or remote-control UIs for mobile browsers

## When to avoid
- you need native mobile joystick widgets outside the browser
- you require gamepad hardware input rather than on-screen touch controls
- you need a full touch gesture library beyond joysticks

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation, frontend-framework
- domain: web-development, frontend, gaming-tools
- platform: browser, cross-platform
- tags: virtual-joystick, touch-input, vanilla-javascript, dependency-free, typescript, mobile-games, dom, game-development, web-server

## Member repositories
- yoannmoinet/nipplejs (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.447933+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:08:07.850874+00:00, confidence not recorded.
  - readme: https://github.com/yoannmoinet/nipplejs (fetched 2026-08-28T04:05:57.447933+00:00, sha 774a0ecf70f1)
  - homepage: https://yoannmoi.net/nipplejs/ (fetched 2026-08-29T10:47:42.109284+00:00, sha 55ccfa48ad62)
  - site_page: https://yoannmoi.net/nipplejs/getting-started (fetched 2026-08-29T10:47:42.120312+00:00, sha ac1f7c436084)
  - registry_npm: https://registry.npmjs.org/nipplejs (fetched 2026-08-29T10:47:42.122963+00:00, sha 1043c2425be8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
