Scripts
We just added an experimental plugin for dynamic scripts that can access, manipulate, and visualize the ECHO Graph.
Scripts are a new experimental feature that allows you to extend Composer with custom scripts that can access the ECHO Graph. Scripts can query and update Spaces and implement simple React components that can be incorporated into Stacks.
For example, the ScriptPlugin lets you create simple Typescript notebooks by adding script sections to Stacks.
The default script queries objects from a test data set and plots points via the bundled Chart component. We can easily change this to plot the geo location using the Globe component.
Scripts use the same ECHO hooks provided by @dxos/react-client that are used by regular DXOS applications and have access to all ECHO spaces available to the local client.
You can then use the PresenterPlugin to view stacks in full screen mode:
What’s next?
We’re working on a new feature called Agents that allows users to run headless DXOS peers that operate as a personal data server and ECHO gateway.
Agents are also built with an extensible plugin architecture, and we anticipate being able to “publish” Stacks via your Agent as a standalone application. With published Stacks you could create anything from interactive readonly dashboards to fully collaborative custom applications.
Please join our Discord and get in touch if you have any questions or ideas about scripts. Also, if you’re interested in working on any of this we’re putting together a new Bounties Program to help open source developers build on DXOS.
@richburdon