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

orange-agent-ui-vue

v0.4.0

Published

Vue 3 chat UI for Orange Agent BFF integrations

Downloads

166

Readme

Orange Agent UI for Vue

橘子智能体平台的 Vue 3 对话组件。支持连续会话、SSE 流式文本、图片/音频/视频附件、微信式语音消息,以及智能体返回语音的播放、暂停和重播。

组件只调用业务系统自己的 BFF。请勿把橘子智能体 API Key 放入前端代码。

安装

pnpm add orange-agent-ui-vue

或:

npm install orange-agent-ui-vue

使用

<script setup lang="ts">
import { OrangeAgentChat } from "orange-agent-ui-vue";
import "orange-agent-ui-vue/style.css";
</script>

<template>
  <OrangeAgentChat
    endpoint="/api/agent"
    title="淡水养殖技术顾问"
    external-user-id="current-user-10001"
    :response-audio="true"
  />
</template>

你的业务后端需要把 /api/agent 代理到橘子智能体平台,并在服务端注入 API Key。推荐配合 io.github.juziiv:orange-agent-sdk 使用。

Props

| 属性 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | endpoint | string | /api/agent | 业务系统 BFF 地址 | | externalUserId | string | 必填 | 业务用户稳定标识 | | externalConversationId | string | 空 | 业务会话标识 | | title | string | 智能助手 | 对话标题 | | subtitle | string | 智能体在线 | 对话副标题 | | responseAudio | boolean | true | 请求智能体返回语音 | | requestHeaders | function | 空 | 为 BFF 请求动态增加业务鉴权头 | | accent | string | #f36b2b | 主题色 | | avatarUrl | string | /orange-agent-icon.png | 智能体头像地址 | | suggestions | string[] | 内置示例 | 欢迎页推荐问题 |

本地开发

pnpm install --frozen-lockfile
pnpm test
pnpm build
npm pack --dry-run

发布 npm

本仓库在发布 GitHub Release(标签格式 v0.4.0)时执行 npm 发布,也支持手动触发。首次发布前需要:

  1. 创建启用发布权限的 npm granular access token;若账号启用了 2FA,token 需允许绕过发布 2FA。
  2. 在 GitHub 仓库配置 Actions Secret:NPM_TOKEN
  3. 确认 package.json 版本与 Git 标签一致后创建 Release。

npm 已发布版本不可覆盖,修改后必须提升版本号。

License

MIT License