Skip to content

Repository files navigation

V3 — Telegram Mini App Template

TypeScript React Vite Tailwind CSS TON Bitcoin Tron License

V3 — Telegram Mini App template with TON wallet, trading data, multi-chain explorers, and games. React + TypeScript + Vite.

Live Demo: https://bitopencode.github.io/V3/
Telegram Mini App: @BTCPunkBot

Open-source template. No backend. No data collection. Connect wallet works only for monitoring your wallet and transactions.


Quick Start

git clone https://github.com/BitOpenCode/V3.git
cd V3
npm install
npm run dev   # http://localhost:5180
npm run build   # docs/ for GitHub Pages
npm run lint

Modules

Module What it does
Tickers Binance real-time prices, filters, favorites
Order Book Binance depth, bids/asks, spread
Portfolio Positions, PnL, total value
Charts TradingView: Advanced, Overview, Market, Web3, Summary
Mempool BTC mempool, fees, blocks
Wallet Explorer BTC / TON / TRC20 balances, tx history
Transactions Filter by chain, direction, amount
News NewsAPI + NewsData.io, filter by category
Calculator Crypto conversion, PnL
Share Share tickers with price and percent
Trade Room 3D Three.js scenes (Singularity, Sky Cabin, Spooky)

Games

Game Status
SpaceShip ✅ Arcade, keyboard/touch
HugMe / Castles / Conquer / RunRoad 🚧 WIP

Tech Stack

  • React 18, TypeScript, Vite
  • Tailwind CSS, Framer Motion
  • Zustand, React Hook Form, Zod
  • TON Connect, ton-api
  • Three.js, React Three Fiber

UI Components

Themes

  • Space (default) / Light / Bubbles — persist in localStorage

Layout

Header:

  • Mempool / News / Connect Wallet / Wallet / Menu

BottomNav:

  • Chart / Tickers / OrderBook / Share / Calculator / Portfolio

Reusable

  • BubbleButton — lava lamp + bubbles
  • BubbleCard — same + optional title
  • SocialCard — astronaut + social links
  • ShootingStars — animated background

API Endpoints

  • Binance: /api/v3/ticker/24hr, /api/v3/depth, WebSocket
  • TON | GRAM: tonapi.io/v2
  • News: newsapi.org/v2, newsdata.io/api/1/crypto
  • Mempool Bitcoin: mempool.space/api
  • TRC20 | Tron: apilist.tronscan.org/api

API Keys

This project uses external APIs that require keys:

  • NewsData.io — for crypto news (VITE_NEWS_API_KEY)
  • NewsAPI.org — for crypto news (VITE_NEWSAPI_KEY)

How to get keys

  1. NewsData.io — sign up at newsdata.io (free tier available)
  2. NewsAPI.org — sign up at newsapi.org (free tier available)

Setup

Create a .env file in the root directory:

VITE_NEWS_API_KEY=your_newsdata_io_key
VITE_NEWSAPI_KEY=your_newsapi_org_key

Charts

TradingView widgets used:

Widget Link
Advanced Chart embed-widget-advanced-chart.js
Symbol Overview embed-widget-symbol-overview.js
Market Summary (7D) embed-widget-market-overview.js
Web3 Screener embed-widget-screener.js
Market Overview embed-widget-market-overview.js

Project Structure

src/pages/
├── Avatars/          # Avatar selection
├── Calculator/       # Crypto converter & PnL
├── Chart/            # TradingView widgets
├── ComingSoon/       # Placeholder for WIP features
├── Games/            # SpaceShip, RunRoad
├── Home/             # Main dashboard
├── Mempool/          # BTC mempool + TON/TRC20 lookup
├── Menu/             # Settings, themes, language
├── News/             # Crypto news aggregator
├── OrderBook/        # Binance order book
├── Portfolio/        # Positions, PnL tracking
├── Profile/          # User stats
├── Progress/         # Achievements & level
├── Results/          # Game & trading history
├── Share/            # Share tickers with price/percent
├── Tickers/          # Real-time prices from Binance
├── TradeRoom/        # 3D Three.js scenes
├── Wallet/           # TON wallet dashboard
└── index.ts          # Page exports

Deployment

GitHub Pages

npm run build   # output to docs/

Repo settings → Pages → branch main + folder /docs

Telegram Mini App

Set your deployment URL in @BotFather


Author

BitOpenCodeGitHubTelegram

License

MIT © BitOpenCode


---

About

TG webapp [Connect wallet, TradingView, markets, tickers, volume, portfolio, news, transactions/wallets explorer]

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages