# @gamepadly/sdk > @gamepadly/sdk adds controller support to web games: Xbox, PlayStation, Switch Pro and generic gamepads through one API, with haptics that pick the best motor each controller has, DualSense adaptive triggers, and a bridge that makes an existing keyboard game playable on a controller without changing its code. MIT, zero runtime dependencies, ESM + TypeScript types, runs in the browser with no install, no account and no companion app. This file is written for coding agents. Follow it top to bottom: pick a recipe, apply it, run the test, check the "Done when" list. Every code block here type-checks against the current release. - Package: `@gamepadly/sdk` (current version 0.9.0) - This file: https://gamepadly.com/sdk/llms.txt (fetch it again for a newer release) - Docs: https://gamepadly.com/sdk · Source: https://github.com/gamepadly/gamepadly-sdk - Each docs page is also available as Markdown: append `.md` to its URL (for example https://gamepadly.com/sdk/start/add-controller.md). ## 1. Pick a recipe | The user's situation | Use | | :--- | :--- | | A game already works with keyboard (and maybe mouse), and you should not rewrite its input code | **Recipe A: bridge** (`@gamepadly/sdk/bridge`) | | You are writing the game's input code (new game, or a game you are refactoring) | **Recipe B: action map** (`p1.createActions()`) | | The user wants DualSense adaptive triggers, Switch Pro HD Rumble, gyro or touchpad | Add **Recipe C: WebHID upgrade** on top of A or B | | Any of the above | Always add **Recipe D: test without a controller** | | A single HTML file with no build step | Import from the CDN (section 2), then use A or B | | The game uses Three.js, Phaser or React | A or B as above, plus the framework recipe: [Three.js](https://gamepadly.com/sdk/recipes/three-js.md), [Phaser](https://gamepadly.com/sdk/recipes/phaser.md), [React](https://gamepadly.com/sdk/recipes/react.md) | Do not add `@gamepadly/sdk/link` (DualSense speaker and 4-channel audio) unless the user explicitly asks for it. See section 9. ## 2. Install ```bash npm install @gamepadly/sdk ``` No bundler (single HTML file): load the browser build inside `