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

@miorin/dsh-ios-top-clearance

v0.1.1

Published

Keeps the phone Web UI header out of the iOS Home Screen app's scroll-edge blur band.

Readme

dsh-ios-top-clearance

English · 项目文档

把 DSH 手机版顶部抬出 iOS 主屏幕应用的系统模糊带。

问题

iOS 26 及以后,主屏幕 Web 应用会得到系统级的滚动边缘效果:视口最上面约 33 CSS px 由 WebKit 在上层模糊、 压暗,页面自己渲染的那块是清晰的。 DSH 手机版的会话标题栏正好从视口顶部开始,标题行落在这条带子里,看起来发灰、发虚,而下方的正文仍然锐利。

这不是页面样式造成的,也没有 CSS 开关能关掉它:原生应用用 scrollView.topEdgeEffect.isHidden 隐藏,网页够不到。 页面侧唯一的办法是把内容挪出这条带子。

插件做什么

仅在 iOS 独立应用(navigator.standalone === true)且宽度不超过 767px 时, 把 frame 根节点整体让出 16px(比带子的宽度略小,标题行仍在带外,比 24px 省 8px)。 位移放在 #root 而不是会话标题栏上:frame 左上角的 leading seat(抽屉开关)是相对 frame 顶部绝对定位的, 只挪标题栏会把它留在原地、悬在标题上方;挪根节点则让开关、标题栏、抽屉一起下移。 frame 上方的留白是页面背景,系统模糊过去只剩平色。

浏览器标签页、桌面端和 frame 内部的布局都不受影响。

安装

在源码检出目录运行 npm ci 安装开发依赖并构建插件。

dsh plugin --profile web add link:/path/to/plugins/dsh-ios-top-clearance

装完后重新打开主屏幕应用。 如果最上面一行还剩一点虚边,在浏览器源码中调大 BAND,再运行 npm run build。 这条带子是软过渡,16px 是让标题正好出带的最小值,24px 对应 62px 状态栏下 95px 的带底。

移除

dsh plugin --profile web remove @miorin/dsh-ios-top-clearance

测试

首次检出后,先在项目目录运行 npm ci,再用 npm test 重新构建并运行单元测试。 其他命令见项目验证约定。