@quantabit/community-sdk
v1.0.4
Published
QuantaBit Community SDK - Community topics, discussions, and content management
Readme
@quantabit/community-sdk
QuantaBit Community SDK - Community topics, discussions, and content management
📦 Installation
npm install @quantabit/community-sdk
# or
yarn add @quantabit/community-sdk🚀 Quick Start
Using Components
import {
TopicList, TopicCard, TopicDetail,
PostEditor, PostList,
CommunityHome,
} from '@quantabit/community-sdk';
import '@quantabit/community-sdk/styles';
// Community homepage
<CommunityHome />
// Topic list
<TopicList showCategories showSearch />
// Post editor
<PostEditor topicId="topic_123" onSubmit={(post) => console.log(post)} />Using Hooks
import {
useTopics, useTopicDetail, usePosts,
useCreatePost, useCommunityStats,
} from "@quantabit/community-sdk";
function MyComponent() {
const { topics, loading } = useTopics();
const { posts, loadMore } = usePosts("topic_123");
const { createPost } = useCreatePost();
const { stats } = useCommunityStats();
return <div>...</div>;
}📚 Components
| Component | Description |
| --------------- | ------------------------------------ |
| CommunityHome | Full community homepage |
| TopicList | Topic list with categories |
| TopicCard | Single topic card |
| TopicDetail | Topic detail with posts |
| PostEditor | Rich text post editor |
| PostList | Post list with pagination |
📄 License
MIT License
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
