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

@knewbeing/vitepress-plugin-enhanced-readabilities

v1.1.1

Published

[![npm version](https://img.shields.io/npm/v/@knewbeing/vitepress-plugin-enhanced-readabilities.svg)](https://www.npmjs.com/package/@knewbeing/vitepress-plugin-enhanced-readabilities) [![license](https://img.shields.io/npm/l/@knewbeing/vitepress-plugin-e

Readme

@knewbeing/vitepress-plugin-enhanced-readabilities

npm version license

为 VitePress 提供增强阅读体验的插件:字体大小调节、页面宽度调节、聚光灯模式等。

在 VitePress 导航栏注入阅读辅助工具面板,读者可以根据个人偏好调整字体大小、内容区宽度和聚焦高亮模式,设置通过 localStorage 持久化。


版权声明 / Copyright

本包代码派生自 @nolebase/vitepress-plugin-enhanced-readabilities(MIT 许可证)。
原始版权归 nolebase 所有。
knewbeing(知在,[email protected])改进并重新发布,修改部分仍遵循 MIT 许可证。

This package is derived from @nolebase/vitepress-plugin-enhanced-readabilities (MIT License).
Original copyright belongs to nolebase.
Improved and republished by knewbeing ([email protected]). Modifications remain under MIT License.


功能特性 / Features

  • 🔤 字体大小调节 — 动态调整正文字体大小,范围可配置
  • 📐 页面宽度调节 — 在固定宽度与全宽之间自由切换
  • 🔦 聚光灯模式 — 高亮鼠标悬停的段落,其余内容淡化,专注当前阅读区域
  • 💾 持久化设置 — 用户偏好通过 localStorage 跨会话保留
  • 🌐 多语言支持 — 内置简体中文、繁体中文、英语等多语言 UI
  • 🎨 CSS 变量主题 — 样式通过 CSS 变量驱动,便于自定义

安装 / Installation

npm install @knewbeing/vitepress-plugin-enhanced-readabilities
# or
pnpm add @knewbeing/vitepress-plugin-enhanced-readabilities

快速开始 / Quick Start

// .vitepress/theme/index.ts
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import { InjectionKey, NolebaseEnhancedReadabilitiesMenu, NolebaseEnhancedReadabilitiesScreenMenu } from '@knewbeing/vitepress-plugin-enhanced-readabilities/client'
import '@knewbeing/vitepress-plugin-enhanced-readabilities/client/style.css'

export default {
  extends: DefaultTheme,
  Layout: () => {
    return h(DefaultTheme.Layout, null, {
      // 在导航栏右侧插入菜单按钮
      'nav-bar-content-after': () => h(NolebaseEnhancedReadabilitiesMenu),
      // 在移动端屏幕菜单中插入
      'nav-screen-content-after': () => h(NolebaseEnhancedReadabilitiesScreenMenu),
    })
  },
  enhanceApp({ app }) {
    app.provide(InjectionKey, {
      // 可选:自定义配置
    })
  },
} satisfies Theme

配置项 / Options

通过 app.provide(InjectionKey, options) 传入:

| 参数 | 类型 | 说明 | |------|------|------| | layoutSwitch | object | 页面宽度切换相关配置 | | spotlight | object | 聚光灯模式相关配置 |


许可证 / License

MIT

相关链接 / Links