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

@aiopsv2/sdk

v2.2.1

Published

AIOps Platform SDK — Integrate AI content generation, TTS, agent marketplace, and analytics into any Node.js application.

Readme

@aiopsv2/sdk

AIOps 平台官方 SDK —— 用 Node.js 集成 AI 内容生成、TTS 语音合成、运营看板、Agent 市场与社媒账号管理等平台能力。

安装

npm install @aiopsv2/sdk

快速开始

const { AIOps } = require('@aiops/sdk');

const client = new AIOps({
  baseUrl: 'https://aiops.0xainet.top', // 平台地址(本地开发可用 http://localhost:5290)
  apiKey: 'sk-your-api-key',            // 平台签发的 API Key
});

// 生成社媒文案
const post = await client.content.generate('AI trends', 'twitter', 'professional');
console.log(post);

// 语音合成
const audio = await client.tts.synthesize('你好,欢迎使用 AIOps', 'zh-CN-XiaoxiaoNeural');
console.log(audio);

// 运营看板
const overview = await client.dashboard.overview();
console.log(overview);

API

content(内容)

| 方法 | 说明 | |------|------| | content.generate(topic, platform?, style?, opts?) | 生成社媒文案(platform: twitter/instagram/xiaohongshu/linkedin/facebook/tiktok/poster;style: professional/casual/humorous/inspirational/technical/minimal) | | content.list(params?) | 内容列表(分页) | | content.platforms() | 支持的平台 | | content.styles() | 支持的写作风格 | | content.get(id) | 内容详情 | | content.update(id, data) | 更新内容 | | content.delete(id) | 删除内容 |

tts(语音合成)

| 方法 | 说明 | |------|------| | tts.synthesize(text, voice?, opts?) | 文本转语音(80+ 神经音色) | | tts.voices(language?) | 音色列表(可按语言过滤) | | tts.history(params?) | 合成历史 |

dashboard(运营看板)

| 方法 | 说明 | |------|------| | dashboard.overview() | 当日用量总览 | | dashboard.quota() | 配额 / 限额 | | dashboard.trend(days?) | 用量趋势(默认 30 天) |

agents(Agent 市场)

| 方法 | 说明 | |------|------| | agents.marketplace(params?) | 搜索市场 | | agents.list(params?) | 我的 Agent 列表 | | agents.get(id) | Agent 详情 | | agents.run(id, message, skillNames?) | 运行 Agent | | agents.clone(id) | 克隆到工作区 |

accounts(社媒账号)

| 方法 | 说明 | |------|------| | accounts.list() | 账号列表(含近 7 日发布统计) | | accounts.connect(platform, credentials) | 接入平台账号 |

鉴权

所有请求通过 X-API-Key 请求头发送。API Key 在平台面板(Operator 侧)生成,支持 scopes 限制(只读等)。

⚠️ 只读约束:只读 scope 的 Key 仅允许 GET 请求,写操作(content.update / content.delete / agents.run 等)会返回 403。请按实际用途申请对应 scopes。

MCP 接入(AI 助手)

除 REST SDK 外,平台提供标准 MCP Server(stdio + SSE):

  • SSE(生产)https://aiops.0xainet.top/mcp/sse,请求头 X-API-Key
  • stdionode agent-bridge/mcp-server.js(需 AIOPS_API_URL / AIOPS_API_KEY 环境变量)

详细工具清单与客户端配置见 docs/MCP_USAGE.md

License

MIT