@quantabit/recommend-sdk
v1.0.2
Published
QuantaBit Recommendation SDK - Personalized content/product/user recommendations and cold-start strategies
Maintainers
Readme
@quantabit/recommend-sdk
QuantaBit Recommendation SDK - Personalized content/product recommendations and cold-start strategies
📦 Installation
npm install @quantabit/recommend-sdk
# or
yarn add @quantabit/recommend-sdk🚀 Quick Start
Using Components
import { RecommendCard, RecommendSection, GuessYouLike, SimilarItems } from '@quantabit/recommend-sdk';
<RecommendCard />
<RecommendSection />
<GuessYouLike />Using Hooks
import { useRecommendations, useSimilar, useHomeFeed, useColdStart, useRecommend } from '@quantabit/recommend-sdk';
function MyComponent() {
const result = useRecommendations();
const result = useSimilar();
const result = useHomeFeed();
return <div>...</div>;
}API Client
import { recommendApi } from '@quantabit/recommend-sdk';
// Use recommendApi for direct API calls
const data = await recommendApi.list();📚 Components
| Component | Description |
| --------- | ----------- |
| RecommendCard | Recommend Card component |
| RecommendSection | Recommend Section component |
| GuessYouLike | Guess You Like component |
| SimilarItems | Similar Items component |
🪝 Hooks
| Hook | Description |
| ---- | ----------- |
| useRecommendations | Recommendations management |
| useSimilar | Similar management |
| useHomeFeed | Home Feed management |
| useColdStart | Cold Start management |
| useRecommend | Recommend management |
📖 Type Definitions
import { RecommendType, RecommendAlgorithm, RecommendScene, FeedbackType } from '@quantabit/recommend-sdk';📄 License
MIT License
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
