Many old links have been removed from this page due to their content not being updated to modern Foundry.
Foundry has a Developer API Documentation section on the official foundryvtt.com website here, generated from the JSDoc comments within every local installation of Foundry.
You have two options for perusing the source code within resources/app:
common and client break the classes up into individual files. Classes inside common use JavaScript modules, so for example the base Document class is bundled and available at foundry.abstract.Document in your client.client classes. Before v13, client classes were all thrown directly into the global scope (with a client-esm folder containing ones that were already converted to the modular approach).public/scripts/foundry.js is the entire script as it's delivered to end users; note that it has some external imports for the esmodules content.It is advisable to open this file up and search it in your IDE, as all of the JSDoc comments are present and you can easily see what is really going on in the code.
The official Discord is a great place to get up-to-date information and support. If you are looking for help, you might want to ask in the following channels:
#macro-polo for help with macros;#module-development for help with developing your own module;#system-development for help with developing your own system.Wiki hosted guide to accompany and explain the Boilerplate system as well as a lot of core system development concepts.
Boilerplate is a lightly opinionated boilerplate system that can be used as a starting point to build a custom system.
The main Boilerplate branch and parts of the Boilerplate tutorial could be considered slightly outdated at the time of writing. Consider using the
v12branch of the Boilerplate system, and Data Models instead oftemplate.json.