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

@waline-tscf/auth

v1.0.0-beta.2

Published

A comment system auth compatible with Tencent SCF deployment based on Waline

Readme

waline-tscf-auth

waline-tscf的OAuth认证后端,部署在vercel。

waline-tscf:一个基于 Waline 的评论系统,专为 腾讯云函数 SCF 部署场景优化,增强后端性能,优化个人博客的前端样式。

主要特性

  • 前端:admin/client
    • 样式定制:更改默认主题,定制个人博客样式
  • 后端:server
    • SCF支持:适配腾讯云函数serverless运行环境,提供快速部署模板
    • 功能增强:优化注册登录及邮件通知逻辑,支持通过环境变量输出多维度日志记录
    • 隐私保护:针对QQ邮箱头像获取,采用AES-256-GCM加密(需部署waline-tscf-avatar服务)
    • 性能优化:通过依赖懒加载提升冷启动速度,结合缓存与map策略优化热启动性能
    • 资源加速:采用 jsDelivr 提供CDN加速,针对性优化MongoDB的连接性能

快速部署

部署到 Vercel :

Deploy with Vercel

环境变量配置

运行前需要根据使用的社交平台配置相应的环境变量:

GitHub 登录

GITHUB_ID=你的GitHub应用ID
GITHUB_SECRET=你的GitHub应用密钥

Twitter 登录

TWITTER_ID=你的Twitter应用ID
TWITTER_SECRET=你的Twitter应用密钥
LEAN_ID=LeanCloud应用ID
LEAN_KEY=LeanCloud应用Key

Facebook 登录

FACEBOOK_ID=你的Facebook应用ID
FACEBOOK_SECRET=你的Facebook应用密钥

Google 登录

GOOGLE_ID=你的Google应用ID
GOOGLE_SECRET=你的Google应用密钥

微博登录

WEIBO_ID=你的微博应用ID
WEIBO_SECRET=你的微博应用密钥

QQ 登录

QQ_ID=你的QQ应用ID
QQ_SECRET=你的QQ应用密钥

如何调用

登录重定向

GET /<平台名>?redirect=<回调地址>&state=<状态参数>

获取用户信息

GET /<平台名>?code=<授权码>

例如:

  • GitHub: GET /github?code=authorization_code
  • 微博: GET /weibo?code=authorization_code

注意事项

  1. Twitter 特殊要求:Twitter 认证需要额外配置 LeanCloud 存储服务
  2. 回调地址:需要在各社交平台的开发者控制台中正确配置回调地址