npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

layer-scoper

v1.0.4

Published

A front-end focus movement framework that supports keyboard/remote control/mouse simultaneously

Readme

Layer-Scoper

Layer-Scoper 官方文档 — GitHub

安装

npm 安装

默认安装最新版本: npm install layer-scoper

安装指定版本: npm install [email protected]

简介

一款能够同时支持 键盘/遥控/鼠标/触屏 交互的浏览器前端外骨骼交互框架

随着Web响应式适配的发展以及性能提升,越来越多的应用会引入一部分Web-Html来进行与原生混合开发。Web模式开发在产品快速迭代,热更新等方面拥有更灵活的优势。

但是随之而来的问题就暴露在Web浏览器内核本身并非为非触控式设备而生,大多数Web应用都是建立在鼠标点击(OnClick),手指点击(OnTap),滚动(OnScroll),滑动(OnTouchMove)等场景来触发交互。

Web内核面向电视遥控器,方向控制器,第三方硬件控制器等非触控设备,并没有任何硬件适配的支持,非常不利于用户交互操作。

Layer Scoper 因此而生! 解决了用户只通过“上,下,左,右,确认,返回”六个键值来进行Web页面交互的问题,简单,高效,灵活易用。 Layer Scoper核心设计理念,包含以下三大优势:

  • 对开发者和用户双向友好,学习成本很低,兼容性极强。所见即所得,"键"随心动的体验感受。
  • 不依赖于任何开发框架,JavaScript 原生级别封装,支持多种引入方式,一键式初始化,开箱即用。
  • 代码体量极小但功能强大,内置 API 丰富,生命周期钩子与扩展点充分预留,以开发者视角设计代码架构。