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

@hclonely/artitalk

v4.1.0

Published

Artitalk 是一个轻量级说说/动态发布组件,适合嵌入个人博客或静态站点。当前版本保留前端组件用法,并提供基于 Vercel + Neon Postgres 的服务端实现,用于替代 LeanCloud 依赖。

Readme

Artitalk.js

Artitalk 是一个轻量级说说/动态发布组件,适合嵌入个人博客或静态站点。当前版本保留前端组件用法,并提供基于 Vercel + Neon Postgres 的服务端实现,用于替代 LeanCloud 依赖。

由于原项目不再更新,LeanCloud即将关闭服务,所以本项目诞生了。

详细使用教程请移步 官方文档

特性

  • 发布、预览、删除说说内容
  • 支持 Markdown/HTML 内容渲染
  • 支持动态置顶、账户背景色与自动区分作者配色
  • 支持图片、音乐、视频等媒体上传入口
  • 支持评论、表情
  • 对动态、评论和预览内容进行 HTML 净化
  • 提供 Vercel 服务端,支持从 LeanCloud 数据迁移

快速开始

在页面中引入构建后的脚本,并准备挂载容器:

<script src="https://unpkg.com/@hclonely/artitalk"></script>
<div id="artitalk_main"></div>
<script>
  new Artitalk({
    serverURL: 'https://your-vercel-app.vercel.app',
    pageSize: 5,
    blackAndWhiteTheme: true
  });
</script>

如果使用本仓库的测试页面,可以直接打开 test/test_page.html 查看集成示例。部署 Vercel 服务端的说明见 server/README.md

目录结构

.
├─ dist/                         # 构建产物
│  ├─ css/artitalk.min.css
│  └─ js/
│     ├─ artitalk.js
│     └─ artitalk.min.js
├─ server/                       # Vercel + Neon Postgres 服务端
├─ src/
│  ├─ core/                      # TypeScript:数据、DOM、版本、表情等核心逻辑
│  ├─ css/main.scss              # 组件样式
│  ├─ html/                      # HTML 片段
│  ├─ modules/                   # TypeScript:初始化、内容渲染、上传等 UI 模块
│  ├─ plugins/                   # 第三方依赖及 TypeScript:浏览器识别、AV 兼容层等
│  ├─ types/                     # 浏览器全局变量和第三方库声明
│  └─ main.ts                    # TypeScript Artitalk 入口
├─ test/test_page.html           # 前端集成测试页面
├─ rollup.config.js              # 构建配置
└─ package.json

资源说明

  • lazy.html: 加载动画源自 CodePen: https://codepen.io/tholman/pen/yenku
  • showdown.min.js: https://github.com/showdownjs/showdown
  • browser.js: https://github.com/ok-dok/judge-browser/blob/master/judge-browser.js
  • md5.js: https://github.com/blueimp/JavaScript-MD5

参与贡献

  1. Fork 本项目
  2. 基于目标分支创建新分支并提交修改
  3. 执行必要的构建、Lint 和测试
  4. 发起 Pull Request,并说明变更内容和验证结果

开发与验证

src/ 中的业务逻辑以 TypeScript 维护;第三方依赖文件保留其原始 JavaScript 格式。项目使用 Rollup 构建,安装依赖后,提交前请运行:

npm run typecheck
npm test
npm run build

npm run typecheck 检查 TypeScript 类型,npm test 运行类型检查和 ESLint,npm run build 生成发布用的 dist/js/artitalk.jsdist/js/artitalk.min.js