The client for Pokémon Showdown
Go to file
Guangcong Luo 7fbb69cc60 Improve downloaded replays
They now support small windows/screens and dark mode.
2023-10-25 16:51:26 +00:00
.github/workflows Remove babel-cli dependency 2021-04-13 14:06:25 -07:00
.vscode Upgrade to TypeScript 4.3 2021-05-26 19:37:44 -07:00
build-tools Tweak client for DLC (#2148) 2023-09-13 22:10:25 -04:00
config Build: Move ads/analytics into config 2021-11-25 20:52:51 -05:00
data Build data/text.js from server 2020-10-27 17:09:49 +00:00
desktop Properly set the encoding to UTF-8 on all HTML pages (#1467) 2020-02-23 00:13:56 -08:00
fx Add more backgrounds for battle effects (#1721) 2022-07-24 22:41:41 -07:00
graphics-src Add PS! Day Background to rotation 2019-10-21 16:13:53 -04:00
js Improve downloaded replays 2023-10-25 16:51:26 +00:00
lib Ladder: Set current gen to 9 for decay purposes (#2130) 2023-07-18 15:40:18 -07:00
replays Fix speed buttons on downloaded replays (#2162) 2023-10-20 00:13:17 -05:00
sprites Update fxPrefix for gender sprites (#1891) 2021-11-22 11:03:11 -08:00
src Battle frame: Fix height on small screens 2023-10-25 16:50:08 +00:00
style Improve readability of Seeking screen 2023-10-25 16:51:20 +00:00
swf Update soundManager 2014-01-12 01:26:57 -06:00
test Update to handle esbuild migration (#2064) 2022-12-22 13:25:00 -08:00
website Update logo 2023-10-25 16:51:06 +00:00
.babelrc Update .babelrc 2023-06-02 15:34:37 -04:00
.editorconfig Editorconfig: Increase indent size to 3 spaces (#1043) 2017-11-05 16:42:36 -08:00
.eslintignore Change js/ dir to default-deny 2021-04-13 14:06:25 -07:00
.eslintrc.js Remove SoundManager dependency (#1563) 2020-07-23 12:51:47 -07:00
.gitignore Build: Move ads/analytics into config 2021-11-25 20:52:51 -05:00
.htaccess Update password reset links (#1824) 2021-06-06 18:41:36 -07:00
.npmrc Disable package-lock.json 2018-05-14 17:14:27 -05:00
action.php Update paths for servers.inc.php 2020-07-27 16:44:21 -07:00
ads.txt Add ads.txt 2017-11-14 19:26:16 -05:00
apple-touch-icon.png Shrink assets 2016-02-02 19:44:24 -05:00
build Disable building sets 2022-06-27 22:44:40 -04:00
cache.manifest Add homescreen app manifest for Android Chrome 2017-10-29 21:16:05 -04:00
composer.json Add Sentry to composer.json 2019-02-27 05:16:17 -05:00
CONTRIBUTING.md Remove SoundManager dependency (#1563) 2020-07-23 12:51:47 -07:00
crossdomain.php Update paths for servers.inc.php 2020-07-27 16:44:21 -07:00
crossprotocol.template.html Restore old jQuery (#1737) 2021-04-01 12:12:06 -04:00
customcss.php Support configurable URLs in the website (#1575) 2020-07-27 18:06:39 -07:00
favicon-16.png Update logo 2023-10-25 16:51:06 +00:00
favicon-32.png Update logo 2023-10-25 16:51:06 +00:00
favicon-48.png Update icons 2016-04-08 05:25:25 -07:00
favicon-128.png Update icons 2016-04-08 05:25:25 -07:00
favicon-192.png Add 192x192 icon 2017-11-21 07:50:32 -05:00
favicon-256.png Update logo 2023-10-25 16:51:06 +00:00
favicon-notify.ico Update logo 2023-10-25 16:51:06 +00:00
favicon.ico Update logo 2023-10-25 16:51:06 +00:00
index.template.html Bring us into compliance with YouTube API terms (#2111) 2023-04-10 19:39:05 -07:00
ladder.php Fix bugs in ladder prefix search 2019-07-19 16:36:43 -04:00
LICENSE Create LICENSE 2017-03-08 12:29:33 -06:00
manifest.json Add 192x192 icon 2017-11-21 07:50:32 -05:00
news-embed.php iframe for news page 2013-09-20 16:48:31 -05:00
package.json Update dependencies 2023-03-16 05:01:37 -07:00
pokemonshowdown.png Shrink assets 2016-02-02 19:44:24 -05:00
pokemonshowdown.psd New logo 2013-04-27 01:51:38 -07:00
pokemonshowdownbeta.png Shrink assets 2016-02-02 19:44:24 -05:00
pokemonshowdownbeta@2x.png Implement Retina logo 2016-04-02 03:13:09 -04:00
preactalpha.template.html Support chat formatter 2021-05-04 21:46:24 -07:00
README.md Update required Node version 2021-06-06 07:38:17 -07:00
recoverteams.html Restore old jQuery (#1737) 2021-04-01 12:12:06 -04:00
robots.txt Stop banning search indexers 2016-02-22 15:24:26 -05:00
showdown.crx Populate with current state of client 2013-01-23 16:39:14 -08:00
showdown.webapp Default to HTTPS 2017-11-21 07:50:32 -05:00
testclient-beta.html Support chat formatter 2021-05-04 21:46:24 -07:00
testclient.html Compile chat-formatter from server 2021-04-13 14:06:25 -07:00
tsconfig.json Massively improve tooltips 2019-02-18 22:38:13 -06:00
tslint.json Start modularizing some battle files (#1842) 2021-07-28 19:10:26 -07:00
UPGRADING-SOCKJS.md Fix SockJS when using the desktop client (#1360) 2019-09-04 14:54:03 -05:00
WEB-API.md Build JSON versions of the pokedex and moves tables 2021-03-16 07:32:04 -04:00

Pokémon Showdown Client

Navigation: Website | Server repository | Client repository | Dex repository

Introduction

This is a repository for most of the client code for Pokémon Showdown.

This is what runs play.pokemonshowdown.com.

WARNING: You probably want the Pokémon Showdown server, if you're setting up a server.

Browser support

Pokémon Showdown currently supports, in order of preference:

  • Chrome
  • Firefox
  • Opera
  • Safari 5+
  • IE11+
  • Chrome/Firefox/Safari for various mobile devices

Pokémon Showdown is usable, but expect degraded performance and certain features not to work in:

  • Safari 4+
  • IE9+

Pokémon Showdown is mostly developed on Chrome, and Chrome or the desktop client is required for certain features like dragging-and-dropping teams from PS to your computer. However, bugs reported on any supported browser will usually be fixed pretty quickly.

Testing

Client testing now requires a build step! Install the latest Node.js (we require v14 or later) and Git, and run node build (on Windows) or ./build (on other OSes) to build.

You can make and test client changes simply by building after each change, and opening testclient.html. This will allow you to test changes to the client without setting up your own login server.

Test keys

For security reasons, browsers don't let other websites control PS, so they can't screw with your account, but it does make it harder to log in on the test client.

The default hack makes you copy/paste the data instead, but if you're refreshing a lot, just add a config/testclient-key.js file, with the contents:

const POKEMON_SHOWDOWN_TESTCLIENT_KEY = 'sid';

Replace sid with the contents of your actual PS sid cookie. You can quickly access this on Chrome through the URL bar:

image image

(This is the only supported method of logging in on the beta Preact client.)

Other servers

You can connect to an arbitrary server by navigating to testclient.html?~~host:port. For example, to connect to a server running locally on port 8000, you can navigate to testclient.html?~~localhost:8000.

NOTE: Certain browsers will convert '?' to '%3F' when reading files off of the local filesystem. As a workaround, try using a different browser or serving the files locally first (ie. run npx http-server from the directory this README is in, then navigate in your browser to http://localhost:8080/testclient.html?~~localhost:8000).

Limitations

Even with a test key, the following things will fail in testclient.html:

  • Registering
  • Logging into other accounts (you can still switch to other unregistered accounts and back, though)

Everything else can be tested.

Warning

This repository is not "batteries included". It does NOT include instructions to run a full Pokémon Showdown login server, and we will not provide them. Please do not ask for help on this; you will be turned away.

If you make a mistake hosting a login server, your users' passwords can get stolen, so we do not want anyone to host a login server unless they can figure out how to do it without help.

It also doesn't include several resource files (namely, the /audio/ and /sprites/ directories) for size reasons.

On the other hand, as long as you don't want to run your own login server, this repository contains everything you need to test changes to the client; just see the "Testing" section above.

License

Pokémon Showdown's client is distributed under the terms of the AGPLv3.

The reason is mostly because I don't want low-effort proprietary forks that add bad code that steals everyone's passwords, or something like that.

If you're doing anything else other than forking, especially if you want to some client code files in your own open-source project that you want to release under a more permissive license (like, if you want to make your own multiplayer open-source game client for a different game), please ask at staff@pokemonshowdown.com. I hold all the copyright to the AGPLv3 parts and can relicense them to MIT for you.

WARNING: This is NOT the same license as Pokémon Showdown's server.