MCPcopy Create free account
hub / github.com/FlagBrew/PKSM

github.com/FlagBrew/PKSM @10.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 10.3.0 ↗ · + Follow
2,407 symbols 6,484 edges 282 files 310 documented · 13% updated 33d ago10.3.0 · 2026-06-10★ 2,16173 open issues

Browse by type

Functions 1,930 Types & classes 477
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Multipurpose and portable Pokemon save manager and editor for generations I to VIII, programmed in C++.

  • Supports original cartridges and digital copies of games from FrLgRSE to SwSh
  • Allows on-the-fly modifications to all of your data
  • Allows internal and resizable offline storage to store your Pokémon
  • Capable of running custom scripts to allow injection of arbitrary data into your saves
  • Capable of scanning QR codes to inject both .pkx files or event wondercards
  • Contains an offline wondercard database to get events from old distributions
  • Capable of automatic verification and legalization of all your data (internet connection and local hosting required)
  • Requires you to run your own local-gpss (or to use one hosted by someone else in the future)

We do not support or condone cheating at the expense of others. Do not use significantly edited Pokémon in battle or in trades with those who are unaware edited Pokémon are in use.

Screenshots

Documentation

Please refer to the PKSM wiki for detailed documentation.

Installation

This software works on CFW and Rosalina-based Homebrew Launchers. An internet connection is required when first launching PKSM.

Entrypoint Instructions
CFW Install the PKSM.cia file provided in the release page with your favourite installer. You can now launch the application from the Home Menu
Rosalina HBL Copy the PKSM.3dsx file provided in the release page into your SD card. You can now launch PKSM from a Rosalina-based Homebrew Launcher

Initial launch will require your system to be connected to the internet. This is needed to download the additional assets required for the application to launch. If your system is not connected to the internet, PKSM will close.

Applications compatible with PKSM

  • PKHeX: Generates .pk7, .pk6, .wc7, .wc6 QR codes scannable from PKSM. Runs on PC.
  • MysteryGiftBot: Generates .wc7 QR codes scannable from PKSM. Runs on Twitter.
  • PKSM-Scripts: A toolkit to develop and compile .pksm and .c scripts.
  • Local GPSS: A local hostable version of GPSS with (Auto)Legality functionality

Working path

  • Additional assets are located at /3ds/PKSM/assets
  • Automatic save backups are located at /3ds/PKSM/backups
  • Extra storage data is located at /3ds/PKSM/banks
  • .pkx and .wcx dumps are located in /3ds/PKSM/dumps
  • Custom scripts are located in /3ds/PKSM/scripts
  • Custom background songs are located in /3ds/PKSM/songs

Troubleshooting

Before submitting an issue, have a look through the issue tracker, as your question or bug request may have already been answered in the past.

Please only submit consistent issues (submitting your environment and which version of PKSM you're running, for example). Duplicate issues will be closed.

Issues that are opened concerning releases other than the latest stable release will also be closed. Please do not report bugs with old software.

You can get real-time support by joining FlagBrew's discord server:

Discord

Building

PKSM has the following dependencies:

libctru, citro3d, citro2d, 3ds-curl, 3ds-pkg-config, 3ds-bzip2, 3ds-mpg123, 3dstools, tex3ds and the devkitARM toolchain with their dependancies.

All of these should be installed from devKitPro pacman.

Package Tested version
devkitARM r68.1
devkitarm-gcc 16.1.0-1
devkitarm-rules 1.6.0-4
libctru 2.7.0-1
citro3d 1.7.1-2
citro2d 1.7.0-1
3ds-curl 8.4.0-1
3ds-pkg-config 0.28-5
3ds-bzip2 1.0.8-1
3ds-mpg123 1.31.3-3
3dstools 1.3.1-3
tex3ds 2.3.0-4

To compile, clone the repository with all submodules (git clone --recursive https://github.com/FlagBrew/PKSM.git if initially cloning, git submodule init and git submodule update if running from an existing clone) and run make all.

Credits

Without you, this project wouldn't have existed. Thank you.

License

This project is licensed under the GNU GPLv3. Additional Terms 7.b and 7.c of GPLv3 apply to this. See LICENSE for details.

Core symbols most depended-on inside this repo

Shape

Method 1,085
Function 845
Class 451
Enum 26

Languages

C++86%
C14%
Python1%
Go1%

Modules by API surface

common/include/dr_libs/dr_wav.h119 symbols
external/nlohmann/json.hpp110 symbols
3ds/source/picoc/pksm_api.cpp106 symbols
external/nlohmann/detail/meta/type_traits.hpp85 symbols
common/source/picoc/cstdlib/stdio.c66 symbols
common/source/quirc/identify.c57 symbols
3ds/source/gui/gui.cpp54 symbols
external/qrgen/QRGen.cpp49 symbols
external/nlohmann/detail/input/json_sax.hpp48 symbols
external/nlohmann/detail/input/binary_reader.hpp38 symbols
external/nlohmann/detail/output/binary_writer.hpp35 symbols
common/source/picoc/cstdlib/unistd.c34 symbols

For agents

$ claude mcp add PKSM \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page