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

@karinjs/plugin-ffmpeg

v0.1.3

Published

Provide Karin with an out of the box plugin for ffmpeg binary files

Readme

@karinjs/plugin-ffmpeg

一个为 Karin 提供开箱即用的 FFmpeg 二进制文件的插件,运行时自动下载 FFmpeg。

📦 安装

pnpm add @karinjs/plugin-ffmpeg -w

运行时会从淘宝源镜像下载 FFmpeg、FFprobe 和 FFplay(仅 Windows)二进制文件。

🛠️ 开发

本地开发

# 安装依赖
pnpm install

# 开发模式
pnpm dev

# 构建
pnpm build
# 测试
pnpm test

使用方式

import ffmpeg from '@karinjs/plugin-ffmpeg'

const paths = await ffmpeg.ready()
console.log(paths.ffmpegPath)

const syncPaths = ffmpeg.readySync()
console.log(syncPaths.ffmpegPath)

项目结构

src/
├── index.ts        # 主入口,提供 FFmpeg 路径访问
└── types.ts        # TypeScript 类型定义

dist/               # 编译输出目录
├── index.mjs
└── index.d.mts

💡 常见问题

下载失败怎么办?

插件会自动从淘宝源镜像拉取可用版本并下载匹配平台的包,如果所有源都失败,请检查网络连接与镜像是否可访问。

运行时解压依赖系统 tar 命令,请确保系统可用。

FFmpeg 来源

本插件使用 KarinJS/FFmpeg-Builds 的构建产物,并通过淘宝源镜像下载。

下载源列表

下载镜像入口:

  • https://registry.npmmirror.com/-/binary/ffmpeg-builds/

支持哪些平台?

  • Windows (x64, x86)
  • Linux (x64, arm64, i686)
  • macOS (暂不支持,构建产物不包含 darwin 目标)

存储位置

FFmpeg 二进制文件会下载到 ~/.cache/ffmpeg/ffmpeg-<platform>-<version>/ 目录中。

📄 许可证

MIT

🤝 贡献

欢迎提交 Issue 和 Pull Request!