
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
This is the official JavaScript client for interacting with our powerful recognition API. The Clarifai API offers image and video recognition as a service. Whether you have one image or billions, you are only steps away from using artificial intelligence to recognize your visual content.
Install the API client:
npm install clarifai
Firstly, generate your Clarifai API key on the API keys page. The client uses it for authentication.
Then, use the code below to create a Clarifai.App
instance using which you interact with the client.
const Clarifai = require('clarifai');
const app = new Clarifai.App({
apiKey: 'YOUR_API_KEY'
});
This will work in node.js and browsers via Browserify.
You can also use the SDK by adding this script to your HTML:
<script type="text/javascript" src="https://sdk.clarifai.com/js/clarifai-latest.js"></script>
Dive right into code examples to get up and running as quickly as possible with our Quick Start.
Learn the basics — predicting the contents of an image, searching across a collection and creating your own models with our Guide.
Check out the JSDoc for a deeper reference.
Looking for a different client? We have many languages available with lots of documentation Technical Reference
You'll most likely encounter the error process.nextTick is not a function
while using this library with React Native.
To solve this, add process.nextTick = setImmediate;
as close to the top of your entrypoint as you can. See #20 for more info.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
FAQs
Official Clarifai Javascript SDK
The npm package clarifai receives a total of 1,953 weekly downloads. As such, clarifai popularity was classified as popular.
We found that clarifai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.