Files
pokemon-showdown/sim
Guangcong Luo 8483236fc8 PRNGSeed is now a string
This makes it so we no longer need to ad-hoc convert seeds from strings
to arrays when we get them from text protocols like the command line or
BattleStream's `reseed` command.

It also has the side benefit of making inputlogs very slightly smaller.
2025-01-14 23:05:17 -08:00
..
2021-04-08 03:00:37 -07:00
2025-01-14 23:05:17 -08:00
2025-01-14 23:05:17 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2025-01-14 23:01:53 -08:00
2021-06-10 09:17:58 -07:00
2025-01-11 13:56:34 -06:00
2025-01-14 23:05:17 -08:00
2021-11-13 14:17:47 -05:00
2025-01-14 23:01:53 -08:00
2023-12-28 20:10:20 -08:00
2025-01-11 13:56:34 -06:00
2025-01-14 23:01:53 -08: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