@eyepop.ai/react-native-eyepop 1.15.1 → 1.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,21 +2,50 @@
2
2
 
3
3
  The official Typescript library for EyePop.ai's inference API for React Native
4
4
 
5
- ## Installation
5
+ ## Usage
6
6
 
7
- ```sh
8
- npm install react-native-eyepop
9
- ```
7
+ ### Required packages
10
8
 
11
- ## Usage
9
+ EyePop provides a ReactNative specific package that replaces some underlying packages to support local
10
+ file access, WebRTC-based live streaming and uniform networking including fast streamed HTTP request and
11
+ response bodies. The latter is necessary because the EyePop protocol is designed to operate in streaming
12
+ mode for all media types and inference responses.
12
13
 
14
+ ```shell
15
+ npm i @eyepop.ai/react-native-eyepop --save
16
+ ```
17
+
18
+ In the current version, the application still has to include some extra libraries in their own `package.json`.
19
+ Although those packages are defined as `peerDependencies`, they will be included, but neither expo nor
20
+ react-native/cli will autolink their native implementations (_note: there must be a better solution, feedback from ReactNative experts is welcome_).
21
+
22
+ Theses are all the dependencies to add to the application's `package.json`:
23
+
24
+ ```json
25
+ {
26
+ "dependencies": {
27
+ "@eyepop.ai/react-native-eyepop": "1.15.1",
28
+ "react-native-canvas": "^0.1.40",
29
+ "react-native-file-access": "^3.1.1",
30
+ "react-native-polyfill-globals": "^3.1.0",
31
+ "react-native-tcp-socket": "^6.2.0",
32
+ "react-native-webrtc": "^124.0.5",
33
+ "web-streams-polyfill": "^3.3.3"
34
+ }
35
+ }
36
+ ```
13
37
 
38
+ Use the `EyePop` namespace from `react-native-eyepop` with the identical Api as the original `eyepop` package.
14
39
  ```js
15
- import { multiply } from 'react-native-eyepop';
40
+ import { EyePop } from 'react-native-eyepop';
16
41
 
17
- // ...
42
+ const endpoint = EyePop.workerEndpoint({
43
+ auth: { secretKey: process.env.EXPO_PUBLIC_EYEPOP_API_KEY || '' },
44
+ popId: process.env.EXPO_PUBLIC_EYEPOP_POP_UUID,
45
+ eyepopUrl: process.env.EXPO_PUBLIC_EYEPOP_URL || undefined,
46
+ })
18
47
 
19
- const result = await multiply(3, 7);
48
+ // ....
20
49
  ```
21
50
 
22
51
 
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react-native" />
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
+ /// <reference types="node" />
4
5
  import 'react-native-polyfill-globals/auto';
5
6
  import { Logger } from 'pino';
6
7
  export declare class ResponseParser {
@@ -1 +1 @@
1
- {"version":3,"file":"rn_http_response_parser.d.ts","sourceRoot":"","sources":["../../../../src/rn_http_response_parser.ts"],"names":[],"mappings":";;;AAAA,OAAO,oCAAoC,CAAC;AAI5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAa9B,qBAAa,cAAc;IACzB,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoD;IAC5E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,sBAAsB,CAAK;IACnC,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,aAAa,CAAgB;IAErC,OAAO,CAAC,cAAc,CAAM;IAC5B,OAAO,CAAC,WAAW,CAA2B;IAC9C,OAAO,CAAC,UAAU,CAAuC;gBAGvD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,KAAK,IAAI,EAC1D,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI;IAazB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IA4HvD,OAAO,CAAC,IAAI;CA6Eb"}
1
+ {"version":3,"file":"rn_http_response_parser.d.ts","sourceRoot":"","sources":["../../../../src/rn_http_response_parser.ts"],"names":[],"mappings":";;;;AAAA,OAAO,oCAAoC,CAAC;AAI5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAa9B,qBAAa,cAAc;IACzB,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoD;IAC5E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,sBAAsB,CAAK;IACnC,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,aAAa,CAAgB;IAErC,OAAO,CAAC,cAAc,CAAM;IAC5B,OAAO,CAAC,WAAW,CAA2B;IAC9C,OAAO,CAAC,UAAU,CAAuC;gBAGvD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,KAAK,IAAI,EAC1D,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI;IAazB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IA4HvD,OAAO,CAAC,IAAI;CA6Eb"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react-native" />
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
+ /// <reference types="node" />
4
5
  import 'react-native-polyfill-globals/auto';
5
6
  import { Logger } from 'pino';
6
7
  export declare class ResponseParser {
@@ -1 +1 @@
1
- {"version":3,"file":"rn_http_response_parser.d.ts","sourceRoot":"","sources":["../../../../src/rn_http_response_parser.ts"],"names":[],"mappings":";;;AAAA,OAAO,oCAAoC,CAAC;AAI5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAa9B,qBAAa,cAAc;IACzB,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoD;IAC5E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,sBAAs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b"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyepop.ai/react-native-eyepop",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "description": "The official Typescript library for EyePop.ai's inference API for React Native",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/commonjs/index.js",