Next-generation DeFi interface powered by AI and Core Blockchain
Hardcore-AI is an intelligent DeFi assistant that transforms complex blockchain operations into simple, conversational interactions. Built specifically for the Core blockchain ecosystem, it enables users to execute trades, manage portfolios, and interact with DeFi protocols through natural language commands.
Democratize DeFi by making blockchain finance accessible through conversational AI.
- π€ Conversational DeFi: Execute trades, swaps, and portfolio management using natural language
- β‘ Core Blockchain Integration: Optimized for Core network's speed and security
- π‘οΈ Safety First: Built-in confirmation systems and transaction previews
- π± Intuitive Interface: Chat-based interactions that require no technical expertise
- π Multi-Protocol Support: Interact with various DeFi protocols through a unified interface
- Token swaps and exchanges
- Portfolio balance checking
- Asset transfers and payments
- Yield farming opportunities
- Cross-chain asset bridging
- DeFi protocol exploration
- Node.js 18+ - Download here
- Package Manager - npm, pnpm, or yarn
- Core Wallet - MetaMask or compatible wallet configured for Core network
-
Clone the repository
git clone https://github.com/hardcore-ai/hardcore-ai.git cd hardcore-ai -
Install dependencies
# Using pnpm (recommended) pnpm install # Or using npm npm install
-
Configure environment
cp .env.example .env
Update
.envwith your configuration:OPENROUTER_API_KEY=your_openrouter_api_key NEXT_PUBLIC_PROJECT_ID=your_walletconnect_project_id
-
Start development server
# Using pnpm pnpm dev # Or using npm npm run dev
-
Access the application
Open http://localhost:3000 in your browser
| Component | Technology | Purpose |
|---|---|---|
| Frontend | Next.js 14 | React framework with App Router |
| Styling | Tailwind CSS | Utility-first CSS framework |
| UI Components | shadcn/ui | Radix UI + Tailwind components |
| Animations | Framer Motion | Smooth interactions and transitions |
| State Management | Zustand | Lightweight state management |
| Blockchain | Wagmi + Viem | Ethereum-compatible blockchain interactions |
| Wallet Connection | RainbowKit | Multi-wallet connection support |
| AI Integration | Vercel AI SDK | Language model interactions |
| Icons | Lucide React | Consistent icon library |
- Network: Core DAO Mainnet (Chain ID: 1116)
- RPC URL:
https://rpc.coredao.org - Explorer: CoreScan
- Native Token: CORE
hardcore-ai/
βββ src/
β βββ app/ # Next.js App Router pages
β β βββ (landing)/ # Landing page group
β β βββ api/ # API routes
β β βββ home/ # Main application
β β βββ layout.tsx # Root layout
β βββ components/ # React components
β β βββ chat/ # Chat interface components
β β βββ landing/ # Landing page components
β β βββ ui/ # Reusable UI components
β βββ constants/ # Application constants
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility libraries
β βββ providers/ # Context providers
β βββ utils/ # Helper functions
βββ public/ # Static assets
βββ docs/ # Documentation
# Development
pnpm dev # Start development server
pnpm build # Build for production
pnpm start # Start production server
pnpm lint # Run ESLint
pnpm type-check # Run TypeScript checkCreate a .env.local file with the following variables:
# AI Configuration
OPENROUTER_API_KEY=your_openrouter_api_key
# Wallet Configuration
NEXT_PUBLIC_PROJECT_ID=your_walletconnect_project_id
# Optional: Local AI Model
OLLAMA_URL=http://localhost:11434 # If using Ollama locallyThe application supports multiple AI providers:
-
OpenRouter (Recommended)
- Create account at OpenRouter
- Get API key and add to
.env - Currently using:
moonshotai/kimi-k2:free
-
Ollama (Local, Optional)
- Install Ollama
- Pull a compatible model:
ollama pull llama2 - Update configuration in API routes
-
MetaMask Setup
- Install MetaMask extension
- Add Core network manually or through ChainList
-
Network Details
Network Name: Core Blockchain RPC URL: https://rpc.coredao.org Chain ID: 1116 Currency Symbol: CORE Block Explorer: https://scan.coredao.org
-
Connect Repository
npx vercel
-
Configure Environment Variables
- Add all environment variables in Vercel dashboard
- Ensure production API keys are properly set
-
Deploy
vercel --prod
The application can be deployed to any platform supporting Next.js:
- Netlify
- Railway
- Render
- DigitalOcean App Platform
- Never commit private keys or sensitive data
- Use environment variables for all configuration
- Validate all user inputs before blockchain interactions
- Implement proper error handling for failed transactions
- Use confirmation dialogs for all financial operations
- Smart contract interactions are limited to well-established protocols
- All transactions require explicit user confirmation
- Private keys never leave the user's wallet
- Application follows Web3 security best practices
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and commit:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Code Style: Follow ESLint and Prettier configurations
- Commits: Use conventional commit messages
- Testing: Add tests for new features
- Documentation: Update relevant documentation
- Additional DeFi protocol integrations
- UI/UX improvements
- Performance optimizations
- Mobile responsiveness
- Accessibility enhancements
- Internationalization (i18n)
This project is licensed under the MIT License - see the LICENSE file for details.
- Core DAO: Official Website
- Core Scan: Block Explorer
- Core Bridge: Asset Bridge
- Core Documentation: Developer Docs
- Testnet Faucet: Get Test Tokens
- Ecosystem: Core dApps
- Vercel AI SDK: Documentation
- Wagmi: React Hooks for Ethereum
- Viem: TypeScript Interface for Ethereum
Built with β€οΈ for the Core blockchain ecosystem
Enabling the future of conversational DeFi