After experimenting with innovative new ways to choke your browser to death I am pleased to announce Benthos Lab, which lives at https://lab.benthos.dev.
Benthos Lab is a website where users of the Benthos stream processor can write, format, execute and share their pipeline configurations. This was made possible by compiling the entire service (written in Go) into Web Assembly so that it can run directly in your browser.
Here's a video of it in action: https://youtu.be/1ZN-42A0sJU.
Some technical details about how this was achieved can be found in a previous post of mine. The repo can be found at: https://github.com/benthosdev/benthos-lab, feel free to clone it, hack it and host your own version.
Like every good laboratory it is scrappy and sometimes explodes. You need a modern browser version and it doesn't currently support mobile. Regardless, I think it's a good time to invite you try it out. Don't worry, I'll be watching from a safe distance.
Also, if it does break on you then please remember that you don't pay me for this, you vile parasite.
At Meltwater we have many distributed teams using Benthos for a wide and ever increasing list of use cases, which results in a lot of remote collaboration.
For the slower moving, asynchronous types of work we are usually fine with ye olde git. However, sometimes it's nice to quickly hash stuff out, at which point things would suddenly devolve into a barrage of files getting chaotically thrown at a slack channel.
By contrast, the lab is a civilised place where one can quickly and easily create a pipeline concept, including sample input data, and share it directly with a group. Opening up a shared lab provides all that same context, allows you to make your own revisions to it, and even lets you execute it in order to see the results it produces.
For our teams this app dramatically reduced the time taken to create, prove and demonstrate a pipeline concept. It's also much quicker for me to help teams that have issues with their configs as they can make sure I have all the information needed up front with a single URL.
There's also plenty of unintended use cases for Benthos Lab as it basically allows you to build your own custom web applications. Here's a session that lower cases and normalises a JSON document, computes its sha256 hash and then hex encodes the hash: https://lab.benthos.dev/l/N-3sss3WPjj#input.
Pro tip: if you add the anchor
#input to the end of the session URL then it
opens up at the input tab for quickly inserting stuff.
Since there's such a vast catalogue of Benthos processors available I've already found myself bookmarking a few lab sessions as general utilities.
With this running within the sandbox of your browser there's lots of missing functionality. For example, you can't create TCP/UDP connections (as of right now) and you can't access a file system.
However, I don't plan to address this any time soon as the intention of the app is to test snippets of config, not to execute your whole damn streaming pipeline. You ought to learn to manage your expectations.
What I will do though is continue to improve the UI. If a feature you want is missing (or broken, obviously) then please open an issue.