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

kslock-daemon

v0.1.8

Published

Local machine daemon for kslock agent collaboration.

Downloads

729

Readme

kslock-daemon

本机 daemon 负责连接 KSLock API,检测本机 runtime,并在用户机器上执行 Agent Delivery。

Usage

npx -y kslock-daemon@latest start \
  --server-url https://kslock.example.com \
  --machine-key mk_xxx

本地源码调试:

KSLOCK_SERVER_URL=http://127.0.0.1:3001
KSLOCK_MACHINE_KEY=mk_xxx
pnpm dev:daemon

daemon 通过 /daemon/connect 连接 API WebSocket,执行 Codex、Claude、KSCC、OpenCode 等本地 CLI runtime。

Runtime Paths

建议显式指定 runtime CLI 路径,避免 nvm、多 Node 版本或 shell PATH 差异导致 daemon 找错命令:

CODEX_BIN=/absolute/path/to/codex \
CLAUDE_BIN=/absolute/path/to/claude \
KSCC_BIN=/absolute/path/to/kscc \
OPENCODE_BIN=/absolute/path/to/opencode \
npx -y kslock-daemon@latest start \
  --server-url https://kslock.example.com \
  --machine-key mk_xxx

也支持:

<COMMAND>_BIN
<COMMAND>_PATH
KSLOCK_<COMMAND>_BIN
KSLOCK_RUNTIME_<COMMAND>_BIN
KSLOCK_RUNTIME_PATHS
KSLOCK_RUNTIME_PATH

Runtime Session

daemon 会按 scope 保存 runtime session,避免多人在频道里调用同一个本地助手时上下文混乱。

scope 优先级:

task > thread > user > channel

含义:

  • 任务 thread 使用共享 session,适合团队协作 review。
  • 普通频道 @Agent 按 agentId + channelId + requesterUserId 隔离。
  • 没有 task/thread/requester 时回退到频道级 session。