Thanks to visit codestin.com
Credit goes to github.com

Skip to content

๐ŸŽฎ Telegram Mini App gaming platform built on TON blockchain. Features interactive games, NFT minting, social challenges, and wallet integration. Built with React 19 + TypeScript.

Notifications You must be signed in to change notification settings

DosymzhanKogabaev/nymb

Repository files navigation

Nymb - Telegram Mini App Gaming Platform

Nymb is a cutting-edge Telegram Mini App that combines gaming, social features, and blockchain technology. Built on the TON (The Open Network) blockchain, it offers users an immersive gaming experience with NFT minting, social interactions, and reward systems.

๐ŸŽฎ Features

Core Gaming Experience

  • Swipe Game: Interactive card-based gaming mechanics
  • Battle Game: Competitive gameplay with Rive animations
  • Daily Rewards: Claim daily bonuses to keep players engaged
  • Farming System: Earn rewards through various activities

Social & Competitive

  • Star Board: Leaderboard system to track top performers
  • Referrals (Frens): Invite friends and earn rewards
  • Tasks System: Complete challenges for additional rewards

Blockchain Integration

  • TON Connect: Seamless wallet connectivity
  • NFT Minting: Mint unique NFTs with 0.1 TON transactions
  • Early Access NFTs: Special minting opportunities for early users
  • Transaction Verification: Real-time blockchain transaction monitoring

๐Ÿ›  Technology Stack

Frontend

  • React 19 with TypeScript
  • Vite for fast development and building
  • React Router DOM for navigation
  • Rive Animations for rich interactive graphics
  • Lottie for additional animations

Blockchain

  • TON Connect UI for wallet integration
  • ton-core for blockchain interactions
  • Custom transaction handling with BOC (Bag of Cells) processing

Development Tools

  • ESLint with TypeScript support
  • Prettier for code formatting
  • PostCSS for styling
  • Vite SVGR for SVG component generation

๐Ÿ“ฑ Telegram Integration

The app is specifically designed as a Telegram Mini App with:

  • Telegram Web App API integration
  • Safe area handling for mobile devices
  • Custom styling for Telegram's dark theme
  • Optimized for mobile-first experience

๐Ÿš€ Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn
  • Telegram account for testing

Installation

  1. Clone the repository:
git clone <repository-url>
cd nymb
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

The app will be available at http://localhost:3000

Building for Production

npm run build

This will generate optimized files in the dist/ directory with a post-build script for additional processing.

๐Ÿ”ง Configuration

Environment Setup

The app uses various polyfills and configurations for blockchain compatibility:

  • Buffer polyfills for browser compatibility
  • Global variable definitions for TON Connect
  • Custom Vite configuration for Node.js modules

TON Connect Configuration

The app connects to TON wallets using a manifest file:

https://nymb-frontend.vercel.app/manifest/tonconnect-manifest.json

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ api/           # API client and backend integrations
โ”œโ”€โ”€ assets/        # Images, icons, and animations
โ”œโ”€โ”€ common/        # Reusable components
โ”œโ”€โ”€ context/       # React context providers (Auth, etc.)
โ”œโ”€โ”€ hooks/         # Custom React hooks
โ”œโ”€โ”€ pages/         # Main application pages
โ”œโ”€โ”€ types/         # TypeScript type definitions
โ”œโ”€โ”€ utils/         # Utility functions
โ”œโ”€โ”€ App.tsx        # Main application component
โ””โ”€โ”€ main.tsx       # Application entry point

๐ŸŽฏ Key Components

Pages

  • Index: Main landing page with animations and game previews
  • Home: User dashboard
  • Star Board: Leaderboard and rankings
  • Tasks: Challenge and quest system
  • Frens: Referral and social features
  • Daily Rewards: Daily check-in system
  • Swipe Game: Card-based gaming interface

Core Features

  • Authentication: Telegram-based user authentication
  • Wallet Integration: TON Connect for blockchain operations
  • NFT Minting: Complete transaction flow for NFT creation
  • Animation System: Rive-based animations for enhanced UX

๐Ÿ” Security & Best Practices

  • TypeScript for type safety
  • ESLint configuration for code quality
  • Secure transaction handling
  • Proper error handling for blockchain operations
  • Local storage management for user data

๐Ÿš€ Deployment

The application is configured for deployment on Vercel with:

  • Optimized build configuration
  • Proper asset handling
  • TON Connect manifest hosting

๐Ÿ“Š Performance

  • Lazy loading for animations
  • Optimized bundle splitting
  • Efficient React rendering
  • Minimal blockchain API calls

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run linting and tests
  5. Submit a pull request

๐Ÿ“„ Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run postbuild - Run post-build processing
  • npm run lint - Run ESLint
  • npm run preview - Preview production build

๐Ÿ”— Links


Nymb - Where gaming meets blockchain in the Telegram ecosystem.

About

๐ŸŽฎ Telegram Mini App gaming platform built on TON blockchain. Features interactive games, NFT minting, social challenges, and wallet integration. Built with React 19 + TypeScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published