RoyalTix AI is a revolutionary platform that bridges the gap between AI content creation and blockchain-based intellectual property rights. Every piece of content generated or uploaded becomes a regis
# šØ RoyalTix AI - Blockchain IP Marketplace
**Transform AI-Generated Content into Valuable IP Assets**
RoyalTix AI is a revolutionary platform that bridges the gap between AI content creation and blockchain-based intellectual property rights. Every piece of content generated or uploaded becomes a registered IP asset on Story Protocol, giving creators permanent ownership and automatic royalty streams.
## š Live Demo
**Platform Features:**
- **AI Content Generation**: Images via Hugging Face Flux, Text via Groq Llama 3.3
- **Blockchain IP Registration**: Real transactions on Story Protocol Aeneid testnet
- **IPFS Storage**: Permanent decentralized storage via Pinata
- **Creator Dashboard**: Portfolio management for IP assets
- **Marketplace**: Browse and discover registered IP assets
## š What Makes RoyalTix AI Special
### Real Blockchain Integration
- ā
**Story Protocol**: Every asset is registered as IP on-chain
- ā
**IPFS Storage**: Permanent, decentralized content storage
- ā
**Transaction Verification**: All assets viewable on Story Explorer
- ā
**Smart Contracts**: Automated licensing and royalty distribution
### AI-Powered Content Creation
- š¼ļø **Image Generation**: Hugging Face Flux model for high-quality visuals
- š **Text Generation**: Groq Llama 3.3 70B for creative writing
- š **Content Upload**: Register existing content as IP assets
- šØ **Multi-Format Support**: Images, text, articles, poems, and more
### Professional Web3 UX
- š **Modern Design**: Dark theme with glowing effects and animations
- š± **Responsive**: Works perfectly on all devices
- ā” **Fast Performance**: Optimized Next.js 14 with TypeScript
- š **Wallet Integration**: Seamless Web3 connectivity
## š ļø Technology Stack
### Frontend
- **Next.js 14** - React framework with App Router
- **TypeScript** - Type-safe development
- **TailwindCSS** - Utility-first styling
- **Framer Motion** - Smooth animations
### Blockchain & Web3
- **Story Protocol SDK** - IP registration and management
- **Viem & Wagmi** - Ethereum interaction
- **Story Aeneid Testnet** - Blockchain network
### AI & Storage
- **Hugging Face** - AI image generation (Flux model)
- **Groq** - AI text generation (Llama 3.3 70B)
- **Pinata** - IPFS storage and management
## š Quick Start
### Prerequisites
- Node.js 18+
- npm or yarn
- Web3 wallet (MetaMask recommended)
### Installation
1. **Clone the repository**
```bash
git clone https://github.com/yourusername/royaltix-ai.git
cd royaltix-ai
```
2. **Install dependencies**
```bash
npm install
```
3. **Environment Setup**
Create `.env.local` file:
```env
# Story Protocol Configuration
NEXT_PUBLIC_STORY_RPC_URL=https://aeneid.storyrpc.io
STORY_PRIVATE_KEY=your_wallet_private_key
STORY_NFT_CONTRACT_ADDRESS=0xc32A8a0FF3beDDDa58393d022aF433e78739FAbc
# AI Services
HF_TOKEN=your_hugging_face_token
GROQ_API_KEY=your_groq_api_key
# Storage
PINATA_JWT=your_pinata_jwt_token
```
4. **Run the development server**
```bash
npm run dev
```
5. **Open your browser**
Navigate to `http://localhost:3000`
## š API Keys Setup
### Story Protocol
- Get testnet tokens from [Story Faucet](https://faucet.story.foundation/)
- Use your wallet private key for `STORY_PRIVATE_KEY`
### Hugging Face
- Sign up at [Hugging Face](https://huggingface.co/)
- Create an API token in your settings
### Groq
- Sign up at [Groq](https://groq.com/)
- Generate an API key for Llama access
### Pinata
- Sign up at [Pinata](https://pinata.cloud/)
- Create a JWT token for IPFS uploads
## šÆ Core Features
### 1. Content Creation
- **AI Generation**: Create unique images and text using state-of-the-art AI
- **Upload Support**: Register existing content as IP assets
- **Multi-Format**: Support for images, text, articles, poems, and creative writing
### 2. IP Registration
- **Blockchain Proof**: Every asset registered on Story Protocol
- **Immutable Ownership**: Permanent, tamper-proof ownership records
- **License Management**: Automatic licensing terms and royalty distribution
### 3. Creator Dashboard
- **Portfolio View**: Manage all your IP assets in one place
- **Analytics**: Track potential earnings and asset performance
- **Blockchain Links**: Direct access to transaction details
### 4. Marketplace
- **Asset Discovery**: Browse registered IP assets
- **Pricing Display**: Transparent licensing costs
- **Coming Soon**: Purchase functionality in development
## šļø Architecture
```
RoyalTix AI
āāā Frontend (Next.js 14)
ā āāā Landing Page
ā āāā Content Creation
ā āāā Creator Dashboard
ā āāā Marketplace
āāā Blockchain Layer
ā āāā Story Protocol SDK
ā āāā IP Asset Registration
ā āāā Smart Contract Integration
āāā AI Services
ā āāā Hugging Face (Images)
ā āāā Groq (Text)
āāā Storage Layer
āāā IPFS (Pinata)
āāā Metadata Management
```
## šØ Design Philosophy
RoyalTix AI features a premium, Web3-native design with:
- **Dark Theme**: Professional blockchain aesthetic
- **Glowing Effects**: Interactive elements with smooth animations
- **Gradient Accents**: Purple/blue color scheme
- **Responsive Layout**: Mobile-first design approach
## š® Roadmap
### Phase 1: Foundation ā
- AI content generation
- Blockchain IP registration
- Basic marketplace UI
### Phase 2: Marketplace š§
- Purchase functionality
- Royalty distribution
- Advanced licensing options
### Phase 3: Community š
- Creator profiles
- Social features
- Collaboration tools
### Phase 4: Enterprise š
- API access
- Bulk operations
- Advanced analytics
## š¤ Contributing
We welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details.
## š License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## š Acknowledgments
- **Story Protocol** - For revolutionizing IP rights on blockchain
- **Hugging Face** - For democratizing AI model access
- **Groq** - For lightning-fast AI inference
- **Pinata** - For reliable IPFS infrastructure
---
**Built with ā¤ļø for the future of creator economy**
*RoyalTix AI - Where creativity meets blockchain innovation*I ran into a lot of challenges, nonetheless all of them pushed me forward. the biggest challenge was - to get familiar with the ecosystem. this was my first time exploring the story protocol and its ecosystem their sdk, etc.
none as of yet