{"package":"focus-trap","ecosystem":"npm","latest_version":"8.2.2","description":"Trap focus within a DOM node.","license":"MIT","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://github.com/focus-trap/focus-trap#readme","repository":"https://github.com/focus-trap/focus-trap","downloads_weekly":4634540,"health":{"score":90,"risk":"low","breakdown":{"maintenance":25,"popularity":17,"security":25,"maturity":15,"community":8,"popularity_floor":0},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"8.2.2","total_count":96,"recent":["7.5.1","7.5.2","7.5.3","7.5.4","7.6.0","7.6.1","7.6.2","7.6.3","7.6.4","7.6.5","7.6.6","7.7.0","7.7.1","7.8.0","8.0.0","8.0.1","8.1.0","8.2.0","8.2.1","8.2.2"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":2,"first_published":"2015-08-16T22:30:02.978Z","last_published":"2026-06-22T00:15:10.263Z","dependencies_count":1,"dependencies":["tabbable"]},"github_stats":{"stars":1562,"forks":123,"open_issues":3,"is_archived":false,"pushed_at":"2026-09-23T21:56:42Z","subscribers_count":7},"bundle":{"size_kb":19.3,"gzip_kb":6.4,"dependency_count":1,"has_js_module":"dist/focus-trap.esm.js","has_side_effects":false,"scoped":false,"source":"bundlephobia"},"typescript":{"score":10,"has_types":true,"types_source":"bundled","types_package":null},"known_issues":{"bugs_count":0,"bugs_severity":{},"status_breakdown":{},"link":null,"scope":"none"},"historical_compromise":null,"recommendation":{"action":"safe_to_use","issues":[],"use_version":"8.2.2","version_hint":null,"summary":"focus-trap@8.2.2 is safe to use (health: 90/100)"},"version_scoped":null,"_meta":{"endpoint":"check","tier":"full","philosophy":"DepScope is free. Use the cheapest endpoint that answers your real question.","cheaper_alternatives":[{"endpoint":"/api/exists/npm/focus-trap","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/focus-trap","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/focus-trap","tokens_estimated":280,"use_when":"you want a plain-text LLM-friendly brief instead of JSON"},{"endpoint":"POST /api/check_bulk","tokens_estimated":60,"use_when":"you have 5+ packages to check; sends one round-trip instead of N"}],"docs":"https://depscope.dev/integrate"},"_cache":"hit","_response_ms":0}