A registry, a CLI and a web interface to store snippets of code you frequently run in your machines
Install a runner from an NPM package:
npm i -g @snippets.run/node
Now you should be able to run a snippet:
run hello-node
If that fails, make sure the globally installed NPM packages are in your terminal $PATH.
Download the runner script and link it locally.
curl https://raw.githubusercontent.com/snippets-run/runners/main/bash/run.sh > run.sh
chmod +x run.sh
ln -s $PWD/run.sh /usr/bin/run
Now you can just call a snippet:
run hello-bash
Support for other runners and environments, like Deno or python, coming soon!