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

hexo-ai-summary-anxiaowai

v1.0.0

Published

这是一个 Hexo 插件,用于自动生成文章的摘要。支持腾讯混元、OpenAI 或任何兼容 OpenAI 协议的模型接口,支持并发处理、自定义摘要字段、摘要覆盖控制等功能。 ## 功能特点

Readme

Hexo AI 摘要插件

这是一个 Hexo 插件,用于自动生成文章的摘要。支持腾讯混元、OpenAI 或任何兼容 OpenAI 协议的模型接口,支持并发处理、自定义摘要字段、摘要覆盖控制等功能。

功能特点

  • 自动摘要:自动为每篇文章生成简洁的中文摘要。
  • 自定义提示:可以通过配置文件自定义摘要的生成提示。
  • 支持多种模型:支持腾讯云的 Hunyuan 模型。
  • 并发控制:支持并发请求,提高生成效率。
  • 覆盖所有文章:可以选择覆盖所有文章的摘要,即使已有摘要。
  • 输入长度限制:可以限制输入文本的长度,确保生成效果。
  • 超时设置:可以设置 API 请求的超时时间,避免长时间等待。

安装

npm install hexo-ai-summary-anxiaowai --save

配置项(添加到 _config.yml 或主题配置文件中)

aisummary:
  enable: true                                                   # 是否启用插件
  api: https://api.hunyuan.cloud.tencent.com/v1/chat/completions # OpenAI 或腾讯云的 Hunyuan 模型
  token: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx             # OpenAI 或兼容模型的密钥
  model: hunyuan-standard                                        # 使用模型名称
  summary_field: summary                                         # 摘要字段
  cover_all: false                                               # 是否启用全部覆盖(既重新生成)
  concurrency: 2                                                 # 并发处理数
  max_input_length: 3000  # 输入文本长度限制(腾讯推荐2000字以内)
  prompt: "请用简体中文生成一段简洁的摘要,要求:1.长度在80-120字之间 2.包含文章核心观点 3.输出内容开头为“这里小歪AI,这篇文章” 4.不要包含代码和公式"
  max_tokens: 120       # 混元模型建议稍大的token限制
  temperature: 0.5      # 创造性稍高的温度值(0.1~2.0)
  timeout: 10000        # 腾讯API建议稍长的超时时间

指定文章禁用AI摘要

---
title: xxxxxxxxxxx
summary: false
---

所需依赖

插件运行依赖以下 NPM 包:

npm install axios p-limit