HarmonyChain

Decentralized music platform with free listening, fair monetization, and composable licensing.

HarmonyChain

Created At

ETHOnline 2025

Project Description

HarmonyChain is a revolutionary decentralized music ecosystem that fundamentally reimagines how music is consumed, created, and monetized. Built on the principle of "Music as a public good for consumption, private property for modification," HarmonyChain eliminates traditional barriers between artists and fans while ensuring fair compensation for creators. Core Philosophy

  • Free Music Access: All music is free to listen to - no paywalls, no ads, no subscriptions
  • Fair Artist Monetization: Artists earn through NFTs, licensing, and direct fan support
  • Creative Freedom: Easy sampling and remixing with proper licensing
  • Community Governance: DAO token holders control platform decisions Key Features
  • Decentralized Music Player: Full-featured audio player with IPFS streaming, queue management, and responsive controls
  • Artist Dashboard: Comprehensive analytics, revenue tracking, fan engagement metrics, and content management
  • NFT Marketplace: Multi-step NFT creation, dynamic pricing, ownership display, and transfer capabilities
  • Licensing System: Granular permission controls, automated royalty distribution, and smart contract integration
  • Track Discovery: Advanced search, genre filtering, trending tracks, and AI-powered recommendations
  • Upload System: Drag-and-drop file upload, metadata management, IPFS integration, and blockchain registration Technical Innovation The platform leverages cutting-edge Web3 technologies to create a truly decentralized music ecosystem:
  • Smart Contracts: Music ownership, licensing terms, and royalty distribution
  • IPFS Storage: Decentralized content delivery with fallback mechanisms
  • Blockchain Integration: Ethereum/Polygon for ownership and transactions
  • Decentralized Database: OrbitDB + Ceramic for permanent, censorship-resistant storage

How it's Made

How it's made Technology Stack Frontend Architecture:

  • Next.js 14 with App Router for modern React development
  • TypeScript for complete type safety across all components
  • Tailwind CSS for responsive, utility-first styling
  • Wagmi + Viem for seamless Web3 integration
  • Zustand for lightweight state management
  • SIWE (Sign-In with Ethereum) for wallet-based authentication Backend & Infrastructure:
  • Node.js + Express API server with TypeScript
  • PostgreSQL for relational data with Redis caching
  • IPFS for decentralized file storage and streaming
  • Arweave for permanent data backup
  • The Graph Protocol for decentralized blockchain indexing Blockchain & Smart Contracts:
  • Solidity smart contracts on Ethereum/Polygon
  • OpenZeppelin for secure, audited contract libraries
  • Hardhat for development and testing
  • MusicRegistry.sol: Track ownership and metadata management
  • LicenseManager.sol: Licensing terms and permission controls
  • RoyaltyDistributor.sol: Automated revenue distribution
  • GovernanceDAO.sol: Community governance mechanisms Decentralized Storage:
  • IPFS for content distribution with multiple gateway fallbacks
  • OrbitDB for peer-to-peer database functionality
  • Ceramic Network for permanent, verifiable data storage
  • Arweave for immutable data backup Architecture Highlights Monorepo Structure: The project uses Turborepo for efficient monorepo management with three main applications:
  • apps/web/ - Next.js frontend with comprehensive component library
  • apps/api/ - Node.js backend with Express and database integration
  • apps/contracts/ - Solidity smart contracts with deployment scripts Component Architecture:
  • Modular Design: 50+ reusable React components with single responsibility
  • Shared UI Library: Generic Button, Input, Select components with comprehensive styling
  • Custom Hooks: Centralized business logic with useAudioPlayer hook
  • Type Safety: Full TypeScript implementation with strict typing
  • Testing: Comprehensive unit tests for all components and utilities Web3 Integration:
  • Wallet Connection: Seamless MetaMask and wallet integration
  • Smart Contract Interaction: Direct blockchain communication for ownership and licensing
  • IPFS Streaming: Decentralized audio streaming with multiple gateway support
  • Decentralized Queries: The Graph Protocol for efficient blockchain data retrieval Notable Technical Achievements IPFS Performance Optimization:
  • Implemented hybrid infrastructure with strategic caching nodes
  • Multiple gateway fallback mechanisms for reliable content delivery
  • Chunked upload system for large audio files
  • Performance monitoring and retry logic Smart Contract Security:
  • Comprehensive audit-ready contracts with OpenZeppelin standards
  • Reentrancy guards and access controls
  • Gradual rollout mechanisms for safe deployment
  • DAO upgrade mechanisms for contract evolution User Experience Innovation:
  • Progressive disclosure for Web3 complexity
  • Optional wallet connection for traditional music app feel
  • Simplified onboarding with familiar interfaces
  • Keyboard shortcuts and accessibility features Scalability Solutions:
  • Layer 2 integration (Polygon) for reduced transaction costs
  • Batch transaction processing for efficiency
  • Off-chain computation for complex operations
  • State channels for micro-payments Development Workflow Code Quality:
  • ESLint + Prettier for consistent code formatting
  • TypeScript for type safety across the entire stack
  • Comprehensive Testing with Jest and React Testing Library
  • Storybook for component documentation and development Deployment & Infrastructure:
  • Turborepo for efficient monorepo builds
  • CI/CD pipelines for automated testing and deployment
  • IPFS Deployment for decentralized frontend hosting
  • Smart Contract Deployment with Hardhat and verification The project represents a complete reimagining of the music industry, combining cutting-edge Web3 technologies with user-friendly interfaces to create a platform where music is truly free to consume but fairly compensated for creation and modification.
background image mobile

Join the mailing list

Get the latest news and updates