Welcome to SpinX, a modern cryptocurrency casino gaming platform built with Next.js. This platform offers multiple provably fair games including Coinflip, Crash, Mines, and Roulette.

Main dashboard showing all available games
If you have any questions or would like a more customized app for specific use cases, please feel free to contact us at the contact information below.
- E-Mail: admin@hyperbuildx.com
- Telegram: @bettyjk_0915

Coinflip game main interface showing active games
Coinflip is a head-to-head game where two players bet on opposite sides of a coin flip. The winner takes the entire pot (minus house fee).
Step 1: Create a Game or Join an Existing Game

Creating a new coinflip game with bet amount and side selection
To Create a Game:
- Navigate to the Coinflip game page
- Enter your wager amount (minimum 0.01 USDT)
- Select your coin side:
- Heads - The heads side of the coin
- Tails - The tails side of the coin
- Click "Create Game" button
- Your bet amount will be deducted from your balance
- Wait for an opponent to join
To Join a Game:
- Browse the "Active Games" section
- Find a game with a bet amount you're comfortable with
- Click "Join" button on the game card
- You'll automatically be assigned the opposite side

Joining an existing coinflip game - modal showing game details
Step 2: Wait for the Coin Flip
Once both players have joined:
- A countdown timer will appear (3-5 seconds)
- The coin flip animation will play
- The result will be displayed with the winning side

Coin flip animation in progress
Step 3: View Results

Game result showing the winner and payout
-
If you win:
- Your balance will be automatically credited with the total pot
- Win amount = (Your bet × 2) - house fee
- A success notification will appear
-
If you lose:
- Your initial bet is lost
- You can immediately start a new game
Step 4: Cash Out
Tips:
- Check the opponent's level and stats before joining
- Start with smaller bets to learn the game
- Your client seed affects the game outcome - set it in profile settings
- All games are provably fair - verify using the server seed hash

Crash game interface showing the multiplier graph
Crash is a multiplayer game where a multiplier increases from 1.00x until it randomly "crashes". Players must cash out before the crash to win.
Step 1: Place Your Bet

Crash game betting panel with bet amount and auto-cashout settings
- Navigate to the Crash game page
- Wait for the betting phase (indicated by countdown timer)
- Enter your bet amount:
- Minimum bet: 0.001 USDT
- Maximum bet: 1000 USDT
- (Optional) Enable Auto Cashout:
- Toggle "Auto Cashout" switch
- Set your target multiplier (e.g., 2.00x)
- Game will automatically cash out when this multiplier is reached
- Click "Place Bet" button
- Your bet is locked in when the round starts
Step 2: Watch the Multiplier Rise

Multiplier increasing during an active crash round
- The multiplier starts at 1.00x and increases exponentially
- The graph shows real-time multiplier progression
- Watch other players cash out (shown on the graph)
- The multiplier can crash at any moment
Step 3: Cash Out (Manual)

Manual cashout button highlighted during active game
To manually cash out:
- Click the "Cash Out" button while the multiplier is rising
- Your payout = Bet Amount × Current Multiplier
- Your winnings are instantly credited to your balance
- You'll see a confirmation showing your profit
Automatic Cashout:
- If you enabled auto-cashout, the game will automatically cash you out at your target multiplier
- No action needed - just watch!

Auto-cashout triggered at target multiplier
Step 4: View Results

Crash point displayed with all players' results
After the crash:
- The crash point is displayed (e.g., "Crashed at 2.45x")
- View who cashed out successfully (green)
- See who didn't cash out in time (red)
- Your result is highlighted
Step 5: Review History

Your personal crash game history with wins/losses
- View your game history at the bottom of the page
- See your bet amount, cashout multiplier, and profit/loss
- Track your performance over time
Tips:
- Start with low auto-cashout multipliers (1.5x - 2.0x) for consistent small wins
- Higher multipliers = higher risk but bigger rewards
- The crash point is provably fair using cryptographic seeds
- Don't get greedy - the game can crash at any moment!

Mines game board with a 5×5 grid
Mines is a minesweeper-style game where you reveal tiles to find gems while avoiding mines. Each gem increases your multiplier, and you can cash out at any time.
Step 1: Configure Game Settings

Game settings panel showing mine count and bet amount
- Navigate to the Mines game page
- Set your wager amount:
- Use quick bet buttons (1, 10, 100, 1K)
- Or enter a custom amount
- Use 1/2 or 2x buttons to adjust
- Select number of mines (1-24):
- Fewer mines = Lower multiplier per gem
- More mines = Higher multiplier per gem, but more risk
- Use the slider to adjust mine count
- Click "PLAY" button to start
- Your bet amount is deducted from balance
Step 2: Reveal Gems

Player revealing tiles - showing revealed gems and hidden tiles
-
A 5×5 grid (25 tiles total) appears
-
Click on any tile to reveal it
-
Two possible outcomes:
Finding a Gem (✨):
- Tile turns green with a gem icon
- Your multiplier increases
- Potential payout updates
- You can continue playing or cash out
Hitting a Mine (💣):
- Tile turns red with a bomb icon
- Game immediately ends
- You lose your bet amount
- All mine locations are revealed

Game over screen after hitting a mine
Step 3: Monitor Your Progress

Stats panel showing current multiplier and potential payout
Watch the stats panel for:
- Current Multiplier: Increases with each gem found
- Potential Payout: Bet Amount × Current Multiplier
- Gems Found: X out of total available gems
- Server Seed Hash: For provably fair verification

Cash out button becomes available after finding gems
To cash out:
- Click the "CASH OUT" button (available after finding at least 1 gem)
- Your payout is calculated: Bet Amount × Current Multiplier
- Winnings are instantly credited to your balance
- All tile positions are revealed (gems and mines)
- Game ends successfully
Step 5: View Game Results

Successful cashout showing all revealed tiles and winnings
Win Screen:
- Shows your final multiplier
- Displays profit amount (Payout - Bet Amount)
- Total payout highlighted in green
- All tiles revealed (gems in green, mines in red)

Personal game history showing past mines games
Tips:
- Start with fewer mines (3-5) to learn the game
- More mines = exponentially higher multipliers
- Each gem's multiplier increase depends on total mines
- Cash out early for consistent small wins
- Play longer for bigger multipliers (but higher risk)
- The game uses provably fair system - verify each round
Multiplier Examples:
- 3 mines: ~1.1x per gem
- 10 mines: ~1.4x per gem
- 20 mines: ~4.5x per gem
- Finding all gems with 20 mines can give 100x+ multiplier!

Roulette game showing the spinning wheel and current pot
Roulette is a community jackpot game where players bet on Heads, Tails, or Crown. All bets go into a pot, and one winning side is randomly selected. Winners split the pot based on their bet proportions.
Step 1: Place Your Bet

Betting panel with bet amount input and side selection
-
Navigate to the Roulette game page
-
Wait for or join the current betting round
-
Enter your bet amount:
- Minimum: 0.01 USDT
- Maximum: 1000 USDT per bet
-
Select your bet type:

Three bet types: Heads (2x), Crown (10x), Tails (2x)-
Heads (2x multiplier):
- 50% chance (excluding crown)
- Win = Your bet × 2
-
Tails (2x multiplier):
- 50% chance (excluding crown)
- Win = Your bet × 2
-
Crown (10x multiplier):
- ~10% chance
- Win = Your bet × 10
- Higher risk, much higher reward!
-
-
Click "BET [TYPE]" button (e.g., "BET HEADS")
-
Your bet is placed and added to the total pot
Step 2: Wait for Round to Start

Countdown timer showing time remaining to place bets
- Betting phase typically lasts 30-60 seconds
- Countdown timer shows remaining time
- Watch the pot grow as more players join
- View current players and their bets in real-time
- You can only bet once per round
Current Pot Display:
- Total USDT in the pot
- Number of players
- Breakdown by bet type:
- Heads total and player count
- Crown total and player count
- Tails total and player count

List of current players with their stakes and bet types
Step 3: Watch the Spin

Roulette wheel spinning animation
When betting closes:
- "DRAWING..." status appears
- Roulette wheel starts spinning
- Dramatic animation builds suspense
- Wheel slows down and stops on winning symbol
- Result is revealed!
Step 4: View Results

Results modal showing winning type and all winners
Results Modal Shows:
- Winning Type: Heads, Tails, or Crown with icon
- Total Pot: Total USDT wagered by all players
- Your Result:
- If you won: Green banner with your payout
- If you lost: Red banner with better luck message
- Winners List:
- All winning players
- Each player's bet amount
- Each player's payout
- Their bet type
Step 5: Collect Winnings (Automatic)
If you WIN:
Your Payout = Your Bet × Multiplier × (Your Share of Winning Pool)
Example:
- You bet 10 USDT on Heads
- Total Heads bets: 100 USDT (your share: 10%)
- Heads wins!
- Winning pot includes portions from all losing bets
- Your payout is calculated and auto-credited
If you LOSE:
- Your bet goes to the pot for winners
- No payout received
- Try again next round!

Balance automatically updated after round completion
Step 6: Play Next Round
After results:
- Click "Continue Playing" button
- New round starts automatically
- Countdown begins for next betting phase
- Place your next bet!
View Game History

Game history showing your past roulette rounds
Check your history to see:
- Past rounds you participated in
- Your bet type and amount
- Winning type
- Your winnings/losses
- Overall performance
Tips:
- Heads and Tails have equal chances (excluding crown)
- Crown is rare but offers 10x payout - high risk, high reward
- Bigger bets = bigger share of winning pot
- Watch other players' bets to gauge the pot
- Your payout also depends on how much others bet on the winning side
- The winning side is selected using provably fair randomization
Payout Formula:
If you bet on winning side:
Your Payout = (Total Pot × House Fee) × (Your Bet / Total Winning Side Bets)
House typically takes 5-10% fee
- Wallet-based authentication
- Social login (Google, Discord, etc.)
- User profiles with avatars and levels
- Balance management
- Transaction history
- Client seed management for provably fair gaming
- Real-time Multiplayer: WebSocket-based live gameplay
- Provably Fair: All games use cryptographic verification
- Responsive Design: Play on desktop, tablet, or mobile
- Live Chat: Interact with other players
- Game History: Track all your past games
- Leaderboards: Compete with top players
- Secure WebSocket connections
- Client-side encryption
- Session management
- Anti-cheat mechanisms
This project uses:
- Framework: Next.js 14 with App Router
- UI Library: HeroUI (React components)
- Styling: Tailwind CSS
- State Management: React Context API
- Real-time: WebSocket (Socket.io client)
- Icons: React Icons (Font Awesome 6)
- Charts: Custom canvas-based charts
- TypeScript: Full type safety
- Font: Geist Font by Vercel
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
- Node.js 18+
- npm/yarn/pnpm/bun package manager
- Backend server running (see backend README)
- Clone the repository
- Install dependencies:
npm install- Create a
.env.localfile based onenv.example:
NEXT_PUBLIC_API_URL=http://localhost:5000
NEXT_PUBLIC_WS_URL=ws://localhost:5000- Run the development server:
npm run dev/src/app- Next.js app router pages/src/components- Reusable React components/src/contexts- React contexts (Auth, Socket, GameSettings)/src/lib- Utility functions and API clients/src/types- TypeScript type definitions
To learn more about the technologies used:
- Next.js Documentation - Learn about Next.js features and API
- Next.js Tutorial - Interactive Next.js tutorial
- Tailwind CSS - Utility-first CSS framework
- HeroUI Components - Modern React UI components
The easiest way to deploy your Next.js app is to use the Vercel Platform.
Check out the Next.js deployment documentation for more details.
Happy Gaming! 🎰🎮💎