pokemon-showdown/sim
2021-12-15 19:50:00 -06:00
..
examples Update Dex API (#8181) 2021-04-08 03:00:37 -07:00
tools Fix build 2021-10-14 21:15:27 -05:00
battle-actions.ts Fix interaction of Future attacks and Unaware (#8547) 2021-11-30 18:55:42 -06:00
battle-queue.ts Fix bug in mega-evo speed tie code 2021-04-29 02:33:49 -07:00
battle-stream.ts Handle new TypeScript version (#8449) 2021-08-30 20:11:44 -07:00
battle.ts Fix paralysis modifier application (#8478) 2021-11-06 15:52:39 -04:00
dex-abilities.ts Rename Let's Go! mod to 'gen7letsgo' 2021-07-06 23:07:51 -06:00
dex-conditions.ts Fix build 2021-08-15 09:47:07 -04:00
dex-data.ts Support importing teams 2021-06-09 22:08:31 -07:00
dex-formats.ts Rulesets: Fix oversight with cosmetic formes (#8551) 2021-12-07 22:19:11 -08:00
dex-items.ts Rename Let's Go! mod to 'gen7letsgo' 2021-07-06 23:07:51 -06:00
dex-moves.ts Refactor overriding stats used for damaging moves (#8373) 2021-11-08 13:48:26 -08:00
dex-species.ts Fix bugs with BDSP CAP 2021-12-02 00:06:36 -07:00
DEX.md Move packed team docs out of PROTOCOL.md 2021-06-10 15:04:25 -07:00
dex.ts Handle new TypeScript version (#8449) 2021-08-30 20:11:44 -07:00
field.ts Support per-pokemon Residual handlers in Side/Field conditions (#8222) 2021-04-25 10:55:54 -07:00
global-types.ts Add BDSP data and formats (#8530) 2021-11-18 18:00:10 -06: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 Natural Cure implementation 2021-10-06 19:23:34 -04: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 Re-fix Frisk's interaction with Neturalizing Gas (#8526) 2021-11-10 10:30:20 -08: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 Gen 4: Fix Griseous Orb Validation (#8568) 2021-12-15 19:50:00 -06:00
TEAMS.md Move packed team docs out of PROTOCOL.md 2021-06-10 15:04:25 -07:00
teams.ts Teams: Fail when unpacking invalid JSON 2021-11-10 19:04:23 -06: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