
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
chat_embedding
Advanced tools
支持 Typescript
聊天机器人嵌入脚本
$ npm install chat_embedding
import chatEmbedding from "chat_embedding"
chatEmbedding.run({
serverUrl: "http://10.0.10.100:8237",
})
// 聊天机器人服务地址
var serverUrl = "http://10.0.10.100:8237"
// 脚本文件地址
var jsFileUrl = serverUrl+"/static/js/chat_embedding.js"
var scriptTag = document.createElement('script');
scriptTag.src = jsFileUrl;
scriptTag.onload = function () {
chatEmbedding.default.run({serverUrl})
}
document.body.appendChild(scriptTag);
| Property | Description | Required | Default | Type |
|---|---|---|---|---|
| serverUrl | 聊天机器人服务地址 | 是 | string | |
| position | 聊天机器人位置 | 否 | {left:100,bottom:100,} | {left?:number,bottom?:number,right?:number,top?:number} |
| modalWidth | 聊天窗口宽 | 否 | 800 | number |
| modalHeight | 聊天窗口高 | 否 | 500 | number |
| logoSrc | 聊天窗口 logo 地址 | 否 | string |
FAQs
We found that chat_embedding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.