Fast, SEO-friendly financial charts for crypto and stocks — built with Next.js, Tailwind CSS, and TradingView Lightweight Charts.
- Candlestick charts with volume and multiple timeframes
- Live crypto market data via the Binance public API
- Stock/index placeholders ready for Twelve Data or Polygon.io
- Programmatic SEO routes (
/chart/btc,/chart/aapl) with auto-generated metadata - Dynamic
sitemap.xmlandrobots.txt - Monetization layout: AdSense slots, affiliate CTAs, CPA buttons with fallback URLs
- Environment-based config for Vercel or any Node host
- Next.js (App Router)
- Tailwind CSS
- TradingView Lightweight Charts
- TypeScript
npm install
npm run devOpen http://localhost:3000, then try /chart/btc or /chart/aapl.
Copy .env.example to .env.local and fill in values as needed:
| Variable | Description |
|---|---|
NEXT_PUBLIC_SITE_URL |
Canonical site URL (sitemap + metadata) |
TWELVE_DATA_API_KEY / POLYGON_API_KEY |
Optional stock/index APIs |
NEXT_PUBLIC_AFFILIATE_* / NEXT_PUBLIC_CPA_* |
Affiliate and CPA links |
NEXT_PUBLIC_ADSENSE_CLIENT |
AdSense publisher id |
npm run dev # local development
npm run build # production build
npm run start # serve production build
npm run lint # ESLintMIT