โ ๏ธ PRIVATE REPOSITORY - This is proprietary software. Do not share, fork, or redistribute without authorization.
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
- ๐ฐ 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 Twitter verification
- ๐ 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
- ๐ก๏ธ 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
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
- 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:
# Image generation API key
AI_API_KEY=your_ai_api_key
# Supabase Configuration
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
# Solana RPC (optional - uses public RPC if not set)
VITE_SOLANA_RPC_URL=your_custom_rpc_url- Run development server
npm run devVisit the local dev server to start developing.
| Table | Description |
|---|---|
profiles |
User profiles (wallet, display_name, twitter, verified, ref_code) |
posts |
AI-generated images (author, image_url, prompt, category, likes_count) |
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
- 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
โ โโโ LeaderboardView.tsx # Top creators ranking
โ โโโ StatsView.tsx # Analytics dashboard
โ โโโ ProfileView.tsx # User profiles
โโโ 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
Proprietary and Confidential
This software is the exclusive property of the Solia team. Unauthorized copying, distribution, modification, or use is strictly prohibited.
- Mobile app (Android APK + PWA)
- Advanced AI models integration (Gemini)
- MWA wallet support (Phantom, Jupiter, Solflare)
- Creator subscriptions
- DAO governance
- Cross-chain support
Built with โค๏ธ on Solana
