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

@detalk/static

v2.0.0

Published

The fastest way to add Detalk (Based on Deta) to your website. | 将 Detalk (Based on Deta) 加入你的网站。

Downloads

16

Readme

Detalk Client

⚡ The static files of Detalk(a simple comment plugin based on Deta).

⚡ 您部署 Detalk 的最快方式。

为什么是 Detalk?

  • 快,开箱即用。它不需要你写繁琐的配置文件,也不需要你定义麻烦的环境变量。
  • 轻,快速加载。前端打包文件仅 60kb, Gzip 压缩后仅 14kb! 同时,主要功能得以保留。
  • 易,免费部署。Detalk 在 Deta 平台上可免费快速部署。
  • 强,高自定义。Detalk 提供高自定义性,完整 API 支持,同时还具备脚本插件功能。

初始化

载入

最推荐的方法:

<script src="https://cdn.jsdelivr.net/npm/@detalk/static@latest/dist/detalk.js"></script>
<!-- 我们推荐您将 @latest 替换为所需的版本号 -->

初始化

首先,在页面上需要有一个空白的挂载点。

<div id="detalk"></div>

然后,您需要使用下方代码进行最简单的初始化:

detalk.init({
    // 挂载点 (CSS 选择器)
    el: "#detalk", // <div id="detalk"></div>
    // 后端地址
    url: "https://detalk.deta.dev/",
    // 当前页面的路径 (为空默认获取)
    path: window.location.pathname,
});

更多信息,请参考:「初始化 | Detalk.js」.

更多文档

如果需要更多支持文档,或是后端部署方法,请查看文档

加入讨论群

现在 Detalk 正在开发中,还会增加新功能。

欢迎加入 QQ 讨论群测试讨论,群号:914564265

反馈问题

如果在使用中出现任何问题,请在 GitHub 发起 Issue。

前端问题请前往 detalkjs/client,后端问题请前往 detalkjs/server 仓库。

同时,你也可以参与 GitHub 讨论