10.11.1 • Published 9 days ago

clarifai-web-grpc v10.11.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 days ago

image

clarifai-web-grpc

The official Clarifai gRPC client for use in client browser applications.

NPM

Installation

yarn add clarifai-web-grpc

Usage

import { ClarifaiStub } from "clarifai-web-grpc";
import { App } from "clarifai-web-grpc/proto/clarifai/api/resources_pb";
import { PostAppsRequest } from "clarifai-web-grpc/proto/clarifai/api/service_pb";

// get a client object
const client = ClarifaiStub.promise()

// create an app
const app = new App();
app.setId("cat-app");
app.setDefaultWorkflowId("General-Detection");
app.setDescription("An app for some cats");

// create a request
const req = new PostAppsRequest();
req.setAppsList([app]);

// send the request
const auth = {
  "authorization": `Key ${process.env.CLARIFAI_TOKEN}`,
};
const resp = await client.postApps(req, auth);

// log the app id
console.log(resp.getAppsList()[0].getId());

Examples

See the examples directory for more examples of how to use the clarifai API client

Publishing to NPM

Publishing the client to NPM involves merging a PR with 2 things: 1. Updates the version field in package.json to the appropriate version. 2. Commit message should begin with "GRPC clients version" eg "GRPC clients version 9.4.0".

10.11.1

9 days ago

10.11.0

11 days ago

10.10.2

24 days ago

10.10.1

1 month ago

10.10.0

1 month ago

10.9.4

2 months ago

10.9.2

2 months ago

10.9.3

2 months ago

10.9.1

2 months ago

10.9.0

2 months ago

10.8.0

4 months ago

10.8.1

4 months ago

10.8.2

4 months ago

10.8.3

4 months ago

10.8.4

4 months ago

10.8.5

3 months ago

10.8.6

3 months ago

10.8.7

3 months ago

10.7.2

4 months ago

10.7.1

4 months ago

10.7.0

5 months ago

10.6.5

5 months ago

10.6.4

5 months ago

10.6.0

6 months ago

10.6.1

5 months ago

10.6.2

5 months ago

10.6.3

5 months ago

10.5.3

6 months ago

10.5.2

6 months ago

10.5.1

6 months ago

10.5.0

7 months ago

10.4.1

7 months ago

10.4.0

7 months ago

10.3.3

8 months ago

10.3.2

8 months ago

10.3.1

8 months ago

10.3.0

9 months ago

10.2.1

9 months ago

10.1.6

10 months ago

10.1.5

10 months ago

10.1.4

10 months ago

10.1.2

11 months ago

10.1.3

11 months ago

10.1.1

11 months ago

10.1.0

11 months ago

10.0.9

11 months ago

10.0.10

11 months ago

10.0.8

11 months ago

10.0.6

11 months ago

10.0.7

11 months ago

10.0.5

11 months ago

10.0.4

11 months ago

10.0.3

11 months ago

10.0.2

12 months ago

10.0.1

12 months ago

10.0.0

12 months ago

9.11.5

12 months ago

9.11.4

1 year ago

9.11.3

1 year ago

9.11.2

1 year ago

9.11.1

1 year ago

9.6.1

1 year ago

9.10.6

1 year ago

9.10.7

1 year ago

9.10.8

1 year ago

9.10.4

1 year ago

9.10.5

1 year ago

9.11.0

1 year ago

5.1.0

2 years ago

5.0.0

2 years ago

4.2.0

2 years ago

3.0.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago