A decentralized social platform for AI creators to monetize their content on the Solana blockchain. Create, share, and sell AI-generated images with SKR tokens. Built with React, Vite, and Supabase.
- AI Image Generation - Create unique images using advanced AI models with multi-provider fallback
- Content Monetization - Sell AI-generated images directly to buyers with SKR tokens
- Social Feed - Discover trending creations with smart Hot/New/Trends algorithms
- Creator Profiles - Customizable profiles with social media verification (X, Telegram, YouTube)
- Analytics Dashboard - Real-time platform statistics and insights
- Top Creators Ticker - Rotating showcase of trending artists
- Smart Sorting Algorithms - Time-decay scoring for natural content rotation
- Referral System - Bring new users and earn from their activity (15% on generations, 15% on purchases)
- Follow System - Build your creator network
- Like & Comment - Engage with the community
- Drafts System - Save generated images as drafts before publishing, persist across sessions
- Post Preview - Review generated images with Publish/Delete options before going live
- Leaderboard - Top creators by posts, likes, followers, and referrals with social links
- Daily Like Limits - Bot protection with bonus system (2 base + 8 per generation + 10 per purchase)
- Transaction History - Track all platform activity
- Image Protection - Download prevention with overlay shield
- Multi-language - 6 languages supported (EN, RU, ZH, HI, VI, JA)
Image Generation Fees:
- With referrer: 85% treasury + 15% referrer
- System referral (no ref link): 100% treasury
Image Purchase Splits:
- With referrer: 80% creator + 10% referrer + 10% treasury
- System referral (no ref link): 80% creator + 20% treasury
- Self-purchase: same splits apply
Examples (100 SKR):
- Generation (with referrer) = 85 SKR treasury + 15 SKR referrer
- Purchase (with referrer) = 80 SKR creator + 10 SKR referrer + 10 SKR treasury
- Purchase (system referral) = 80 SKR creator + 20 SKR treasury
Like Bonuses:
- +8 likes per generated image (to creator)
- +10 likes per purchased image (to buyer)
- +10 likes to referrer when their referral generates
- +15 likes to referrer when their referral purchases
- +5 likes to referrer per new invited user
System Referral: Users who visit solia.live without a ?ref= code are automatically registered as system referrals (treasury). This means all referrer shares go to the treasury.
Atomic Transactions: Solana guarantees all transfers succeed or all fail - no partial payments
- React 19 - Modern UI framework with latest features
- TypeScript - Type-safe development
- Vite - Lightning-fast build tool
- Tailwind CSS v4 - Utility-first styling with custom Solana theme
- Lucide React - Beautiful icon library
- Motion - Smooth animations
- Capacitor - Native Android wrapper for Solana Mobile dApp Store
- Deep Links - Referral handling via
https://solia.live/?ref=CODE - MWA - Mobile Wallet Adapter support (Phantom, Solflare mobile)
- Solana Web3.js - Blockchain interactions
- Jupiter Unified Wallet Kit - Multi-wallet support (Phantom, Solflare, MWA)
- SPL Token - SKR token operations
- Supabase - PostgreSQL database with real-time features
- AI API - Image generation engine with multi-provider fallback and key rotation
- Twitter oEmbed API - Profile verification
- CoinGecko API - Live crypto prices
- Node.js 18+
- npm or yarn
- Solana wallet (Phantom/Solflare)
- Supabase account
- AI API credentials
- Clone the repository
git clone https://github.com/kolyantrend/solia.git
cd solia- Install dependencies
npm install- Configure environment variables
Create .env.local from the example file:
cp .env.example .env.localEdit .env.local with your API keys (see .env.example for all available options).
- Run development server
npm run dev- Build for production
npm run build| Table | Description |
|---|---|
profiles |
User profiles (wallet, display_name, twitter, telegram, youtube, verified, ref_code) |
posts |
AI-generated images (author, image_url, prompt, category, likes_count) |
drafts |
Unpublished generated images (author, image_url, prompt, category) |
likes |
User engagement tracking |
comments |
Post discussions |
purchases |
Content purchase records |
follows |
Creator network graph |
referrals |
Referral tracking |
transactions |
Financial history |
daily_likes |
Bot protection system |
| Sort | Window | Formula | Behavior |
|---|---|---|---|
| New | All | created_at DESC |
Always fresh, 3min cache |
| Hot | 6 hours | (likes+1) / (hours+2)^1.5 |
Fast rotation, engagement-driven |
| Trends | 24 hours | (likes+1) / (hours+4)^1.1 |
Viral content stays longer |
- Profile Cache - 2 min TTL
- Feed Cache - 3 min TTL (single query for 200 posts, client-side scoring)
- Stats Cache - 5 min TTL
- User pays SKR tokens for generation
- AI generates image with automatic provider fallback
- Image saved as draft in database
- User previews result in fullscreen overlay
- Publish to feed or delete (with confirmation)
- Drafts persist across sessions and are visible in profile
- Solana Mobile Wallet Adapter integration
- Responsive design for all screen sizes
- Touch-optimized UI components
Supported languages (6):
- English (en)
- Russian (ru)
- Chinese (zh)
- Hindi (hi)
- Vietnamese (vi)
- Japanese (ja)
npm run lintsrc/
├── config/
│ └── banners.ts # Banner & promo banner config
├── components/
│ ├── Layout.tsx # App shell with navigation
│ ├── BannerCarousel.tsx # Rotating banners
│ ├── CryptoTicker.tsx # Live crypto prices
│ └── TopCreatorsTicker.tsx
├── views/
│ ├── FeedView.tsx # Main feed with smart algorithms
│ ├── GenerateView.tsx # AI image generation with drafts
│ ├── LeaderboardView.tsx # Top creators / likes / followers / referrals
│ ├── StatsView.tsx # Analytics dashboard
│ └── ProfileView.tsx # User profiles with drafts tab
├── lib/
│ ├── database.ts # Supabase queries with caching
│ ├── solana.ts # SKR token transfers & config
│ ├── supabase.ts # Supabase client
│ └── utils.ts # Helper functions
├── App.tsx # Root component
├── theme.tsx # Theme context (dark/light)
├── i18n.tsx # Internationalization (6 languages)
├── likes.ts # Like system with bot protection
└── index.css # Theme variables & styles
Protected by .gitignore (never committed):
.env.local- API keys & secretsnode_modules/- Dependenciesdist/- Build output- IDE config directories
Additional protections:
- All secrets via environment variables
- Image download protection (CSS + JS overlay)
- Daily like limits with bonus system
- Atomic Solana transactions
- Referral validation
MIT
- Mobile app (Android APK + PWA)
- Advanced AI models integration
- MWA wallet support (Phantom, Jupiter, Solflare)
- Drafts system with post preview
- Followers leaderboard
- Creator subscriptions
- DAO governance
- Cross-chain support
Built with love on Solana
