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

valaxy-theme-warmpaper

v0.2.3

Published

A warm, grid-paper styled theme for Valaxy, ported from the warmpaper design.

Readme

valaxy-theme-warmpaper

一个为 Valaxy 打造的暖色方格纸(warmpaper)风格主题,移植自 finch-xu/hexo-theme-warmpaper(灵感来自 Claude 的配色方案,米色背景 + 淡橙色方格草稿纸纹理)。仓库同时包含一个可直接运行的示例博客站点。

在线示例博客站点:https://xunv.github.io/valaxy-theme-warmpaper/

特性

  • 暖色方格纸视觉风格,主强调色 #da7756
  • 内置多种布局:首页、文章、归档、标签、分类
  • 支持暗色模式切换
  • 支持 SSG 分页(/page/1/page/2 …)
  • 首页文章卡片自动摘要
  • 内置 RSS/Atom/JSON Feed 生成

目录结构

.
├── pages/                    # 示例站点的页面与文章
├── public/                   # 静态资源与生成的 feed
├── valaxy-theme-warmpaper/   # 主题源码
│   ├── components/           # 组件(导航、页脚、文章卡片、分页)
│   ├── composables/          # 组合式函数
│   ├── layouts/              # 布局(home/post/archives/tags/categories/default)
│   ├── node/                 # 构建期配置
│   ├── styles/               # 全局样式与变量
│   └── types/                # 类型定义(ThemeConfig 等)
└── valaxy.config.ts          # 站点与主题配置

快速开始

# 安装依赖
pnpm install

# 启动开发服务器
pnpm dev

# 构建(SSG)
pnpm build

# 本地预览构建产物
pnpm serve

# 生成 RSS
pnpm rss

使用主题

valaxy.config.ts 中引入并配置主题:

import { defineValaxyConfig } from 'valaxy'
import type { ThemeConfig } from 'valaxy-theme-warmpaper'

export default defineValaxyConfig<ThemeConfig>({
  theme: 'warmpaper',
  themeConfig: {
    colors: {
      primary: '#da7756', // 主强调色
    },
    nav: [
      { text: '首页', link: '/' },
      { text: '归档', link: '/archives/' },
      { text: '标签', link: '/tags/' },
      { text: '分类', link: '/categories/' },
      { text: '关于', link: '/about/' },
    ],
    pageSize: 7, // 首页每页文章数,默认 7
  },
})

主题配置(ThemeConfig)

| 字段 | 类型 | 说明 | | ------------------ | ----------- | ------------------------------------------- | | colors.primary | string | 主强调色,默认 #da7756 | | nav | NavItem[] | 顶栏导航项(text / link / 可选 icon) | | pageSize | number | 首页每页文章数,默认 7 | | hero.title | string | 首页 hero 主标题 | | hero.motto | string | 首页 hero 副标题/一言 | | footer.message | string | 页脚文案(支持 HTML) | | footer.copyright | string | 版权信息 |

环境要求

  • Node.js(建议 LTS)
  • valaxy >= 0.28.0vue >= 3.5.0pinia >= 2.1.0(作为 peerDependencies)

致谢

License

MIT © iyue.top