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 🙏

© 2025 – Pkg Stats / Ryan Hefner

vuepress-theme-secondary_element

v1.0.7

Published

secondary_element

Downloads

56

Readme

仿b站风格的一套vuepress主题, 基于默认主题修改, 食べにようこそ(版本号:1.0.4)

增加了分类, 标签, 友链, 时间线, 分页等功能

使用方法

1. npm install vuepress-theme-secondary_element --save
2. 在config.js中添加字段 theme:  vuepress-theme-secondary_element
3. 添加themeConfig:{}字段

以下配置都在themeConfig里面

添加首页背景图片

 在docs下添加README.md
 ---
 home: true
 search: true
 bgImage: './xxx.jpg'
 bgImageStyle: {
       
 }
 ---
 home是开启主页,search是开启搜索功能, bgImage 是主页的背景图片路径
 图片路径:
    1. 如果填相对路径, 把xxx.jpg资源放在docs/.vuepress/public目录下,
    2. 或者直接填绝对路径 : http:// xxxxx/xx.png
 bgImageStyle自定义主页背景图片样式

添加头像

首先在config.js里的themeConfig里添加以下字段:
avatar: './xxx.jpg',
图片路径:
        1. 如果填相对路径, 把xxx.jpg资源放在docs/.vuepress/public目录下,
        2. 或者直接填绝对路径 : http:// xxxxx/xx.png

添加分类功能

首先在config.js里的themeConfig里添加以下字段:
categories: {
            text: '分类',
            index: 2,
            icon: 'hamlin-categories'
        },
text是显示的文字, index是显示在导航栏的第几个, icon是文字前的图标的类名
然后在docs文件夹下新建categories文件夹, 文件夹下新建README.md文件
README.md里的内容:
 ---
 isCategories: true
 sidebar: false
 isComment: false
 ---    

可选图标类名

hamlin-categories 分类
hamlin-friendLink 友链
hamlin-bili bilibili电视
hamlin-home 房子
hamlin-comment 对话框
hamlin-eye 眼睛
hamlin-tag 标签
hamlin-date 日历
hamlin-person 人头
hamlin-rocket 火箭
hamlin-time 时间沙漏
如需其它图标请微信/邮箱告诉我

添加标签功能

首先在config.js里的themeConfig里添加以下字段:
tags: {
           text: '标签',
            index: 3,
           icon: 'hamlin-tag'
        },
text是显示的文字, index是显示在导航栏的第几个, icon是文字前的图标的类名
然后在docs文件夹下新建tags文件夹, 文件夹下新建README.md文件
README.md里的内容:
 ---
 isTags: true
 sidebar: false
 isComment: false
 ---

添加时间线功能

首先在config.js里的themeConfig里添加以下字段:
timeLine: {
            text: '时间线',
            index: 5,
            icon: 'hamlin-date'
        },
text是显示的文字, index是显示在导航栏的第几个, icon是文字前的图标的类名
然后在docs文件夹下新建timeLine文件夹, 文件夹下新建README.md文件
README.md里的内容:
---
isTimeLine: true
sidebar: false
isComment: false
---

添加友链功能

首先在config.js里的themeConfig里添加以下字段:
friendLink: {
            text: '友链',
            index: 10,
            data: [{
                name: 'xxx', // 名字
                introduce: 'xxxxx', // 一句话简介
                avatar: 'http://xxxx.jpg', // 头像
                src: 'http://xxxx' // 博客链接
            }],
            icon: 'hamlin-friendLink'
        },
text是显示的文字, index是显示在导航栏的第几个, icon是文字前的图标的类名,data是友链的数据
然后在docs文件夹下新建friendLink文件夹, 文件夹下新建README.md文件
README.md里的内容:
---
isFriendLink: true
sidebar: false
--- 

添加评论功能

首先在config.js里的themeConfig里添加以下字段:
valineConfig: {
            appId: '你的id',// your appId
            appKey: '你的密钥', // your appKey
            notify:true,
            verify:true,
            avatar:'identicon',
            placeholder: '填写邮箱可以收到回复提醒哦',
            visitor: true,  // 阅读量统计,
            recordIP: true
        },

要开启评论功能请参考这里

可以的话赏颗star吧

联系方式

微信:qq110035 加我口令:愿你出走半生,归来仍是少年
qq邮箱: [email protected]