pokemon-showdown/sim
2022-07-14 16:01:06 -05:00
..
examples
tools Fix build 2021-10-14 21:15:27 -05:00
battle-actions.ts Proc hazards in the order they were set (#8730) 2022-05-19 19:05:32 -05:00
battle-queue.ts Fix Focus Punch/Beak Blast/Shell Trap charge timing (#8733) 2022-04-25 16:35:36 -04:00
battle-stream.ts Handle new TypeScript version (#8449) 2021-08-30 20:11:44 -07:00
battle.ts Remove unused ceilModifier event property (#8797) 2022-06-09 17:54:38 -05:00
dex-abilities.ts
dex-conditions.ts Proc hazards in the order they were set (#8730) 2022-05-19 19:05:32 -05:00
dex-data.ts Handle new, stricter enforcement of no-this-alias 2022-04-04 16:54:36 -07:00
dex-formats.ts Handle new, stricter enforcement of no-this-alias 2022-04-04 16:54:36 -07:00
dex-items.ts Handle new, stricter enforcement of no-this-alias 2022-04-04 16:54:36 -07:00
dex-moves.ts Fix self-KO timing for Memento/Healing Wish/Lunar Dance (#8750) 2022-05-04 17:32:37 -04:00
dex-species.ts Handle new, stricter enforcement of no-this-alias 2022-04-04 16:54:36 -07:00
DEX.md
dex.ts Handle new TypeScript version (#8449) 2021-08-30 20:11:44 -07:00
field.ts
global-types.ts Pokebilities AAA: Fix Ice Face activation timing (#8766) 2022-05-13 18:16:07 -04:00
index.ts
NONSTANDARD.md
pokemon.ts Fix Nightmare not getting removed after certain curing effects (#8791) 2022-07-14 16:01:06 -05:00
prng.ts
README.md Slightly improve documentation 2021-11-13 14:17:47 -05:00
side.ts Implement Force Select rule 2022-07-12 16:32:10 -04:00
SIM-PROTOCOL.md Fix DETAILS documentation in SIM-PROTOCOL 2021-11-10 08:39:28 -08:00
SIMULATOR.md
state.ts
team-validator.ts Separate Zacian/Zamazenta forms in banlists (#8772) 2022-05-13 18:10:11 -04:00
TEAMS.md
teams.ts Teams: Fail when unpacking invalid JSON 2021-11-10 19:04:23 -06:00
tsconfig.json

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