SplunkJS Stack
SplunkJS Stack contains a few frameworks to help web developers build Splunk applications in a familiar JavaScript environment. The first is Backbone.js, which provides the MVC framework as building blocks for your dashboards. The second is RequireJS, which helps to manage dependencies. The third is jQuery, which helps to manage the document objects within the dashboard. Finally, Splunk provides a large library with views and managers that help you interact with Splunk. We would be remiss if we didn't take some time and review the different views and managers. Each of these is implemented within the JavaScript code of the RequireJS function.
Note
As we start looking into each item of the Splunk library, we will present the native module path and the default variable name. These get placed in the RequireJS function call as noted earlier. This can be abstracted in the following manner:
require([ "<splunk module path>" ], function( <splunk variable name> ) { ...