coinpulse
coinpulse copied to clipboard
CryptoPulse is a high-performance analytics dashboard built with Next.js 16. It leverages WebSockets and CoinGecko to provide real-time market data, live orderbooks, and integrated TradingView charts.
CryptoPulse β Analytics Dashboard
π Table of Contents
- β¨ Introduction
- βοΈ Tech Stack
- π Features
- π€Έ Quick Start
- π Assets
- π More
π¨ Tutorial
This repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, JavaScript Mastery.
If you prefer visual learning, this is the perfect resource for you. Follow our tutorial to learn how to build projects like these step-by-step in a beginner-friendly manner!
β¨ Introduction
CryptoPulse is a high-performance analytics dashboard built with Next.js 16, TailwindCSS v4, and shadcn/ui, delivering real-time market intelligence via CoinGeckoβs API and WebSockets. It features high-frequency price tracking and live orderbook streams for low-latency updates, paired with interactive TradingView candlestick charts to visualize OHLCV data with surgical precision. From a dynamic homepage showcasing global stats and trending assets to robust token pages with multi-fiat converters and advanced search tables, the platform provides a modular, developer-friendly stack optimized for speed and clarity.
If you're getting started and need assistance or face any bugs, join our active Discord community with over 50k+ members. It's a place where people help each other out.
βοΈ Tech Stack
-
Next.js is a powerful React framework for building full-stack web applications. It simplifies development with features like server-side rendering, static site generation, and API routes, enabling developers to focus on building products and shipping quickly.
-
TypeScript is a superset of JavaScript that adds static typing, providing better tooling, code quality, and error detection for developers. It is ideal for building large-scale applications and enhances the development experience.
-
Tailwind CSS is a utility-first CSS framework that allows developers to rapidly build modern websites by composing styles directly in their HTML markup, which facilitates highly customized designs and ensures the smallest possible production CSS bundles.
-
Shadcn/ui is a collection of beautifully-designed, accessible React components that you copy and paste directly into your project (it is not a traditional npm library), giving you full source code ownership and total customization control to build your own design system often utilizing Tailwind CSS.
-
CodeRabbit is an AI-powered code review platform that integrates into Git workflows (like GitHub and GitLab) to automatically analyze pull requests, identifying issues ranging from readability concerns to logic bugs and security flaws, and offering one-click fixes to help teams ship high-quality code faster.
-
CoinGecko API is a comprehensive and reliable RESTful API that provides real-time and historical cryptocurrency market data, including prices, market capitalization, volume, and exchange information, enabling developers to build crypto tracking, analysis, and portfolio management applications.
-
TradingView is a high-performance financial visualization library that provides interactive charting capabilities for rendering complex OHLCV data. It enables the integration of responsive candlestick charts and technical indicators, allowing users to perform professional-grade technical analysis with low-latency updates and surgical precision.
π Features
π Home Dashboard: Displays crucial market health indicators like Total Market Cap and BTC & ETH dominance, alongside a dynamic list of Trending Tokens, all retrieved instantly using the CoinGecko /global and /search/trending endpoints.
π Token Discovery Page: A comprehensive, sortable and searchable table featuring key token metrics (Price, 24h change, Market Cap Rank) for mass market analysis, powered by the scalable /coins/markets REST API and optimized with pagination for efficient browsing.
π Detailed Token Overview: Provides an immediate summary of any selected token, including its logo, current price, and market cap rank, utilizing the /coins/{id} REST API for core data and the CGSimplePrice WebSocket for continuous, live price monitoring.
π Interactive Candlestick Chart: Integrates TradingView Lightweight Charts to visualize market trends and price action with surgical precision, rendering multi-timeframe OHLCV data fetched from CoinGeckoβs high-performance market endpoints.
π Real-Time Trades & Orderbook: Features a live stream of market activity exactly as it happens on the exchange, using low-latency WebSockets to display a constant flow of buy/sell orders and recent trade executions.
π Smart Currency Converter: An interactive tool that allows users to instantly compute coin amounts into dozens of supported fiat and crypto currencies, leveraging the /simple/supported_vs_currencies and /simple/price endpoints for accurate conversions.
π Exchange & Trading Pairs: Allows users to analyze trading context by displaying aggregated lists of exchanges and available trading pairs, with all data sourced directly from the dedicated /exchanges and /exchanges/{id}/tickers REST APIs.
π Global Search Functionality: A powerful, unified search bar that allows users to quickly locate any crypto asset by name or symbol, linking directly to the respective Token Detail Page via the CoinGecko /search and /coins/{id} REST endpoints.
And many more, including code architecture and reusability.
π€Έ Quick Start
Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Cloning the Repository
git clone https://github.com/adrianhajdin/coinpulse.git
cd coinpulse
Installation
Install the project dependencies using npm:
npm install
Set Up Environment Variables
Create a new file named .env in the root of your project and add the following content:
COINGECKO_BASE_URL=https://pro-api.coingecko.com/api/v3
COINGECKO_API_KEY=
NEXT_PUBLIC_COINGECKO_WEBSOCKET_URL=
NEXT_PUBLIC_COINGECKO_API_KEY=
Replace the placeholder values with your real credentials. You can get these by signing up at: Example.
Running the Project
npm run dev
Open http://localhost:3000 in your browser to view the project.
π Assets
Assets and snippets used in the project can be found in the video kit.
π More
Advance your skills with Next.js Pro Course
Enjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with detailed explanations, cool features, and exercises to boost your skills. Give it a go!