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

@imaegoo/valine

v1.4.1-4.1

Published

A simple comment system based on Leancloud.

Downloads

8

Readme

Valine 魔改 隐私专版

Instruction

这是根据 xCss/Valine#336 的需求实现的魔改版本,基于 Valine.min.js 版本 1.4.14 修改。

发送请求中响应内容明文暴露评论者IP、邮箱等隐私内容,博客主需要手动更改字段权限,然而,如果设置 mail 客户端不可见,将不会显示评论者的 Gravatar,转为显示默认头像。

该魔改版新增一个可见字段(mailMd5)存储 mail 的 MD5,并提供了脚本处理现有数据。

Usage

  1. 访问 LeanCloud 控制台 > 存储 > 结构化数据
  2. 选择 Comment Class,分别点击 mail 和 ip 相应字段的下拉菜单,选择编辑
  3. 勾选"客户端不可见"后,客户端发起查询的时候,返回的结果将不包含这个字段 * 即使用 AppKey 指定字段名查询,也不会返回字段值,足够安全。
  4. 请同样确认 class 的权限配置
  5. 克隆本仓库
# 克隆
git clone -b imaegoo/1.4.14 https://github.com/imaegoo/Valine.git valine
cd valine
# 安装依赖
npm install
  1. 打开 migrate.js,修改里面的 appId,appKey,masterKey,serverURL 为自己的
  2. 执行脚本
node migrate.js

  1. 替换博客的 Valine.min.js 为本仓库到 valine.js
  2. 测试一下,头像是否正常加载,API 是否没有返回 mail 和 ip

Difference

如果你对魔改版感到不放心,可以检查检查我都改了些啥