@eyepop.ai/react-native-eyepop

中文文档
4.0.0发布于 2026/11/14MITTypeScriptESM + CJS构建来源已验证近 30 天下载 2707

The official Typescript library for EyePop.ai's inference API for React Native

原始使用文档
文档目录4 节
  1. Usage
  2. Required packages
  3. Contributing
  4. License

react-native-eyepop

The official Typescript library for EyePop.ai's inference API for React Native

Usage

Required packages

EyePop provides a ReactNative specific package that replaces some underlying packages to support local file access, WebRTC-based live streaming and uniform networking including fast streamed HTTP request and response bodies. The latter is necessary because the EyePop protocol is designed to operate in streaming mode for all media types and inference responses.

npm i @eyepop.ai/react-native-eyepop --save

In the current version, the application still has to include some extra libraries in their own package.json. Although those packages are defined as peerDependencies, they will be included, but neither expo nor react-native/cli will autolink their native implementations (note: there must be a better solution, feedback from ReactNative experts is welcome).

Theses are all the dependencies to add to the application's package.json:

{
  "dependencies": {
    "@eyepop.ai/react-native-eyepop": "3.16.0",
    "react-native-canvas": "^0.1.40",
    "react-native-file-access": "^3.1.1",
    "react-native-polyfill-globals": "^3.1.0",
    "react-native-tcp-socket": "^6.2.0",
    "react-native-webrtc": "^124.0.5",
    "web-streams-polyfill": "^3.3.3"
  }
}

Use the EyePop namespace from @eyepop.ai/react-native-eyepop with the identical API as the original @eyepop.ai/eyepop package, including WorkerOptions.pop for transient ModelLess sessions and WorkerOptions.sessionUuid for persistent sessions.

import { EyePop } from '@eyepop.ai/react-native-eyepop';

const endpoint = EyePop.workerEndpoint({
    auth: { session },
})

// ....

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

版本与发布记录

@eyepop.ai/react-native-eyepop 共发布 68 个版本,首次发布于 2025/03/25;过去 12 个月发布了 50 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.0.0latest2026/11/14今天
4.0.0-rc.3next2026/11/14今天
4.0.0-rc.22026/11/131 天前
4.0.0-rc.12026/11/131 天前
3.27.12026/11/131 天前
3.27.02026/11/104 天前

关于 @eyepop.ai/react-native-eyepop 的常见问题

@eyepop.ai/react-native-eyepop 是什么?

The official Typescript library for EyePop.ai's inference API for React Native

如何安装 @eyepop.ai/react-native-eyepop?

在项目目录运行 npm install @eyepop.ai/react-native-eyepop,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react-native-canvas(^0.1.40)、react-native-webrtc(^124.0.5)、react-native-tcp-socket(^6.2.0)、react-native-file-access(3.1.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@eyepop.ai/react-native-eyepop 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@eyepop.ai/react-native-eyepop 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@eyepop.ai/react-native-eyepop 可以商用吗?

@eyepop.ai/react-native-eyepop 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@eyepop.ai/react-native-eyepop 的下载量有多少?

根据 npm 官方下载统计,@eyepop.ai/react-native-eyepop 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,707 次,日均约 90 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@eyepop.ai/react-native-eyepop 还在维护吗?

最新版本 4.0.0 发布于 2026/11/14(今天);至今共发布 68 个版本,其中过去 12 个月发布了 50 个;首次发布于 2025/03/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。