[Feature] Add Slipstream Plugin Support#4175
Open
dgrkotsonis wants to merge 27 commits intostagingfrom
Open
Conversation
dgrkotsonis
commented
Mar 17, 2026
dgrkotsonis
commented
Mar 18, 2026
| @@ -0,0 +1,198 @@ | |||
| # Slipstream Plugins | |||
Collaborator
Author
There was a problem hiding this comment.
Is there a better place to put this file rather than creating this new docs dir? (Unlike snarkVM there isn't a specific plugins crate to put this in)
b64e6b9 to
4da9990
Compare
92c055e to
af7c207
Compare
289408f to
ec83f3f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires the Slipstream plugin system (implemented currently on a feature branch in snarkVM) into snarkOS so that node operators can load one or more streaming plugins at startup and manage them at runtime via authenticated REST endpoints. Validator and Client nodes both support plugins; Prover nodes do not (they do not finalize blocks).
This PR tracks snarkVM's stream_plugin_testing branch and adds the corresponding plumbing in snarkOS on a new add_slipstream_plugin_support branch. (TODO: Update and unpin from specific commit once snarkVM changes merged in)
Changes
Cargo / feature wiring
slipstream-pluginsfeature flag to enable it alongside the corresponding snarkvm features.CLI
Node layer
REST API
PUT (reload) is not yet implemented and is left as a TODO.
Error mapping: PluginNotLoaded → 404, PluginAlreadyLoaded → 422, all others → 500.
Tests / docs
Usage
Build with plugin support
cargo build --features history -p snarkos
Start a client node with two plugins
snarkos start --client \
--slipstream-config ~/.aleo/plugins/postgres/plugin.json5 \
--slipstream-config ~/.aleo/plugins/metrics/plugin.json5
List loaded plugins
curl -H "Authorization: Bearer $JWT" \
http://localhost:3030/mainnet/slipstream/plugins
Load a new plugin at runtime
curl -X POST -H "Authorization: Bearer $JWT" \
-H "Content-Type: application/json" \
-d '{"config_file":"/path/to/plugin.json5"}' \
http://localhost:3030/mainnet/slipstream/plugins
Delete/Unload a new plugin at runtime
curl -X DELETE -H "Authorization: Bearer $JWT" \
http://localhost:3030/mainnet/slipstream/plugins/{plugin_name}
Notes