{
 "kind": "tool",
 "slug": "use-gesture",
 "path": "tools/use-gesture/",
 "name": "@use-gesture",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Animation and motion",
   "tools/animation/"
  ]
 ],
 "lead": "React hook for handling mouse, touch and pointer gestures.",
 "chips": [
  {
   "label": "Animation and motion",
   "path": "tools/animation/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @use-gesture/react"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pmndrs/use-gesture"
  },
  {
   "label": "Website",
   "href": "https://use-gesture.netlify.app"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/pmndrs/use-gesture"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Quiet for a year",
   "status": "cond",
   "sub": "Last change Jul 15, 2024",
   "note": "Latest GitHub release Mar 21, 2024. ",
   "src": "https://github.com/pmndrs/use-gesture"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "11 projects",
   "status": "info",
   "sub": "#14 of 46 in its category",
   "note": "Dependency in 11 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "6 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What @use-gesture does",
   "parts": [
    {
     "t": "prose",
     "text": "React hook for handling mouse, touch and pointer gestures."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "@use-gesture popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "61",
       "of": "/ 100",
       "l": "Gid Score, #927 overall"
      },
      {
       "n": "10.1M",
       "l": "downloads a week, npm"
      },
      {
       "n": "9,625",
       "l": "GitHub stars"
      },
      {
       "n": "11",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How @use-gesture is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "@use-gesture is a dependency in 11 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 31 projects, and what it is used with below comes from all of them.",
      "Projects that use it most often also use React (93.5%), Tailwind CSS (87.1%), Framer Motion (54.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "9 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "8 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 93.5% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 87.1% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 54.8% of its projects",
       "v": "Framer Motion",
       "path": "tools/framer-motion/"
      },
      {
       "l": "In 48.4% of its projects",
       "v": "date-fns",
       "path": "tools/date-fns/"
      },
      {
       "l": "In 48.4% of its projects",
       "v": "Three.js",
       "path": "tools/three/"
      },
      {
       "l": "In 45.2% of its projects",
       "v": "TanStack Query",
       "path": "tools/tanstack-react-query/"
      },
      {
       "l": "In 41.9% of its projects",
       "v": "React Spring",
       "path": "tools/react-spring-npm/"
      },
      {
       "l": "In 38.7% of its projects",
       "v": "Recharts",
       "path": "tools/recharts/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about @use-gesture",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "react-modernization: Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features. Use when modernizing R",
        "react-native-dev: React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performan",
        "react-expert: Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components,",
        "react-vite-dashboard: Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready pattern",
        "react-composition-patterns: React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component librarie",
        "react-hook-form: React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, the subscrib"
       ]
      },
      {
       "title": "More in Animation and motion",
       "path": "tools/animation/",
       "items": [
        {
         "text": "tw-animate-css",
         "path": "tools/tw-animate-css/"
        },
        {
         "text": "Framer Motion",
         "path": "tools/framer-motion/"
        },
        {
         "text": "Tailwind CSS Animate",
         "path": "tools/tailwindcss-animate/"
        },
        {
         "text": "Embla Carousel",
         "path": "tools/embla-carousel-react/"
        },
        {
         "text": "Motion",
         "path": "tools/motion/"
        },
        {
         "text": "GSAP",
         "path": "tools/gsap/"
        },
        {
         "text": "React Native Reanimated",
         "path": "tools/react-native-reanimated/"
        },
        {
         "text": "canvas-confetti",
         "path": "tools/canvas-confetti/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "@use-gesture",
       "me": true,
       "facts": [
        "MIT",
        "Gid 61",
        "10.1M/wk"
       ]
      }
     ],
     "more": "Compare @use-gesture with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @use-gesture/react"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for @use-gesture yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @use-gesture/react"
  ],
  [
   "Category",
   "Animation and motion"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "61.4"
  ],
  [
   "Rank in category",
   "#14 of 46"
  ],
  [
   "GitHub",
   "pmndrs/use-gesture"
  ],
  [
   "Last change",
   "Jul 15, 2024"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pmndrs.png"
}