Transform Any Web2 API into Programmable Web3 Revenue
The official website for Dapinet Protocol - the first decentralized API marketplace with automatic micropayments on blockchain.
- Production: https://dapinet.io
Dapinet is a decentralized protocol that enables developers to:
- ✅ Monetize any API with automatic crypto micropayments
- ✅ Pay-per-use model - no subscriptions, just pay what you use
- ✅ On-chain proof of every API call execution
- ✅ Fair revenue split - 99.5% to operators, 0.5% protocol fee
- ✅ Multi-blockchain support (Arbitrum, Ethereum, Polygon, Base)
- Modern, clean interface optimized for developers
- Responsive mobile-first design
- Professional color scheme and typography
- Smooth transitions and hover effects
| Page | URL | Description |
|---|---|---|
| Home | / |
Landing page with featured APIs and introduction |
| APIs Catalog | /apis |
Browse all available APIs with search & filters |
| API Details | /apis/[id] |
Individual API pages with interactive playground |
| Documentation | /docs |
Developer guides and SDK documentation |
| Pricing | /pricing |
Transparent pricing model and examples |
- Real-time Search - Find APIs by name, description, or tags
- Category Filters - AI/ML, Data, Finance, Identity, Utilities
- Smart Sorting - By popularity, rating, price, or usage
- 8 Live APIs - Fully documented and ready to use
Each API page includes:
- Live Testing - Try APIs directly from the browser
- Code Examples - Ready-to-use SDK integration code
- Parameter Docs - Complete parameter documentation
- Response Preview - See real API responses
- Contract Info - Blockchain details and network status
- Weather API - Real-time weather for any location (0.001 ETH)
- Foreign Exchange - 170+ currency rates (0.0003 ETH)
- Crypto Price Oracle - Multi-exchange price feeds (0.0005 ETH)
- AI Text Generation - GPT-4 powered content (0.01 ETH)
- Image Recognition - Computer vision analysis (0.008 ETH)
- Sentiment Analysis - NLP emotion detection (0.002 ETH)
- KYC Verification - Compliance checking (0.005 ETH)
- QR Code Generator - Custom QR codes (0.0001 ETH)
- Framework: Next.js 15.5.4 (App Router)
- Language: TypeScript 5.0+
- Styling: Custom CSS (optimized for performance)
- Icons: Heroicons
- Routing: Next.js file-based routing
- App Router: Modern Next.js 13+ architecture
- Server Components: Default for better performance
- Client Components: Only where interactivity needed
- Static Generation: Pre-render where possible
- Dynamic Routes:
/apis/[id]for API pages
- Contract:
0xF4E99afe2562f479b9a41EB91356332BA5D29E67 - Network: Arbitrum Sepolia (Chain ID: 421614)
- Protocol: Dapinet V1.1 (Production-ready)
- SDK Ready: Compatible with @dapinet-sdk
dapinet-dApp/
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── globals.css # Global styles (RapidAPI-inspired)
│ │ ├── layout.tsx # Root layout with SEO metadata
│ │ ├── page.tsx # Home page
│ │ ├── apis/
│ │ │ ├── page.tsx # APIs catalog page
│ │ │ └── [id]/
│ │ │ └── page.tsx # Dynamic API detail pages
│ │ ├── docs/
│ │ │ └── page.tsx # Documentation page
│ │ └── pricing/
│ │ └── page.tsx # Pricing page
│ │
│ ├── components/
│ │ ├── layout/
│ │ │ ├── Header.tsx # Navigation header
│ │ │ └── Footer.tsx # Site footer
│ │ ├── pages/
│ │ │ ├── APIsPageContent.tsx # APIs catalog content
│ │ │ └── APIDetailContent.tsx # API detail page content
│ │ ├── sections/
│ │ │ ├── NewHeroSection.tsx # Home hero section
│ │ │ ├── FeaturedAPIsSection.tsx # Featured APIs showcase
│ │ │ └── HowItWorksSection.tsx # Architecture explanation
│ │ └── blockchain/
│ │ └── LiveMetrics.tsx # Real-time blockchain metrics
│ │
│ └── lib/
│ └── apiData.ts # Centralized API data & config
│
├── public/ # Static assets
├── tailwind.config.ts # Tailwind configuration
├── package.json # Dependencies
├── CHANGELOG.md # Version history
└── README.md # This file
- Node.js 18+ installed
- npm or yarn package manager
# Clone or navigate to the project
cd /path/to/dapinet-dApp
# Install dependencies
npm install
# Run development server
npm run dev
# Open browser
open http://localhost:3000# Development mode with hot reload
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Lint code
npm run lint
# Type checking
npx tsc --noEmit--primary: #0f172a /* Navy blue for main elements */
--primary-light: #1e293b /* Lighter navy */
--secondary: #3b82f6 /* Blue accent for CTAs */
--accent: #10b981 /* Green for success states */
--warning: #f59e0b /* Orange for warnings */
--danger: #ef4444 /* Red for errors */- Font Family: Inter (Google Fonts)
- Headings: 800/700/600 weight
- Body: 400/500 weight
- Code: Monospace system fonts
- Cards: Rounded corners, subtle shadows, hover effects
- Buttons: Primary, outline, and dark variants
- Code Blocks: Dark theme with syntax highlighting
- Badges: Status, method, category indicators
- Hero Section: Compelling headline with stats
- Featured APIs: Showcase of 4 popular APIs
- How It Works: 4-step process explanation
- Call-to-Action: Browse APIs, Get Started
- Search Bar: Real-time filtering
- Category Filters: All, AI/ML, Data, Finance, Identity, Utilities
- Sort Options: Popular, Rating, Price (Low/High), Most Used
- API Cards: Price, stats, tags, quick actions
- 8 APIs Catalogued with full details
- Comprehensive Header: Name, description, pricing, stats
- Interactive Playground:
- Parameter input fields
- "Test API Call" button
- Live response preview
- Loading states
- Code Integration: SDK examples ready to copy
- Full Documentation:
- Authentication guide
- Parameter reference
- Response format
- Error handling
- Contract Information: Address, network, provider
- Quick start guide
- SDK reference
- API integration guides
- Blockchain integration details
- Pay-per-use model explanation
- Protocol fee transparency (0.5%)
- Pricing examples for all APIs
- Comparison with traditional models
// From src/lib/apiData.ts
export const CONTRACT_ADDRESS = '0xF4E99afe2562f479b9a41EB91356332BA5D29E67'
export const NETWORK_CHAIN_ID = 421614 // Arbitrum Sepolia
export const NETWORK_NAME = 'Arbitrum Sepolia'import { DapinetClientV2 } from '@dapinet-sdk'
import { ethers } from 'ethers'
const client = new DapinetClientV2({
contractAddress: CONTRACT_ADDRESS,
provider: window.ethereum
})
const result = await client.payAndRequest('weather-api', {
params: 'Paris',
value: ethers.parseEther('0.001')
})// From actual deployed contract
'weather-api' -> 0x97f788580b77eff3b91aa4976c9aded96a349720d475dae24a8bf00d0b681568
'crypto-price' -> 0xf718d75b237ddc15009a123e5e292a7e69f968787909bcd19bf6b33ecbb47da7
'forex-rates' -> 0xe188d3c8b9cf84ab45121eca427f5f3dfc3d7f6fd7d1c4ba1baa49ade8c83e21# Install Vercel CLI
npm i -g vercel
# Deploy to production
vercel --prod
# Configure environment variables in Vercel dashboard:
NEXT_PUBLIC_CONTRACT_ADDRESS=0xF4E99afe2562f479b9a41EB91356332BA5D29E67
NEXT_PUBLIC_CHAIN_ID=421614
NEXT_PUBLIC_RPC_URL=https://arbitrum-sepolia.infura.io/v3/YOUR_KEY# Build static export
npm run build
# Deploy to Netlify
npx netlify deploy --prod --dir=out
# Or use Netlify CLI
netlify init
netlify deploy --prod# Build for production
npm run build
# Start production server
npm start
# Or with PM2
pm2 start npm --name "dapinet-dApp" -- startCreate .env.local file:
# Blockchain Configuration
NEXT_PUBLIC_CONTRACT_ADDRESS=0xF4E99afe2562f479b9a41EB91356332BA5D29E67
NEXT_PUBLIC_CHAIN_ID=421614
NEXT_PUBLIC_NETWORK_NAME="Arbitrum Sepolia"
NEXT_PUBLIC_RPC_URL=https://arbitrum-sepolia.infura.io/v3/YOUR_KEY
# Optional: Analytics
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX
NEXT_PUBLIC_PLAUSIBLE_DOMAIN=dapinet.io
# Optional: API Keys (for backend routes)
WEATHER_API_KEY=your_api_key
COINGECKO_API_KEY=your_api_key- Add wagmi/viem for wallet connection
- Install @dapinet-sdk dependency
- Implement real blockchain calls
- Show transaction confirmations
- Display wallet balances
- Add transaction history
Implementation:
npm install wagmi viem @rainbow-me/rainbowkit @dapinet-sdk- Connect to real weather API (weatherapi.com)
- Connect to CoinGecko for crypto prices
- Connect to ExchangeRate-API for forex
- Add API key management (backend)
- Implement rate limiting
- Add caching layer
- Wallet-based authentication
- User dashboard (usage stats)
- Transaction history
- Favorite APIs
- API comparison tool
- Usage analytics
- API ratings & reviews
- Provider profiles
- Community forum
- Blog/Documentation CMS
- Newsletter signup
- Discord integration
- FCP: < 1.5s (First Contentful Paint)
- LCP: < 2.5s (Largest Contentful Paint)
- CLS: < 0.1 (Cumulative Layout Shift)
- TTI: < 3.5s (Time to Interactive)
- Performance: 95+
- Accessibility: 100
- Best Practices: 100
- SEO: 100
- ✅ All pages load with HTTP 200
- ✅ No compilation errors
- ✅ Mobile responsive
- ✅ Fast page transitions
- ⏳ Performance optimization in progress
- ✅ No sensitive data in client code
- ✅ Environment variables properly scoped
- ✅ XSS protection via React
- ✅ CORS configured correctly
- ⏳ Add CSP headers
- ⏳ Implement rate limiting
- ✅ Contract address validated
- ✅ Network ID verification
- ✅ Transaction signing user-initiated
- ⏳ Slippage protection
- ⏳ Gas estimation
- ✅ All pages load correctly
- ✅ Navigation works on all devices
- ✅ Search functionality works
- ✅ Filters update correctly
- ✅ Sorting functions properly
- ✅ Mobile responsive design
- ⏳ Real API calls (pending SDK integration)
# Unit tests
npm run test
# E2E tests with Playwright
npm run test:e2e
# Accessibility tests
npm run test:a11y- Google Analytics 4 - User behavior tracking
- Plausible - Privacy-friendly analytics
- Mixpanel - Event tracking
- PostHog - Product analytics
- Page views and unique visitors
- API detail page visits
- Playground usage rate
- Documentation engagement
- Search queries (what users look for)
- Filter/sort usage patterns
- Conversion funnel: Visit → Demo → Documentation → SDK Download
We welcome contributions! Here's how:
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test thoroughly
- Commit (
git commit -m 'Add amazing feature') - Push (
git push origin feature/amazing-feature) - Open Pull Request
- Follow TypeScript strict mode
- Use semantic HTML
- Add proper ARIA labels for accessibility
- Test on multiple devices
- Optimize images and assets
- Write clear commit messages
- Mobile: 320px - 768px
- Tablet: 768px - 1024px
- Desktop: 1024px - 1280px
- Large: 1280px+
- Touch-friendly navigation
- Optimized typography scaling
- Adaptive layouts
- Fast loading on slow networks
- Offline message handling
- Wallet connection (MetaMask, WalletConnect)
- Real blockchain transactions
- Live API calls via SDK
- User accounts (wallet-based)
- Transaction history
- API usage analytics dashboard
- Favorite APIs feature
- API comparison tool
- Enhanced playground
- WebSocket real-time updates
- API ratings & reviews
- Provider profiles & verification
- Community forum
- Developer blog/tutorials
- API marketplace rankings
dapinet/ # Main protocol repository
├── contracts/ # Smart contracts (deployed ✅)
├── operator/ # Off-chain service (ready ✅)
├── sdk/ # TypeScript SDK (ready ✅)
└── dapp-demo/ # Old demo (deprecated)
dapinet-dApp/ # This website (NEW ✅)
└── Professional marketplace for the protocol
User (Website)
→ Connect Wallet
→ Select API
→ Pay & Request
→ Smart Contract (0xF4E9...9E67)
→ Event Emitted
→ Operator Service
→ External API Call
→ Settlement
→ Response to User
- Protocol Docs:
/path/to/dapinet/README.md - Smart Contract:
/path/to/dapinet/contracts/README_V1.1.md - Operator Guide:
/path/to/dapinet/operator/README.md - SDK Docs:
/path/to/dapinet-sdk/README.md
- Website: https://dapinet.io
- GitHub: https://github.com/dapinet
- Discord: https://discord.gg/dapinet (coming soon)
- Twitter: @DapinetProtocol (coming soon)
- Email: hello@dapinet.io
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js Team for the amazing framework
- Heroicons for beautiful SVG icons
- RapidAPI for design inspiration
- Vercel for excellent hosting
- The Ethereum community for support
┌─────────────────────────────────────────┐
│ COMPONENT STATUS PROGRESS │
├─────────────────────────────────────────┤
│ Smart Contract ✅ LIVE 100% │
│ Website Frontend ✅ READY 100% │
│ API Catalog ✅ DONE 100% │
│ Playground ✅ DEMO 80% │
│ SDK Integration ⏳ PENDING 0% │
│ Wallet Connect ⏳ PENDING 0% │
│ Real API Calls ⏳ PENDING 0% │
│ Analytics ⏳ PENDING 0% │
├─────────────────────────────────────────┤
│ OVERALL PROGRESS ✅ MVP 60% │
└─────────────────────────────────────────┘
🎉 The Dapinet website is a professional API marketplace ready to showcase the protocol to the world!
Visit http://localhost:3000 to explore the site!
Built with ❤️ for the decentralized future
Last Updated: October 12, 2025