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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuepress-theme-blue

v0.0.30-alpha

Published

A simple and beautiful blog theme for vuepress 2.x.

Downloads

21

Readme

vuepress-theme-blue

介绍

一款简洁好用的 Vuepress 2.x 博客主题,Markdown 样式基于 github markdown css

安装

方式一(推荐)

由于 vuepress 2.x 仍然在更新,而其中的依赖需要统一版本才能使用,因此我准备了一个模板项目,直接 Fork 使用即可:vuepress-theme-blue-init-project

具体项目使用可以查看 vuepress-theme-blue-init-project 的 README。

方式二

pnpm add vuepress-theme-blue

在配置文件中引入主题:

import { defineUserConfig } from 'vuepress'
import VuepressThemeBlue from 'vuepress-theme-blue'

export default defineUserConfig({
  // ...
  theme: VuepressThemeBlue({
    // ... 你的配置
  }),
})

配置

defineUserConfig({
  theme: VuepressThemeBlue({
    website: {
      name: 'Ruofee Blog', // 博客名称
      footers: ['备案号: xxx'], // 网页底部文案
      ensureAboutMe: true, // 是否开启“关于我”页面,如开启,请创建 about_me 文件夹
      hostname: 'http://ruofee.cn', // 域名,主要用于生成 sitemap
      baiduAnalytics: 'your baidu key', // 百度统计
    },
    user: {
      username: 'Ruofee', // 用户名
      description: '终不似, 少年游', // 用户描述
      avatar: 'http://img.ruofee.cn/headImage?imageslim', // 用户头像
      links: [
        {
          type: LinkType.Github,
          value: 'https://github.com/ruofee',
        },
      ], // 个人链接
    },
    home: {
      pageSize: 10, // 首页展示博客数目
    },
    comment: {
      enable: true, // 是否开启评论区,基于 giscus
      option: {
        repo: 'xxx',
        repoId: 'xxx',
        category: 'xxx',
        categoryId: 'xxx',
        theme: 'xxx',
        mapping: 'xxx',
        lang: 'xxx',
        loading: 'xxx',
        inputPosition: 'xxx',
        reactionsEnabled: 'xxx',
      }
    },
  }),
})

调试

pnpm dev:node
pnpm dev:client
pnpm dev:docs

路由

  • 首页: /, /home/${page}
  • 文章详情页:/blog/${blogId}
  • 文章分类页:/category/${categoryId}/${page}
  • 关于我:/about_me