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

alemonjs-aichat

v1.0.18

Published

alemonjs-aichat

Readme

1.安装

安装中遇到问题可访问alemonjs官网查询https://alemonjs.com/docs

yarn安装方式(推荐)

前置条件: 安装alemonjs: alemonjs官网

yarn add alemonjs-aichat
## 运行
yarn start

git拉取项目安装

git clone [email protected]:suancaixianyu/alemonjs-aichat.git
cd alemonjs-aichat
yarn
## 运行
yarn dev

## 打包
yarn build

从零开始安装

  1. 拉取仓库
git clone -b release [email protected]:suancaixianyu/alemonjs-aichat.git
cd alemonjs-aichat
yarn
  1. 配置alemon.config.yaml连接平台
  2. 启动
node index

2.配置

配置app

在配置中添加该插件, 才能正常触发指令

如果使用的是git拉取项目的方式, 就不需要配置这个

app: 
  - 'alemonjs-aichat'

配置redis

alemon.config.yaml

redis:
  # host默认 127.0.0.1
  host: '127.0.0.1' 
  # 端口号默认 6379
  port: 6379
  # 无密码则留空或者不写, 默认无密码
  password: ''

配置AI修图

修图基于xai的grok接口实现, 该接口返回的图片也是xai的, 在特定平台中可能无法发送此图片,这时候可以用自己写个代理将图片转为可访问状态

已知无需转换的平台: QQ,Bubble alemon.config.yaml

# 代理默认可不填
xaiImgProxy: 'http://127.0.0.1:3002/ximgen'

ai修图依赖于xai, 需要使用该功能必须添加一个grok模型, 在启动机器人后, 使用以下指令添加

#添加ai grok https://api.x.ai/v1 <你的apiKey> grok-4-1-fast-non-reasoning

通常情况下nodejs不会使用本地的代理, 因此你可能需要自己解决一下无法访问ai的问题, 例如另写一个脚本, 脚本已经预备好了, 下载项目中的daili.js然后运行它即可(Clash的默认端口一般是7890, 可能需要修改一下daili.js中的端口)

node daili

如果你使用的是daili.js, 那么地址需要改为http://127.0.0.1:3002/x/v1

配置搜索工具

网页搜索功能基于https://serpapi.com的接口制作 需要前往他们的官网获取key alemon.config.yaml

# 默认无, 可能无法使用网页搜索
searchApiKey: ''

配置管理员

alemon.config.yaml

# 默认无, 小部分功能需要管理员权限才能使用
master_id: ['3501869534']

4.使用

需要先使用#添加ai,配置一个ai后才能使用对话功能

|指令|作用| |---|---| |#添加ai|添加一个ai, 重名时更新| |#切换ai|切换一个ai配置并保留当前对话| |#开启对话|在当前位置启用ai聊天| |#ai配置|显示当前使用的配置| |#添加提示词|添加一个提示词| |#提示词列表|查看当前配置的所有提示词| |#切换提示词|切换一个提示词并保留当前对话| |#清空对话|清空当前对话并保留好感度| |#开启好感度|好感度会影响回复时的语气| |#好感度|查看自己的好感度| |#ai帮助|查看更多指令|