arnab-4 /
Destroyer
Welcome to our AI-based website, where cutting-edge technology meets user-centric experiences. Harnessing the power of Artificial Intelligence
33/100 healthLoading repository data…
Clarifai / repository
Experience the power of Clarifai’s AI platform with the nodejs SDK. 🌟 Star to support our work!
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This library is currently in developer preview, any improvements & feedback welcome!
This is the official Node.js client for interacting with our powerful API. The Clarifai Node.js SDK offers a comprehensive set of tools to integrate Clarifai's AI platform to leverage computer vision capabilities like classification, detection, segmentation and natural language capabilities like classification, summarisation, generation, Q&A, etc into your applications. With just a few lines of code, you can leverage cutting-edge artificial intelligence to unlock valuable insights from visual and textual content.
Website | Schedule Demo | Signup for a Free Account | API Docs | Clarifai Community | Node.js SDK Docs | Examples | Discord
Give the repo a star ⭐
npm install clarifai-nodejs
To use Clarifai Node.js in Next.js App Directory with server components, you will need to add clarifai-nodejs-grpc package (which is one of the primary dependency of Clarifai Node.js SDK) to the serverComponentsExternalPackages config of
Selected from shared topics, language and repository description—not editorial ratings.
arnab-4 /
Welcome to our AI-based website, where cutting-edge technology meets user-centric experiences. Harnessing the power of Artificial Intelligence
33/100 healthCiprian-LocalPulse /
World Room — A cinematic AI-powered immersive environment demonstrating the future of digital interactive experiences. Public showcase repository.
65/100 healthnext.config.js/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ['clarifai-nodejs-grpc'],
},
}
module.exports = nextConfig
Clarifai uses Personal Access Tokens(PATs) to validate requests. You can create and manage PATs under your Clarifai account security settings.
Export your PAT as an environment variable. Then, import and initialize the API Client.
Set PAT as environment variable through terminal:
export CLARIFAI_PAT={your personal access token}
or use dotenv to load environment variables via a .env file
Using the celebrity face recognition model to predict the celebrity in a given picture. For list of all available models visit clarifai models page.
import { Input, Model } from "clarifai-nodejs";
const input = Input.getInputFromUrl({
inputId: "test-image",
imageUrl:
"https://samples.clarifai.com/celebrity.jpeg",
});
const model = new Model({
authConfig: {
pat: process.env.CLARIFAI_PAT!,
userId: process.env.CLARIFAI_USER_ID!,
appId: process.env.CLARIFAI_APP_ID!
},
modelId: "celebrity-face-recognition",
});
model
.predict({
inputs: [input],
})
.then((response) => {
const result = response?.[0].data?.conceptsList[0].name ?? "unrecognized";
console.log(result);
})
.catch(console.error);
Using a custom workflow built on clarifai.com to analyze sentiment of a given image. For list of all available workflows visit clarifai workflows page
import { Input, Workflow } from "clarifai-nodejs";
const input = Input.getInputFromUrl({
inputId: "test-image",
imageUrl:
"https://samples.clarifai.com/celebrity.jpeg",
});
const workflow = new Workflow({
authConfig: {
pat: process.env.CLARIFAI_PAT!,
userId: process.env.CLARIFAI_USER_ID!,
appId: process.env.CLARIFAI_APP_ID!
},
workflowId: "workflow-238a93",
});
workflow
.predict({
inputs: [input],
})
.then((response) => {
const result =
response.resultsList[0].outputsList[0].data?.regionsList[0].data
?.conceptsList[0].name ?? "unrecognized";
console.log(result);
})
.catch(console.error);
On Clarifai, apps act as a central repository for models, datasets, inputs and other resources and information. Checkout how to create apps on clarifai portal.
import { User } from "clarifai-nodejs";
export const user = new User({
pat: process.env.CLARIFAI_PAT!,
userId: process.env.CLARIFAI_USER_ID!,
appId: process.env.CLARIFAI_APP_ID!,
});
const list = await user
.listApps({
pageNo: 1,
perPage: 20,
params: {
sortAscending: true,
},
})
.next();
const apps = list.value;
console.log(apps);
For full usage details, checkout our API Reference docs
78gk /
BlogAI is a modern, intelligent blogging platform that combines the power of artificial intelligence with traditional content management. Built with Next.js 15, TypeScript, and Prisma, it offers a seamless experience for both content creators and readers.
arleyhr /
Mood Muse AI is a modern web application that combines the power of artificial intelligence with music to create personalized experiences. Built with React, TypeScript, and Firebase, this project offers a seamless and intuitive interface for music exploration and mood-based recommendations.
34/100 healthKrinalSojitra21 /
AI Poem Generator is an innovative web application that harnesses the power of artificial intelligence to create unique and inspiring poems. By leveraging the Anthropic API and a suite of modern web technologies, this project offers users a seamless and interactive experience in generating AI-crafted poetry.
34/100 healthRahu09 /
Pen.AI is a SaaS platform allowing PDF document interaction through the power of artificial intelligence (AI). Developed with a focus on seamless user experience and advanced functionality, Pen.AI offers a comprehensive solution for managing and interacting with PDF documents like never before.
48/100 health