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
| Game | Import Path | Description |
|---|---|---|
| Dice | @maktubbet/sdk/dice | Classic dice game — pick over/under and roll |
| Keno | @maktubbet/sdk/keno | Pick numbers and match draws for multiplied payouts |
| Plinko | @maktubbet/sdk/plinko | Drop a ball through pegs and land on multipliers |
| Limbo | @maktubbet/sdk/limbo | Set a target multiplier and test your luck |
| Mines | @maktubbet/sdk/mines | Uncover gems while avoiding hidden mines |
| Roulette | @maktubbet/sdk/roulette | Place bets on the spinning wheel |
| Wheel | @maktubbet/sdk/wheel | Spin the wheel and win prizes |
| Coin Flip | @maktubbet/sdk/coinflip | Pick heads or tails and flip the coin |
| Blackjack | @maktubbet/sdk/blackjack | Beat the dealer — get closer to 21 without going over |
| Hi-Lo | @maktubbet/sdk/hilo | Guess 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