[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107939":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":37,"discoverSource":38},107939,"open-source-hands","abouchedidxcode\u002Fopen-source-hands","abouchedidxcode","Make webcam hand games in the browser, or point your coding agent here and have it make one. MediaPipe hand tracking + a gesture engine + a starter game + a playbook.","https:\u002F\u002Fabouchedidxcode.github.io\u002Fopen-source-hands\u002F",null,"TypeScript",224,31,2,1,0,6,105,7,61.52,"MIT License",false,"main",true,[26,27,28,29,30,31,32],"browser-games","coding-agents","gestures","hand-tracking","mediapipe","threejs","webcam","2026-11-03 01:12:35","2026-11-23 13:55:59","# open-source-hands\n\nMake webcam hand games for the browser, or point your coding agent here and have it make one for you.\n\nThis is the technology behind [Show of Hands](https:\u002F\u002Fmeticulai.com\u002Fgames\u002Fshow-of-hands\u002F), a hall of 15 small games\nplayed with your hands:\n- catch fireflies at dusk\n- skip stones across a lake\n- tilt a maze with your palm\n- duel with finger guns\n- hold up 1 to 5 fingers as numbers fall\n\nAlso [GODHAND](https:\u002F\u002Fmeticulai.com\u002Fgames\u002Fgodhand\u002F) and [Starbreaker](https:\u002F\u002Fmeticulai.com\u002Fgames\u002Fstarbreaker\u002F).\nEverything runs in the browser, and video never leaves the device.\n\nWhat is in the repo:\n- **`src\u002Fkit\u002F`: hand-gesture-kit,** about 1,600 lines of dependency-free TypeScript on top of Google's\n  [MediaPipe Hand Landmarker](https:\u002F\u002Fai.google.dev\u002Fedge\u002Fmediapipe\u002Fsolutions\u002Fvision\u002Fhand_landmarker), which finds 21\n  points on each hand. The kit turns those points into stable, game-ready input:\n  - **20 poses:** fist, point, peace sign, thumbs up, rock on, pinch…\n  - **16 motions:** swipes, circles, push and pull, wave, twist, pinch taps, throw\n  - **5 two-hand gestures:** clap, zoom, steering\n  - **continuous values:** pinch strength, palm position, roll, openness, velocity\n  - **built in:** One Euro smoothing, hysteresis, so gestures don't flicker, and **synthetic hands** to test\n    without a webcam\n- **[`templates\u002Fgame\u002F`](templates\u002Fgame): a complete starter game** in three.js. It has a camera prompt with a mouse\n  and touch fallback, a bot that plays through the real gesture engine, tests, and screenshot, frame-rate and\n  loudness tools. Copy it and replace the game.\n- **[`docs\u002FMAKING-A-GAME.md`](docs\u002FMAKING-A-GAME.md): the playbook** from building 17 hand games: picking gestures\n  that work, verifying without a webcam, the quality bar, and the bugs that cost us time.\n- **[Gesture Lab](https:\u002F\u002Fabouchedidxcode.github.io\u002Fopen-source-hands\u002Flab.html):** try every gesture live, run a\n  reliability test and tune thresholds. There is also a [demo](https:\u002F\u002Fabouchedidxcode.github.io\u002Fopen-source-hands\u002F)\n  and a tiny [example game](https:\u002F\u002Fabouchedidxcode.github.io\u002Fopen-source-hands\u002Fpop.html).\n\n## Using a coding agent?\n\nPoint it here. The repo is written to be read by agents. [AGENTS.md](AGENTS.md) is the entry point. For example:\n\n> Make me a browser game where I conduct an orchestra with my hands. Use\n> https:\u002F\u002Fgithub.com\u002Fabouchedidxcode\u002Fopen-source-hands: start from templates\u002Fgame and follow AGENTS.md and\n> docs\u002FMAKING-A-GAME.md.\n\nClaude Code users can also install the skill in [`skills\u002Fhand-gestures`](skills\u002Fhand-gestures\u002FSKILL.md).\n\n## Make a game\n\n```bash\nnpx degit abouchedidxcode\u002Fopen-source-hands\u002Ftemplates\u002Fgame my-game\ncd my-game\nnpm install\nnpm run dev        # the camera needs https or localhost\n```\n\nThen read [the starter's README](templates\u002Fgame\u002FREADME.md) and the [playbook](docs\u002FMAKING-A-GAME.md).\n\n## Run this repo (kit, demo, lab)\n\n```bash\nnpm install\nnpm run dev        # open the printed URL. The camera needs https or localhost\nnpm test           # engine unit tests (no browser needed)\nnpm run build && npm run e2e   # demo, lab and example game driven by synthetic hands in headless Chromium\nnode scripts\u002Fcamera-check.mjs clips\u002F   # real MediaPipe on .y4m clips played as a fake webcam\n```\n\n## Add the kit to an existing project\n\nThe kit is about 1,600 lines of dependency-free TypeScript in `src\u002Fkit`. Copy that folder into your\nproject, the way shadcn\u002Fui components are copied:\n\n```bash\nnpx degit abouchedidxcode\u002Fopen-source-hands\u002Fsrc\u002Fkit src\u002Fhand-gesture-kit\nnpm install @mediapipe\u002Ftasks-vision@1.1.0\nmkdir -p public\u002Fmodels public\u002Fwasm\ncurl -L -o public\u002Fmodels\u002Fhand_landmarker.task \\\n  https:\u002F\u002Fstorage.googleapis.com\u002Fmediapipe-models\u002Fhand_landmarker\u002Fhand_landmarker\u002Ffloat16\u002F1\u002Fhand_landmarker.task\ncp node_modules\u002F@mediapipe\u002Ftasks-vision\u002Fwasm\u002F* public\u002Fwasm\u002F\n```\n\n```ts\nimport { createHands, toScreen } from '.\u002Fhand-gesture-kit';\n\nconst hands = createHands({\n  onFrame(frame) {\n    for (const hand of frame.hands) {\n      const p = toScreen(hand.features.center);     \u002F\u002F palm centre on screen, 0..1\n      moveCursor(hand.id, p.x * innerWidth, p.y * innerHeight);\n    }\n  },\n});\n\nhands.engine.on('fist', (e) => (e.phase === 'start' ? grab(e.hand) : release(e.hand)));\nhands.engine.on('swipe-left', () => previousPage());\nhands.engine.on('clap', () => jump());\n\nstartButton.onclick = () => hands.startCamera();   \u002F\u002F browsers need a click before the camera\n```\n\n## Gestures\n\n| Poses (held) | Motions (one hand) | Two hands |\n| --- | --- | --- |\n| ✋ `open` · ✊ `fist` · 🦅 `claw` · ☝️ `point` · 🖕 `middle` · ✌️ `victory` · 3️⃣ `three` · 4️⃣ `four` · 👍 `thumbs-up` · 👎 `thumbs-down` · 🤘 `rock` · 🤙 `shaka` · 👉 `gun` · 🤏 `pinch` · 👌 `ok` · 🫰 `pinch-middle` | `swipe-left\u002Fright\u002Fup\u002Fdown` · `push` · `pull` · `circle-cw\u002Fccw` · `wave` · `shake` · `twist-cw\u002Fccw` · `tap` (pinch tap) · `double-tap` · `throw` (fist flung open) · `hold` (any pose kept still) | `clap` · `zoom-in` · `zoom-out` · `steer-left` · `steer-right` |\n\nExperimental (off with `config: { pose: { experimental: false } }`): 🤚 `back`, 🔪 `chop`,\n🫸 `two`, 🖖 `spock`.\n\nPoses are data, and motions are small functions, so you can add your own with\n`engine.registerPose()` and `engine.registerMotion()`.\n\n## How it works\n\n```\nwebcam ─▶ MediaPipe Hand Landmarker ─▶ 21 points per hand ─▶ One Euro smoothing\n       ─▶ features: finger curl from joint angles, pinch gaps, palm facing, roll, size\n       ─▶ poses: every pose scored each frame, debounced with enter\u002Fexit thresholds\n       ─▶ motions: detectors over the last 1.6 s of each hand's movement\n       ─▶ two hands: clap, zoom, steer from the distance and angle between palms\n       ─▶ events (engine.on) + continuous values (pinch, velocity, zoom) for your game\n```\n\n- **Camera:** front camera at 1280×720. Detection runs once per new video frame, on the GPU, with an\n  automatic fallback to the CPU.\n- **Coordinates:** everything is in mirrored \"selfie\" space (0..1, y down), and `handedness` is the\n  user's real hand.\n- **Tuning:** the [Gesture Lab](lab.html) shows every gesture live, runs a reliability test (detection\n  rate, reaction time, confusions) and has sliders for every threshold. Export the JSON and pass it\n  as `createHands({ config })`.\n\n## Credits and license\n\nMIT, see [LICENSE](LICENSE). Hand tracking is Google's MediaPipe (Apache-2.0). The model file in\n`public\u002Fmodels` is Google's official release, unmodified. Details are in\n[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n","这是一个面向浏览器的开源手部交互开发套件，用于快速构建基于网络摄像头的手势游戏或交互应用。项目基于 MediaPipe Hand Landmarker 实现高精度手部关键点检测，提供20种静态手势、16种动态动作、5种双手协同手势及连续手势参数（如捏合强度、手掌朝向等），内置平滑滤波、防抖和合成手模拟功能；配套 Three.js 游戏模板与完整开发指南，支持无摄像头调试与编码智能体（如 Claude Code）直接调用。适用于教育互动、无障碍控制、创意编程教学及轻量级 Web AR 游戏原型开发。","2026-11-24 04:33:01","CREATED_QUERY"]