Complete Crypto Telegram Mini App Game Source Code

A complete Telegram Mini App source code built with Next.js. This project includes a physics-based merge game (Watermelon style), TON Blockchain payments, Telegram Stars monetization, a referral system for user growth, and a secure backend.

TelegramGameSuikaNext.jsTONTelegram Stars

This project is no longer sold

The page stays up so old links keep working. Already bought it? Nothing changes for you: sign in and open it from your dashboard.

Gallery

A closer look

18 screenshots · tap any image to view it full screen

Complete Crypto Telegram Mini App Game Source Code

Start your own Telegram Mini App project today. This product is a complete, production-ready source code package for a full-stack Telegram game.

If you want to buy Telegram game code that is ready to deploy, this is the correct choice. This is not just a basic template. It is a fully functional application built with a modern and scalable technology stack.

The game is a "Watermelon-style" physics merge game. It is designed to keep users engaged. The code includes two integrated payment systems: Telegram Stars and TON Blockchain wallets. It also includes a robust referral system, daily bonuses, and a global leaderboard.

Save development time. Buy this Next.js Telegram mini app code and launch your project immediately.

🚀 Core Features

This package contains fully implemented features.

1. Double Payment System: Monetization Ready

This codebase includes two important payment integrations for Telegram applications.

  • 💎 Telegram Stars Integration: You can accept payments using Telegram's native currency, Stars. The code (app/api/points/buy/route.ts) handles the logic for creating invoices and selling game points.
  • 💰 TON Blockchain Payments: This is the TON payments integration code you need.
  • TON Connect: Includes a component (TonPaymentModal.tsx) for connecting crypto wallets.
  • Secure Verification: The backend (app/api/points/verify-ton/route.ts) verifies transactions on the blockchain to prevent fraud.
  • Wallet Management: The system handles wallet connections securely.

2. Engaging Gameplay Engine

The game uses a physics-based system to keep players interested.

  • Physics Logic: The file components/game/SuikaGame.tsx contains the full game logic using the Matter.js engine.
  • Server-Side Security: The game logic runs on the server (app/api/game/). This manages sessions and validates scores.
  • Anti-Cheat System: The system validates scores server-side to prevent cheating. It limits the maximum points per game.
  • Game Cooldown: A 3-hour timer is included to encourage users to return daily.

3. Full-Stack Next.js 15 Architecture

This project uses modern, high-performance technology.

  • Next.js App Router: The project uses the latest file-based routing and server-side logic.
  • TypeScript & React: The code is fully typed for better stability and easier maintenance.
  • Tailwind CSS: The design uses standard utility classes for responsive UI.
  • API Endpoints: A complete backend REST API is included in the app/api/ folder.

4. User Growth Systems

This code is designed to help you get more users.

  • Referral System: Users get a unique code to invite friends. Both the inviter and the new user receive bonus points. This encourages users to share the app.
  • Daily Bonus: A 7-day login bonus system (app/api/points/claim-daily/route.ts) rewards users for opening the app every day.
  • Global Leaderboard: Users can compete for high scores on a public list.

5. Secure and Scalable Backend

The backend is built for performance and security.

  • Secure Telegram Auth: The system validates user data from Telegram on the server side to ensure security.
  • Drizzle ORM: The database schema (lib/db/schema.ts) is fully typed for safety.
  • Neon Serverless Postgres: The configuration is ready for Neon, a scalable Postgres database.
  • Rate Limiting: The code protects your API from spam and abuse using Upstash Redis.

6. Airdrop & Wallet Features

Prepare for Web3 features and the TON ecosystem.

  • Airdrop Wallet Collection: Users can submit their personal TON wallet address for future token airdrops.
  • TON Connect Provider: The app is wrapped in a provider to support TON connectivity on every page.

💻 Technical Stack

  • Framework: Next.js 15+ (App Router)
  • Language: TypeScript
  • Frontend: React, Tailwind CSS
  • Backend: Next.js API Routes
  • Database: Neon (Serverless Postgres)
  • ORM: Drizzle ORM
  • Cache/Rate Limiting: Upstash (Serverless Redis)
  • Game Engine: Matter.js
  • Payments: Telegram Stars, TON Blockchain
  • Auth & SDK: Telegram Web App SDK, TON Connect

📦 What You Receive

  • Complete Source Code: The full code for the crypto game project.
  • 30+ TypeScript Files: Includes all frontend components, API routes, and database schemas.
  • Deployment Guide: A README.md file with instructions to set up the Telegram bot, database, and deploy to Vercel.
  • Utility Scripts: Tools for webhook setup and token generation.
  • Configuration Files: Full package.json, drizzle.config.ts, and tailwind.config.ts.
  • Security Middleware: Production-ready API protection.

🎁 BONUS: Telegram Developer Kit — Reference App

Every purchase includes access to the Telegram Developer Kit. This is a working reference application that demonstrates Telegram Mini App APIs. You can use this to learn or copy code for your own project.

What is Inside the Bonus?

  • 17+ Working Demos: Live examples of Telegram features like buttons, popups, and sensors.
  • 50+ Code Snippets: Ready-to-use code blocks.
  • Full TypeScript Support: Type definitions for Telegram WebApp APIs.
  • Modern Next.js 15 Code: Built with the latest architecture.

APIs Covered in the Developer Kit

CategoryFeatures
AuthenticationSecure server-side data validation
UI ComponentsMain Button, Back Button, Settings Button
Data & StorageCloud Storage and Clipboard API
Device AccessSensors, Haptics, Orientation, Location
SecurityBiometric authentication (Fingerprint & Face ID)
MediaQR Scanner, File Downloads
MonetizationTelegram Stars payment flow examples
Game FeaturesFullscreen mode and orientation locks

Why This Bonus is Useful

Developing a Telegram Mini App requires understanding many specific APIs. This Kit provides:

  • Reference Code: See exactly how features work.
  • Best Practices: Code structures used in real applications.
  • Testing Area: Experiment with features before adding them to your game.

📈 Launch Your Game Project

Building an application with payments, a game engine, and a backend takes a lot of time and money.

This package gives you a finished foundation in minutes. You also get a reference app to help you build future features.

Buy the 'Complete Crypto Telegram Mini App Game Source Code' today. This is the high-quality Next.js Telegram mini app code and TON payments integration you need.

Purchase the code. Deploy your game. Start your project.