open-index/open-npm huggingface dataset:
npm package: @tai-design/components
Description: TAI Design - A modern React component library with theme support and dark mode
Author: tai-design
Latest version: 1.0.0

# @tai-design/components

TAI Design 组件库 — 现代化 React 组件库，内置主题系统与暗色模式支持。

## 安装

```bash
# pnpm
pnpm add @tai-design/components

# npm
npm install @tai-design/components

# yarn
yarn add @tai-design/components
```

### Peer Dependencies

需要同时安装以下依赖：

```bash
pnpm add react react-dom framer-motion
```

## 快速开始

```tsx
import { ThemeProvider, Button, useTheme } from '@tai-design/components';

function App() {
  return (
    <ThemeProvider defaultDark={false}>
      <MyPage />
    </ThemeProvider>
  );
}

function MyPage() {
  const { tokens } = useTheme();

  return (
    <div style={{ background: tokens.bgColor.page, padding: 24 }}>
      <Button variant="primary">Hello TAI Design</Button>
    </div>
  );
}
```

## 组件列表

| 组件 | 说明 |
|------|------|
| `Button` | 按钮（primary / secondary / tertiary / ghost / danger） |
| `Input` | 输入框 |
| `Checkbox` | 多选框 |
| `Switch` | 开关 |
| `Slider` | 滑块 |
| `Tag` | 标签 |
| `Badge` | 徽标 |
| `Card` | 卡片（gray / white / elevated / transparent） |
| `Divider` | 分割线 |
| `List` / `ListItem` | 列表 |
| `Comment` | 评论 |
| `Tabs` | 标签页 |
| `Image` | 图片 |
| `Video` | 视频 |
| `AudioPlayer` | 音频播放器 |
| `ChoicePicker` | 选择器（radio / checkbox 模式） |
| `Dialog` | 弹窗 |
| `Toast` | 轻提示 |
| `Tips` | 提示气泡 |
| `Push` | 推送通知 |
| `Loading` | 加载 |
| `ActionSheet` | 动作面板 |
| `ThemeProvider` / `useTheme` | 主题系统 |

## 主题支持

所有组件自动适配浅色/暗色模式，通过 `useTheme()` 获取语义化颜色 token：

```tsx
const { tokens, isDark } = useTheme();

// 语义化颜色
tokens.textColor.primary    // 主要文字
tokens.bgColor.container    // 容器背景
tokens.borderColor.level1   // 主要边框
tokens.functionalColor.danger.main  // 危险色
```

## License

MIT
npm package: @tai-network/node
Description: Tai Node Operator - Run relay infrastructure for decentralized video and earn rewards
Author: Tai Network
Latest version: 0.1.1

# Tai Node Package

CLI tool for running Tai Network relay/caching nodes. Part of the [Tai Network](../Tai-Docs) ecosystem.

## Overview

Node operators provide bandwidth and caching for the Tai Network, earning rewards based on uptime and performance. Nodes serve as the decentralized CDN layer for video delivery.

## How It Works

1. **Stake SUI** to register as a node operator
2. **Run the node** to cache and serve video content
3. **Earn rewards** proportional to bandwidth served

## Project Structure

```
Tai-Node-Package/
├── src/               # TypeScript CLI source
├── contract/          # Node operator Move contract
├── scripts/           # Utility scripts
└── dist/              # Compiled output
```

## Smart Contract

Located in `/contract/sources/node_operator.move`:

- Node registration with staking
- Uptime tracking
- Reward distribution
- Slashing for poor performance

## Installation

```bash
# From npm (when published)
npm install -g @tai-network/node

# From source
git clone <repo>
cd Tai-Node-Package
npm install
npm run build
npm link
```

## Usage

### Start Signaling + TURN

```bash
tai-node start --port 8080 --turn-port 3478 --realm tai.io
```

### Start Relay

```bash
tai-node relay --port 8081 --walrus
```

### Register Node Operator

```bash
tai-node register \
  --endpoint wss://relay.example.com:8081 \
  --region us-east \
  --network testnet
```

### Check Status

```bash
tai-node status --network testnet
```

### Join as Agent

```bash
tai-node agent \
  --config ./agent.config.json \
  --room room-123 \
  --mode meeting \
  --signaling-url ws://localhost:8080
```

## Development

```bash
# Install dependencies
npm install

# Build CLI
npm run build

# Run locally
npm start

# Run tests
npm test
```

## Requirements

- Node.js >= 18
- Sui CLI (for wallet management)
- Minimum 100 SUI stake
- Reliable internet connection
- Sufficient disk space for caching

## Configuration

Create `.env`:

```env
SUI_PRIVATE_KEY=suiprivkey1...
NODE_OPERATOR_PACKAGE_ID=0x...
NODE_OPERATOR_REGISTRY_ID=0x...

# Required for agent mode
AGENT_ID=0x...
SIGNER_KEY=suiprivkey1...
SAI_PACKAGE_ID=0x...
SAI_REGISTRY_ID=0x...

# Optional infra endpoints
WALRUS_AGGREGATOR_URL=https://aggregator.walrus-testnet.walrus.space
WALRUS_PUBLISHER_URL=https://publisher.walrus-testnet.walrus.space
```

## Related

- [Tai-Live](../Tai-Live) — Streaming platform
- [Tai-Meet](../Tai-Meet) — Video conferencing
- [Tai-SDK](../Tai-SDK) — Developer SDK
- [Tai-Docs](../Tai-Docs) — Documentation
- [VISION.md](VISION.md) — Node operator vision

## License

MIT