# LoopFan 🎯
The first truly decentralized creator wallet app — enabling direct creator-to-fan payments with zero middlemen. Built on Base blockchain, LoopFan puts creators in complete control of their earnings through tips, paid content, NFT memberships, and exclusive drops.
LoopFan revolutionizes creator monetization by eliminating all intermediaries between creators and their fans. Unlike traditional platforms that take 15-30% cuts, LoopFan enables 100% direct-to-creator payments (minus only gas fees):
- 🪙 Creator Wallet: Your personal blockchain wallet receives all payments instantly
- 💰 Direct Tips: ETH/USDC tips flow straight to your wallet, no platform fees
- 🎫 Membership NFTs: Tradeable subscription tokens you control and price
- 🔒 Gated Content: Premium content with decentralized access control
- 🎁 NFT Drops: Exclusive releases for your most loyal supporters
- 🏆 Fan Rewards: Custom point systems and incentives you design
- 🚫 Platform Independence: Own your audience, keep your earnings, control your content
| Traditional Platforms | LoopFan |
|---|---|
| 15-30% platform fees | 0% platform fees |
| Platform owns audience | You own your audience |
| Algorithm controls reach | Direct creator-fan connection |
| Centralized content control | Decentralized sovereignty |
| Platform can ban/demonetize | Censorship resistant |
| Monthly payouts | Instant blockchain payments |
The project consists of three main components:
- TipJar: Direct creator wallet for receiving ETH/USDC tips
- MembershipNFT: NFT-based subscription system with tiered access
- GatedContentRegistry: Decentralized content access control
- FanRewards: Creator-controlled point and reward system
- Node.js/TypeScript: Decentralized API server
- MongoDB: Off-chain metadata and user preferences
- Blockchain Integration: Real-time transaction monitoring
- Wallet Authentication: Signature-based authentication (no passwords)
- Creator Dashboard: Wallet management and content monetization tools
- Fan Interface: Direct support and exclusive content access
- Web3 Integration: Seamless wallet connection and blockchain interactions
- Node.js 18+
- MongoDB
- Git
- Wallet with Base Sepolia ETH (for deployment)
git clone https://github.com/Antismart/loopfan.git
cd loopfancd contracts
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Edit .env with your private key and creator address
# Deploy to Base Sepolia
make deploy-sepolia
# Setup membership tiers (optional)
make setup-tierscd ../backend
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Edit .env with contract addresses and database settings
# Start development server
npm run dev
# Or build and start production
npm run build
npm startVisit http://localhost:3000/api-docs for interactive API documentation.
Update these in your .env files after deployment:
TIPJAR_CONTRACT_ADDRESS=0x...
MEMBERSHIP_NFT_CONTRACT_ADDRESS=0x...
GATED_CONTENT_REGISTRY_CONTRACT_ADDRESS=0x...
FAN_REWARDS_CONTRACT_ADDRESS=0x...- Zero-Fee Creator Payments: Direct ETH and USDC tips with no platform cuts
- Instant Settlement: Immediate payment to creator wallets on every tip
- Referral Economy: 5% referral rewards to grow creator communities organically
- Gas Optimized: Minimal transaction costs for fans supporting creators
- NFT-Based Subscriptions: Membership represented as tradeable NFTs
- Tiered Access: Multiple membership levels with different benefits
- Time-Based Expiration: Automatic membership renewal system
- Creator Control: Full control over pricing and tier benefits
- Decentralized Access Control: No central authority controls content access
- Multiple Payment Methods: NFT ownership or direct USDC payments
- Creator Sovereignty: Creators maintain full content ownership
- Transparent Verification: On-chain proof of content access rights
- Creator-Managed Points: Custom point systems for each creator
- Reward Marketplace: Creators define their own reward catalog
- Engagement Incentives: Points awarded for tips, referrals, and interactions
- Flexible Redemption: Custom rewards from exclusive content to physical merchandise
- Get Nonce:
POST /api/users/auth/nonce - Sign Message: User signs with wallet
- Verify Signature:
POST /api/users/auth/verify - Use JWT Token: Include in Authorization header
GET /api/users/profile- Get user profilePUT /api/users/profile- Update profileGET /api/users/:address- Public profile
POST /api/content- Create contentGET /api/content- List content with filtersGET /api/content/:id/access- Check access permissions
GET /api/blockchain/tips- Tip historyGET /api/blockchain/memberships- Membership dataGET /api/blockchain/points/:address- Points balance
GET /api/analytics/creator/:address- Creator metricsGET /api/analytics/fan/:address- Fan statisticsGET /api/analytics/platform- Platform insights
cd contracts
# Run tests
forge test
# Deploy locally
anvil
make deploy-local
# Verify contracts
make verify-sepoliacd backend
# Development with hot reload
npm run dev
# Run tests
npm test
# Lint and type check
npm run lint
npm run typecheckPRIVATE_KEY=your-private-key
CREATOR_ADDRESS=your-creator-address
ETHERSCAN_API_KEY=your-etherscan-keyMONGODB_URI=mongodb://localhost:27017/looopfan
JWT_SECRET=your-jwt-secret
BLOCKCHAIN_RPC_URL=https://sepolia.base.org
# ... contract addresses from deploymentcd backend
docker-compose up -dThis starts:
- Backend API server
- MongoDB database
- Redis cache
# Backend only
docker build -t looopfan-backend .
docker run -p 3000:3000 looopfan-backend- 💰 100% Earnings: Keep every dollar except gas fees — no platform cuts ever
- 🪙 Your Wallet, Your Money: Direct payments to your personal blockchain wallet
- 📊 Real-time Analytics: Live insights on earnings and fan engagement
- 🎯 Complete Sovereignty: Full control over content access, pricing, and audience
- 🏆 Custom Economies: Design unique reward systems for your community
- 🔒 NFT-Gated Exclusives: Create scarcity and value for your biggest supporters
- 🚀 Platform Independence: Never lose your audience to algorithm changes
- 💝 Direct Impact: 100% of your support reaches creators instantly
- 🎫 True Ownership: NFT memberships you actually own and can trade
- 🏅 Earn While Supporting: Get rewards for engaging with your favorite creators
- 🎁 Exclusive Access: Unlock premium content through blockchain verification
- 🤝 Referral Rewards: Share creators you love and earn together
- 🔐 Censorship Resistant: Access content without platform interference
- 🔗 Fully Decentralized: No central authority or platform control
- 🛡️ Battle-Tested: Comprehensive test coverage and security audits
- 🔧 Composable: Build on top of LoopFan's creator economy primitives
- 📚 Open Source: MIT licensed with complete documentation
- ⚡ Base Optimized: Built for Base's fast, low-cost transactions
cd contracts
forge test -vvvcd backend
npm test
npm run test:watch- Deploy contracts to Base Mainnet
- Update contract addresses in backend
- Set up production MongoDB
- Configure environment variables
- Set up monitoring and logging
- Deploy frontend application
cd contracts
cp .env.example .env.mainnet
# Configure for mainnet
make deploy-mainnet- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Contracts:
./contracts/- Solidity smart contracts - Backend:
./backend/- Node.js API server - Documentation: API docs available at
/api-docswhen running - Base Network: Base Documentation
- Creator wallet smart contracts
- Direct payment infrastructure
- NFT-based membership system
- Decentralized API backend
- Wallet-based authentication
- Creator dashboard web app
- Fan mobile wallet app
- NFT marketplace integration
- Advanced creator analytics
- Social discovery features
- Cross-chain creator wallets
- DAO governance for creators
- Creator token launchpad
- Decentralized content hosting
- Creator collective tools
For questions and support:
- Create an issue on GitHub
- Join our Discord community
- Follow updates on Twitter
Built for creators, owned by creators — LoopFan is the first truly decentralized creator wallet on Base 🔵
No middlemen. No platform fees. Just direct creator-to-fan value exchange.