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

@bililive-tools/manager

v1.12.0

Published

Batch scheduling recorders

Readme

Intro

原项目:https://github.com/WhiteMinds/LiveAutoRecord

这是 biliLive-tools 的一个平台插件,支持管理录播

安装

建议所有录制器和manager包都升级到最新版,我不会对兼容性做过多考虑

npm i @bililive-tools/manager

支持的平台

| 平台 | 包名 | | ---- | ----------------------------------- | | B站 | @bililive-tools/bilibili-recorder | | 斗鱼 | @bililive-tools/douyu-recorder | | 虎牙 | @bililive-tools/huya-recorder | | 抖音 | @bililive-tools/douyin-recorder |

使用

以B站举例

import { createRecorderManager } from "@bililive-tools/manager";
import { provider } from "@bililive-tools/bilibili-recorder";

const manager = createRecorderManager({
  providers: [provider],
  savePathRule: "D:\\录制\\{platforme}}/{owner}/{year}-{month}-{date} {hour}-{min}-{sec} {title}", // 保存路径,占位符见文档,支持 [ejs](https://ejs.co/) 模板引擎
  autoCheckInterval: 1000 * 60, // 自动检查间隔,单位秒
  maxThreadCount: 3, // 检查并发数
  waitTime: 0, // 检查后等待时间
  autoRemoveSystemReservedChars: true, // 移除系统非法字符串
  biliBatchQuery: false, // B站检查使用批量接口
});

// 不同provider支持的参数不尽相同,具体见相关文档

manager.addRecorder({
  providerId: provider.id,
  channelId: "7734200",
  quality: 10000,
  streamPriorities: [],
  sourcePriorities: [],
});
manager.startCheckLoop();

函数

addRecorder

添加录制器,具体参数见各录制插件

removeRecorder

移除录制器

startCheckLoop

开启自动监听

stopCheckLoop

停止自动监听

startRecord

手动开启录制

stopRecord

手动开启录制

setFFMPEGPath & setMesioPath

import { setFFMPEGPath, setMesioPath, setBililivePath } from "@bililive-tools/manager";

// 设置ffmpeg可执行路径
setFFMPEGPath("ffmpeg.exe");

// 设置mesio可执行文件路径
setMesioPath("mesio.exe");

// 设置录播姬录制器的可执行文件路径
setBililivePath("BililiveRecorder.Cli.exe");

savePathRule 占位符参数

默认值为 {platform}/{owner}/{year}-{month}-{date} {hour}-{min}-{sec} {title}

| 值 | 标签 | | ----------------- | ------------------------------------------ | | {platform} | 平台 | | {channelId} | 房间号 | | {remarks} | 备注 | | {owner} | 主播名 | | {title} | 标题 | | {year} | 年 | | {month} | 月 | | {date} | 日 | | {hour} | 时 | | {min} | 分 | | {sec} | 秒 | | {startTime} | 分段开始时间,Date对象 | | {recordStartTime} | 录制开始时间,Date对象 | | {liveStartTime} | 直播开始时间,Date对象,抖音同录制开始时间 |

事件

RecordStart

录制开始

RecordStop

录制结束

error

错误

RecorderDebugLog

录制相关的log

videoFileCreated

录制文件开始,如果开启分段,分段时会触发这两个事件,可以用来实现webhook

videoFileCompleted

录制文件结束

RecorderProgress

ffmpeg录制相关数据

RecoderLiveStart

直播开始,并非录制开始,同一场直播不会重复触发

协议

与原项目保存一致为 LGPL