whatisgithub

What is majsoul-analysis-suite?

whong09/majsoul-analysis-suite — explained in plain English

Analysis updated 2026-05-18

0PythonAudience · generalComplexity · 3/5LicenseSetup · moderate

In one sentence

A toolkit that pulls your Mahjong Soul game replays from the browser and analyzes your luck, efficiency, and playstyle against the field.

Mindmap

mindmap
  root((majsoul analysis suite))
    Extract
      Chrome replay scrape
      Bulk extraction
      MAKA AI review
    Analyze
      Efficiency stats
      Luck stats
      Style stats
    Advanced review
      Mortal AI comparison
      Shareable packs
    Tech
      Python scripts
      TypeScript MCP server
      CDP automation
    Audience
      Mahjong Soul players
      Stat curious gamers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Extract a finished Mahjong Soul replay from your browser and convert it into a shareable JSON log.

USE CASE 2

Compare your discard efficiency and luck stats against the average player in your games.

USE CASE 3

Run bulk extraction across your entire replay history in one pass.

USE CASE 4

Get an AI-based review of your discards using the Mortal model without needing to install the model yourself.

What is it built with?

PythonTypeScriptChrome DevTools ProtocolNode.js

How does it compare?

whong09/majsoul-analysis-suite0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity3/52/54/5
Audiencegeneralgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires launching Chrome with remote debugging enabled on a separate profile before extraction works.

MIT license: use, copy, modify, and distribute freely, including for commercial purposes, as long as the copyright notice is kept.

So what is it?

This project is a toolkit for people who play Mahjong Soul, an online mahjong game, and want to study their own games afterward. Mahjong Soul runs in a browser, and this suite pulls a finished game replay straight out of that browser session, converts it into a standard JSON format used by another mahjong tool called tenhou, and then runs several scripts over that JSON to break down how you played. The analysis side looks at three things: luck (how good your starting tiles and draws were compared to everyone else at the table), efficiency (whether your discards were the mathematically best choice at each turn), and style (things like how often you called riichi or opened your hand). One script produces a side by side table comparing your numbers to the field average, so you can see, for example, whether your reach rate is unusually low or your useful draw rate is unusually high. A separate script folds in game value and hand context, so plays made for placement or scoring reasons are not mistakenly counted as pure errors. There is also a bulk mode that can work through an entire replay list automatically by driving the on screen interface, and it can read an in game AI review feature called MAKA straight from the browser's memory. For deeper review, the project can hook into a separate, locally run mahjong AI called Mortal to compare your discards against what a strong policy model would have played, and it can package logs into a shareable bundle that a machine without the AI model installed can still read. A small companion tool, written in TypeScript, handles the browser automation piece by connecting to Chrome over its remote debugging protocol. The project only reads your own replay data from your own browser session and does not interact with Mahjong Soul's servers directly. It is released under the MIT license.

Copy-paste prompts

Prompt 1
Walk me through setting up Chrome remote debugging so I can extract a Mahjong Soul replay with this tool.
Prompt 2
Explain what the efficiency, luck, and style metrics in mjsoul_analyze.py mean for someone new to mahjong stats.
Prompt 3
Help me write a script that summarizes my riichi rate and call rate across multiple extracted game logs.
Prompt 4
Show me how to build and register the chrome-mcp server with an MCP client.

Frequently asked questions

What is majsoul-analysis-suite?

A toolkit that pulls your Mahjong Soul game replays from the browser and analyzes your luck, efficiency, and playstyle against the field.

What language is majsoul-analysis-suite written in?

Mainly Python. The stack also includes Python, TypeScript, Chrome DevTools Protocol.

What license does majsoul-analysis-suite use?

MIT license: use, copy, modify, and distribute freely, including for commercial purposes, as long as the copyright notice is kept.

How hard is majsoul-analysis-suite to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is majsoul-analysis-suite for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.