A Saito application is a module that installs into the user wallet that is running in the browser and interacts with the wallet in some capacity. Applications can use on-chain and off-chain messages to communicate and can take control of the interface. They can also plug into other applications and even modify core functionality.
If you are getting started programming on Saito, a good place to start is our tutorial series for new developers, which goes over the basics of how to build a simple application. Our Github repository also has a directory full of reference modules you can modify or consult if you are curious how the existing applications work.
The following documentation may be useful for those doing more advanced development. The Module API explains what functions you can include in your module. The Events API explain how to listen and respond when system-wide events occur (like a new block being found). The Services API* explains how peers can inform other peers of value-added services they are running.
/lib/templates/modtemplate.js
file. This template file defines a number of default functions that create the default behavior for the module. If you overwrite these functions you can customize the behavior of your module, such as specifying what actions it should when it receives a transaction or off-chain message. This API outlines these basic functions.app.connection
channel to be notified when these various events happen - this API explains how to do that and provides a short list of available events.