Smart Crypto Tracker and AI Assistant
COINWETON is a web-based crypto intelligence platform built to tackle market volatility and information asymmetry in digital asset investing. Retail investors often face high market risks, misinformation, and emotional decision-making such as FOMO. COINWETON provides structured, real-time market data alongside automated security vetting, enabling users to make informed, data-driven decisions.
Beyond standard price monitoring, COINWETON integrates an automated smart contract security audit engine to detect honeypots and malicious contracts before users interact with them. It also features Cown AI, a contextual assistant designed to interpret real-time market metrics and contract safety data on demand.
The main dashboard delivers live global cryptocurrency metrics, including prices, 24-hour trading volumes, market capitalization, Bitcoin dominance, and market sentiment tracking through the Fear and Greed Index. The layout is optimized for desktop and mobile workflows with a dark interface.
Visual data inspection uses two dedicated charting implementations:
- Recharts: Custom sparkline visualizations on the dashboard for rapid trend assessment across coin lists.
- TradingView: Interactive technical analysis widgets on individual coin pages supporting multiple intervals (1H, 24H, 7D, 30D, and 1Y).
Automated token risk inspection is powered by GoPlus Security API. Every EVM-compatible token (Ethereum, BNB Chain, Polygon, and others) is screened for:
- Honeypot Verification: Validates whether token sell transactions are blocked or restricted.
- Mint Functions: Checks if the contract owner can arbitrarily inflate token supply.
- Buy and Sell Taxes: Detects hidden slippage fees or extortionate tax rates.
- Ownership Status: Evaluates ownership renunciation and administrative privilege controls.
Audit outputs are summarized with visual risk indicators: SAFE, CAUTION, or DANGER.
An integrated AI assistant built on a two-tier Retrieval-Augmented Generation (RAG) structure:
- Macro Context: Gathers overall market trends, market cap shifts, and global news sentiment.
- Micro Context: Pulls coin-specific telemetry, fundamental statistics, and smart contract audit outputs.
This context grounding keeps responses anchored in live data and prevents hallucinations during technical queries.
A persistent watchlist lets users track target assets across sessions. The authentication system uses Google OAuth integrated with Auth.js, storing watchlist references directly in a serverless PostgreSQL database.
| Category | Technology | Details |
|---|---|---|
| Framework | Next.js 16 (App Router) | React Server Components and Server Actions |
| Language | TypeScript 5 | Strict type checking across client and server |
| Styling | Tailwind CSS 4 | Utility styling and responsive design |
| UI Components | Shadcn UI and Lucide Icons | Headless component primitives |
| Database | Neon Serverless PostgreSQL | Serverless connection pooling |
| ORM | Drizzle ORM | Type-safe PostgreSQL schema and queries |
| Authentication | Auth.js (NextAuth v5) | Google OAuth with stateless JWT sessions |
| State and Cache | SWR | Client-side revalidation and caching |
| Charts | Recharts and TradingView | Dual-chart visualization system |
| Provider | Purpose | Protocol |
|---|---|---|
| CoinGecko API | Real-time prices, volume, and market rankings | REST API |
| GoPlus Security API | Automated EVM smart contract risk screening | REST API |
| OpenRouter | LLM gateway powering Cown AI | REST API |
| NewsData API | Global cryptocurrency news aggregation | REST API |
┌──────────────────────────────────────────────────────────┐
│ CLIENT (Browser) │
│ Next.js App Router: RSC + Client Components │
│ ┌───────────┐ ┌──────────────┐ ┌──────────────────┐ │
│ │ Dashboard │ │ Coin Detail │ │ Cown AI Terminal │ │
│ └───────────┘ └──────────────┘ └──────────────────┘ │
└────────────────────────┬─────────────────────────────────┘
│ HTTP / Server Actions
┌────────────────────────▼─────────────────────────────────┐
│ NEXT.JS SERVER (API Route Handlers) │
│ │
│ /api/coins → CoinGecko (ISR cache 60s) │
│ /api/market → CoinGecko (ISR cache 60s) │
│ /api/news → NewsData (ISR cache 300s) │
│ /api/chat → OpenRouter LLM (Streaming POST) │
│ /api/highlights → CoinGecko (ISR cache 120s) │
│ /api/watchlist → Drizzle ORM (Session verified) │
│ │
│ ┌─────────────────┐ ┌────────────────────────────┐ │
│ │ Drizzle ORM │ │ Auth.js (NextAuth) │ │
│ └────────┬────────┘ └──────────────┬─────────────┘ │
└───────────┼────────────────────────────┼─────────────────┘
│ │
┌───────────▼────────────────────────────▼─────────────────┐
│ NEON SERVERLESS POSTGRESQL │
│ Tables: users, watchlists (pooled) │
└──────────────────────────────────────────────────────────┘
Follow these steps to run the application in a local development environment.
- Node.js version 18.0 or higher
- npm (bundled with Node.js)
- Git
- Clone the repository:
git clone https://github.com/chulopp/CoinWeton.git
cd CoinWeton- Install project dependencies:
npm install- Configure environment variables: Copy the environment template file:
cp .env.example .env.localPopulate the required credentials in .env.local:
| Variable | Provider | Purpose |
|---|---|---|
DATABASE_URL |
Neon Console | Pooled PostgreSQL connection string |
AUTH_SECRET |
Auth.js | Session encryption secret |
AUTH_GOOGLE_ID |
Google Cloud Console | OAuth 2.0 Client ID |
AUTH_GOOGLE_SECRET |
Google Cloud Console | OAuth 2.0 Client Secret |
COINGECKO_API_KEY |
CoinGecko | Market data access |
NEWSDATA_API_KEY |
NewsData.io | Crypto news feed |
GOPLUS_API_BASE |
GoPlus Security | Contract audit endpoint |
OPENROUTER_API_KEY |
OpenRouter | AI model completions |
- Start the development server:
npm run dev- Open the application:
Visit
http://localhost:3000in your browser.
Active internet connectivity is required to fetch real-time feeds from CoinGecko, GoPlus, and OpenRouter.
CoinWeton/
├── src/
│ ├── app/ # Next.js App Router (pages and API routes)
│ │ ├── api/ # Backend API proxy handlers
│ │ │ ├── chat/ # Cown AI completion endpoint
│ │ │ ├── coins/ # CoinGecko market proxy
│ │ │ ├── highlights/ # Trending and gainer feeds
│ │ │ ├── market/ # Global market overview
│ │ │ ├── news/ # NewsData aggregation
│ │ │ ├── search/ # Coin search query handler
│ │ │ └── watchlist/ # Watchlist persistence routes
│ │ ├── coins/[id]/ # Coin detail view and TradingView chart
│ │ ├── cown-ai/ # Interactive Cown AI terminal
│ │ ├── watchlist/ # User watchlist view
│ │ └── page.tsx # Main dashboard overview
│ ├── components/ # React UI components
│ │ ├── coin-detail/ # Coin metrics and chart modules
│ │ ├── highlights/ # Market sentiment and top movers
│ │ ├── layout/ # Navigation bars and footer
│ │ ├── market/ # Primary market table
│ │ └── ui/ # Base component primitives
│ ├── db/ # Drizzle ORM schema and database client
│ ├── lib/ # Data fetchers and helper utilities
│ └── utils/ # Shared helper functions
├── drizzle/ # Database migration files
├── data/ # Product requirements and documentation
├── public/ # Static media and branding assets
├── .env.example # Environment configuration template
├── drizzle.config.ts # Drizzle ORM configuration
├── next.config.ts # Next.js configuration
├── package.json # Project dependencies and npm scripts
└── tsconfig.json # TypeScript compiler options
This project is licensed under the MIT License.
Data and infrastructure providers supporting the platform: