{"adoption": {"forks": 954, "observed_at": "2026-08-28T04:10:49.758716+00:00", "stars": 11777}, "canonical_url": "https://ross.abutalabs.com/products/mousetrap", "card": {"archived": false, "artifact_type": "library", "description": "Simple library for handling keyboard shortcuts in Javascript", "domain": ["web-development", "frontend", "developer-tools"], "enriched": true, "function": ["ui-components", "developer-tools"], "health_score": 20, "homepage": "https://craig.is/killing/mice", "language": "JavaScript", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["ccampbell/mousetrap"], "name": "ccampbell/mousetrap", "platform": ["browser"], "pushed_at": "2023-03-15T18:11:42+00:00", "repo": "ccampbell/mousetrap", "stars": 11777, "tags": ["keyboard-shortcuts", "hotkeys", "keybindings", "event-handling", "zero-dependency", "javascript", "nodejs"], "topics": ["mousetrap", "javascript", "keyboard-shortcuts", "keyboard"], "urls": [], "use_cases": ["add keyboard shortcuts to a web app", "bind ctrl+k style hotkeys in javascript", "implement gmail-like key sequences", "capture keyboard combinations in the browser", "handle special keys like ? and esc in javascript", "support international keyboard layouts for shortcuts"], "what_it_is": "Mousetrap is a tiny (~2kb gzipped), dependency-free JavaScript library for binding keyboard shortcuts in the browser. It supports single keys, modifier combinations, and Gmail-style key sequences across keypress, keydown, and keyup events.", "when_to_avoid": ["you need shortcuts in non-browser environments like Electron menus or OS-level global hotkeys", "you want a library with active ongoing development and modern maintenance", "you need mouse or pointer event handling alongside keyboard events"], "when_to_choose": ["you need a tiny, framework-agnostic shortcut library with no dependencies", "you want key sequences and combinations with international keyboard support", "you need broad legacy browser compatibility including IE6+"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/mousetrap", "repo": "ccampbell/mousetrap", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:49.758716+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:15:20.227550+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "415f4cf7503a845b2e93747331296d38e3fde596ef59ac46b8f0b31212a1f16c", "fetched_at": "2026-08-28T04:10:49.758716+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ccampbell/mousetrap"}, {"content_hash": "557d7fefff50db6e18170c04167833ef40efbb94bad4e2d59a6d362ae7ec6f27", "fetched_at": "2026-08-29T08:13:44.369510+00:00", "kind": "homepage", "missing": false, "url": "https://craig.is/killing/mice"}, {"content_hash": "2674f0756cf621caa31ee7be4d24142bad457593d7814d50dc94a83797ec4d6c", "fetched_at": "2026-08-29T08:13:44.379187+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/mousetrap"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5172, "days_push": 1267, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}