Adding Other Storage Options¶
The Theme Builder is designed to be extensible with regard to it's storage.
The Storage Interface defines the entry points for the storage layer used by the Theme Builder application.
The default implementation of this interface for the standalone SDK is memory storage; however, as implied by the name, this is not persistent storage.
The default implementation of this interface for the Theme Builder application is ServerStorage which implements a REST-ful client API back to the server.
There is also a LocalStorage that saves the design system in the browser's localStorage object.
In order to support another type of storage, you would need to provide a new implementation of the Storage Interface and pass in an instance of this object when calling ThemeBuilder.create
in the SDK as is done in this file.