Skip to Content
Introduction

Maktub SDK

Maktub SDK is a plug-and-play game integration library that lets you embed casino-style games into any web application. It supports both React and Vanilla JavaScript consumers.

Available Games

GameImport PathDescription
Dice@maktubbet/sdk/diceClassic dice game — pick over/under and roll
Keno@maktubbet/sdk/kenoPick numbers and match draws for multiplied payouts
Plinko@maktubbet/sdk/plinkoDrop a ball through pegs and land on multipliers
Limbo@maktubbet/sdk/limboSet a target multiplier and test your luck
Mines@maktubbet/sdk/minesUncover gems while avoiding hidden mines
Roulette@maktubbet/sdk/roulettePlace bets on the spinning wheel
Wheel@maktubbet/sdk/wheelSpin the wheel and win prizes
Coin Flip@maktubbet/sdk/coinflipPick heads or tails and flip the coin
Blackjack@maktubbet/sdk/blackjackBeat the dealer — get closer to 21 without going over
Hi-Lo@maktubbet/sdk/hiloGuess higher or lower to build a winning streak

Integration Options

  • React — Import the game component directly and pass props. Requires react >= 18.
  • Vanilla JS — Use MaktubSDK.<game>(element, options) to mount a game into any DOM element. React is bundled internally.

Demo Mode

Every game supports a demo mode out of the box. Pass accessToken={null} (React) or accessToken: null (Vanilla) to run the game without a backend connection. The game will simulate bets locally.

Quick Example

import { DiceGameSDK } from '@maktubbet/sdk/dice' import '@maktubbet/sdk/dice/styles.css' function App() { const [balance, setBalance] = useState(1000) return ( <DiceGameSDK serverUrl="https://your-api.com" accessToken={null} user={{ balance, betCount: 0, isAuthenticated: false }} updateBalance={setBalance} onAuthRequired={() => console.log('Auth required')} /> ) }
Last updated on