The official gRPC-web client for the Clarifai API, designed for browser applications. Version 12.4.5 is the latest stable release. It does not support direct browser-to-API calls due to CORS restrictions; a proxy server is required. The package ships TypeScript types and relies on protobuf-generated classes. Releases are tied to the underlying Clarifai gRPC spec version. Use ClarifaiStub.promise() to get a client instance and protobuf message classes for API interactions.
npm install clarifai-web-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Clarifai app using the gRPC client; demonstrates stub instantiation, protobuf message setup, and authenticated request.
Set up a backend proxy server to forward requests from frontend to Clarifai.
Use ClarifaiStub.promise() instead of deprecated constructors.
Switch to ClarifaiStub.promise() and async/await.
Use lowercased paths like 'clarifai-web-grpc/proto/clarifai/api/service_pb'.
Use { authorization: 'Key ...' } not { Authorization: 'Key ...' }.Ensure clarifai-web-grpc is installed: yarn add clarifai-web-grpc
Use import { ClarifaiStub } from 'clarifai-web-grpc'Use a backend proxy server.
Import PostAppsRequest from 'clarifai-web-grpc/proto/clarifai/api/service_pb'