pokemon-showdown/sim
2026-07-18 13:16:51 +01:00
..
examples
tools
battle-actions.ts Fix interaction between Rock Head and Mind Blown (#12178) 2026-07-15 10:30:29 -07:00
battle-queue.ts Merge remote-tracking branch 'upstream/master' into battle-queue-orders 2026-04-09 16:39:28 +01:00
battle-stream.ts Refactor editbattle not to use eval (#11898) 2026-04-07 13:58:01 -07:00
battle.ts Gen 1: Fix critical-hit level calculation (#12172) 2026-07-17 13:15:47 -05:00
dex-abilities.ts
dex-conditions.ts Implement Mega Sol and Spicy Spray in the base mod (#12017) 2026-05-13 10:43:39 -06:00
dex-data.ts Overhaul tags and tag banning (#10941) 2026-06-23 23:20:45 -07:00
dex-formats.ts Overhaul tags and tag banning (#10941) 2026-06-23 23:20:45 -07:00
dex-items.ts Implement Champions (#11910) 2026-04-10 20:29:01 -06:00
dex-moves.ts Fix interaction between Rock Head and Mind Blown (#12178) 2026-07-15 10:30:29 -07:00
dex-species.ts Overhaul tags and tag banning (#10941) 2026-06-23 23:20:45 -07:00
DEX.md Update documentation files (#12034) 2026-06-25 20:11:23 -07:00
dex.ts Clarify Dex.modData force parameter (#12134) 2026-06-26 23:57:20 -07:00
field.ts
global-types.ts Merge a4106d5b8e into 00c061991c 2026-07-18 13:16:51 +01:00
index.ts
NONSTANDARD.md Overhaul tags and tag banning (#10941) 2026-06-23 23:20:45 -07:00
pokemon.ts Fix Pursuit interaction with Encore (#11803) 2026-07-15 00:57:02 -05:00
prng.ts
README.md Slightly improve documentation 2021-11-13 14:17:47 -05:00
side.ts Gen 1: Handle Side.lastMove instantiation correctly (#12176) 2026-07-15 09:29:45 -07:00
SIM-PROTOCOL.md Update documentation files (#12034) 2026-06-25 20:11:23 -07:00
SIMULATOR.md Slightly improve sim docs for stdio usage 2024-01-17 21:23:20 -08:00
state.ts
team-validator.ts gen5bw1: Fix Basculin-Blue-Striped (#12155) 2026-07-07 14:55:45 -06:00
TEAMS.md Update documentation files (#12034) 2026-06-25 20:11:23 -07:00
teams.ts Overhaul tags and tag banning (#10941) 2026-06-23 23:20:45 -07: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