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

@lain14138/realtime-background-assistant

v2026.3.12

Published

OpenClaw realtime background assistant plugin

Readme

实时后台助手

OpenClaw 插件提供:

  • 桌面截图工具
  • 用于后台助手的本地 HTTP 聊天桥

HTTP 接口

该插件启动一个本地 HTTP 服务器。默认监听 127.0.0.1:18189 并暴露:

  • GET /health - 健康检查
  • POST /chat - 向助手发送消息

POST /chat

请求体字段:

  • message - 必须,用户消息
  • agentId - 可选,代理 ID,默认为 main
  • conversationId - 可选,会话 ID,默认为 main
  • sessionKey - 可选,显式会话键
  • systemPrompt - 可选,额外系统提示
  • lane - 可选,传递给子代理运行时的路线名称
  • deliver - 可选布尔值,默认为 false
  • timeoutMs - 可选,等待超时时间(毫秒)
  • includeMessages - 可选布尔值,设为 true 时返回会话消息
  • maxMessages - 可选,读取的最大消息数
  • idempotencyKey - 可选,请求键用于重试安全如果省略 idempotencyKey,插件现在会在调用子代理运行时之前自动生成一个。

示例

curl -X POST http://127.0.0.1:18189/chat ^
  -H "content-type: application/json" ^
  -d "{\"message\":\"你好\"}"

对于支持重试安全的客户端,也可以明确发送相同请求:

curl -X POST http://127.0.0.1:18189/chat ^
  -H "content-type: application/json" ^
  -d "{\"message\":\"你好\",\"idempotencyKey\":\"chat-001\"}"

响应

成功响应包括:

  • ok
  • status
  • agentId
  • conversationId
  • sessionKey
  • runId
  • assistantText
  • messageCount

配置

http

  • host - 绑定主机,默认 127.0.0.1
  • port - 绑定端口,默认 18189
  • basePath - 聊天路由路径,默认 /chat

assistant

  • defaultAgentId - 默认代理 ID,默认 main
  • defaultConversationId - 默认会话 ID,默认 main
  • defaultSystemPrompt - 可选的额外系统提示runTimeoutMs - 助手运行的等待超时
  • maxMessages - 从会话中读取的消息数量

screenshot

  • timeoutMs - 截图捕获超时
  • maxBytes - 截图的最大字节数