pokemon-showdown/sim
2022-11-25 17:13:20 -05:00
..
examples Update Dex API (#8181) 2021-04-08 03:00:37 -07:00
tools Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
battle-actions.ts Fix types sent when a Terastallized Pokemon switches in (#9059) 2022-11-25 17:13:20 -05:00
battle-queue.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
battle-stream.ts Support persisting battles in a Postgres database (#8442) 2022-07-22 18:07:10 -07:00
battle.ts Properly implement Gigaton Hammer disabling (#9050) 2022-11-24 13:36:41 -06:00
dex-abilities.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
dex-conditions.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
dex-data.ts Handle new, stricter enforcement of no-this-alias 2022-04-04 16:54:36 -07:00
dex-formats.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
dex-items.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
dex-moves.ts Correct Max Move dex generation (#9027) 2022-11-23 13:39:20 -05:00
dex-species.ts Pokemon with Hisui evolutions get the Eviolite boost 2022-11-23 22:28:21 -07:00
DEX.md Move packed team docs out of PROTOCOL.md 2021-06-10 15:04:25 -07:00
dex.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
field.ts Correct Room Service event timing (#8959) 2022-10-30 17:42:03 -05:00
global-types.ts Use -copyboost for Costar (#9024) 2022-11-21 11:25:48 -05:00
index.ts Further improve documentation 2021-06-10 09:17:58 -07:00
NONSTANDARD.md Move packed team docs out of PROTOCOL.md 2021-06-10 15:04:25 -07:00
pokemon.ts Fix types sent when a Terastallized Pokemon switches in (#9059) 2022-11-25 17:13:20 -05:00
prng.ts Further improve documentation 2021-06-10 09:17:58 -07:00
README.md Slightly improve documentation 2021-11-13 14:17:47 -05:00
side.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
SIM-PROTOCOL.md Fix DETAILS documentation in SIM-PROTOCOL 2021-11-10 08:39:28 -08:00
SIMULATOR.md Further improve documentation 2021-06-10 09:17:58 -07:00
state.ts Further improve documentation 2021-06-10 09:17:58 -07:00
team-validator.ts Fix Dream World move exclusivity (#9057) 2022-11-25 17:10:15 -05:00
TEAMS.md Implement Dynamax levels (#8308) 2022-07-20 20:45:45 -07:00
teams.ts Add Gen 9 (#8997) 2022-11-17 20:46:29 -05:00
tsconfig.json Use ts-node instead of Sucrase (#8369) 2021-07-09 19:59:22 -07:00

Node.js package

Pokémon Showdown has a Node.js API. It currently only works in Node, not browsers, although we're working on unifying it to work in browsers.

You can install it with the usual:

npm install pokemon-showdown

And you can use it to do the following things:

Simulating battles

See: sim/SIMULATOR.md

Also available as a command-line API!

Validating, generating, and converting teams

See: sim/TEAMS.md

Also available as a command-line API!

Getting Pokédex information

See: sim/DEX.md

Undocumented APIs

Pokémon Showdown's Node.js package has TypeScript definitions for everything it exports, including a lot of undocumented APIs.

Please be aware that any undocumented API is unstable and should not be relied upon not to change. We do not follow semver for undocumented APIs. If you really want to use an undocumented API, remember to pin the exact PS version in your dependencies. You probably also want to follow the API update channel in the Discord server: https://psim.us/devdiscord