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

aix-plugins-aitools

v1.1.31

Published

npm i aix-plugins-aitools@latest

Readme

下载插件

npm i aix-plugins-aitools@latest

在main.js中引入

import aiAudio from 'alx-plugins' import '../node_modules/alx-plugins/AITools.css' app.use(aiAudio)

import aiVideo from 'aix-plugins-aitools' app.use(aiVideo)

-----------------------------------------音频组件-----------------------------------------------------------

在页面中使用,具体使用方法参考 本项目下views/index

<aiAudio ref="audioRef" :audioSrc="audioSrc" @saveClick="saveClick" @auditionClick="auditionClick">

auditionClick方法为【试听按钮】抛出方法

requestData 为插件返回的参数数据,用于请求api接口

const auditionClick = (requestData) => {

  • 开启按钮loading audioRef.value.startLoading = true
  • 定义api接口 api(requestData).then(res => {
    • 处理业务逻辑,获取到返回的res.data.url,并给插件传递生成的音频src audioSrc.value = res.data.url .......
    • 关闭按钮loading audioRef.value.startLoading = false }) }

saveClick 方法为【存储按钮】抛出方法

const saveClick = (requestData) => { audioRef.value.saveLoading = true ....... audioRef.value.saveLoading = false }

-----------------------------------------视频组件-----------------------------------------------------------

在页面中使用,具体使用方法参考 本项目下views/index1

<AiVideo :options="options" # 配图风格选项 :config="applyVal" # 语音生成配置 :emotionConfig="emotionObj" # 语音多情感配置 :showItemList="visibleList" # 是否显示故事列表 :backgroundMusic="backgroundMusicInfo" # 背景音乐 :items="itemList" # 故事列表。 @createNow="handleCreateNow" # 立即生成按钮回调 @back="handleBack" # 返回按钮回调 @addItem="handleAddItem" # 新增章节回调 @delItem="handleDelItem" # 删除章节回调 @upload="handleFileChange" # 图片、语音上传回调 @delMusic="handleDelMusic" # 删除背景音乐回调 @generate="handleGenerate" # 生成动画回调 @save="handleSave" # 保存绘本回调 @recreate="handeRecreate" # 重新创建回调 @contentChange="handleContentChanged" # 章节故事变更回调 >