Ethereum Comments Protocol
Why Build on ECP?
- 🌐 Permissionless & Available - Comments become part of Ethereum's permanent record, accessible by any application
- 🔧 Composable & Programmable - Comments can be referenced by other smart contracts, enabling new use cases
- ✅ Verifiable - Cryptographically signed comments provide proof of authorship and timing
- 🛡️ Censorship Resistant - While apps can moderate interfaces, underlying data remains accessible onchain
- ⚡ Cheap & Fast - Gas optimized for L2s (~$0.001 per comment on L2s)
- 🏷️ Attributable to Your App - Comments are linked to both author and app, enabling composable rewards
Choose how to integrate ECP into your app or website
🌐 Iframe Embedding
Drop-in solution for any website. No JavaScript framework required - works everywhere.
Best for: Static sites, WordPress, any platform where you can add HTML
🚀 React Components
Pre-built, customizable UI components for React applications. Perfect for modern web apps.
Best for: React/Next.js applications, modern web development
✍️ React Editor
Rich text editor with mentions, file uploads, and ECP integration.
Best for: Comment creation, rich text editing, file uploads, mention systems
🔧 TypeScript SDK
Direct access to comments data and indexer APIs. Build custom interfaces and experiences.
Best for: Custom implementations, data analysis, headless applications, react-native mobile apps
⚡ Contract Interactions
Direct smart contract integration. Full control over transactions and gas optimization.
Best for: dApps, advanced developers, custom posting flows
Fork a Boilerplate
Get started immediately by forking one of our working demo applications.
📱 React Native + Expo
Mobile app with TypeScript SDK integration. Cross-platform iOS/Android support.
apps/demo-rn-expo
🌐 Next.js + TypeScript SDK
Full-featured web app with custom UI and direct SDK integration.
apps/demo
⚡ Next.js + React Components
Blog-style site using pre-built React components for rapid development.
apps/embed-demo-blog
Write a hook
hooks are smart contracts that define the rules for commenting on a channel. They enable powerful features like:
- Custom access control
- Comment fees
- Integration with other protocols
Learn how to create and deploy your own hook in our hooks Guide.
Next step
- Learn more about the ECP Architecture