Hello Product Hunt Community! We are excited to introduce snippet.run, a script snippet hosting platform that allows you to run snippets on your computer with a single command
What is snippet.run
snippet.run is a platform that allows you to host your script snippets on the cloud, and run it everywhere using the snippet.run CLI
How does it work?
You host your script snippets on the cloud and use a CLI to execute them on your computer. When you run a snippet, the CLI will fetch the snippet and execute it on your local machine
Feel free to leave comments or questions. Feedback is always appreciated
Thank you for your time
@vincentropy Thanks for checking out our launch! Currently snippet.run does not handle dependencies, you have to handle dependencies manually in your snippet. However, we planned to add support to dependency management and multi-language soon. You will be able to declare dependencies of your snippet. Subscribe to our newsletter (You can find a form at the bottom of our homepage) to get notified when we ship this feature
This is really interesting - love the idea of running code on cloud. Curious to know, does your platform support live collaboration on snippets for educational or pair-programming purposes? @yifanwang
@anuj_sharma18 Thanks for checking out our launch! Currently there's no plans for live collaboration, but we are currently working on team invites, you will be able to invite your teammates to your snippet.run workspace
Congrats on the launch, this looks quite solid! Here's some feedback since you asked.
Wow I have very mixed feelings about this honestly. The security aspect of it primarily, how can I make sure it's going to run what I think it's going to run? What happens if the snippets.run service is compromised? You should definitely add a `--dry-run` option to the CLI client at the very least, so I could see what is about to be executed before going for it.
I also wish this was somehow connected to GitHub (more than just for auth) so I could use/import my existing 19 million snippets from Gist.
Finally, a lot of snippets I currently use are really boilerplates that aren't meant to be run, but are meant to be built upon, so I would love for snippets.run to be able to download a snippet and pipe its source into a new file for example. Although that might be outside of scope.
Anyway, I absolutely love the idea though, good luck!
@kovshenin Thanks for your feedback!
For your security concern, you can now upgrade the CLI to the latest version. By default, all snippets run through the CLI will require you to confirm. However, you can use the --allow (-a) flag to bypass the confirmation (snippet run -a owner/snippet)
We are working on third party integrations, you will be able to import your GitHub Gists into snippet.run soon. subscribe to our newsletter (You can find a form at the bottom of our homepage) to get notified when we ship this feature
@chrismatthieu Thanks for checking out our launch! We've added Python and Deno support to snippet.run. You can now create and run Python and Deno snippets. Changelog: https://snippet.run/changelog/py.... If running python snippets on a machine without python installed, the run will fail
This is going to be so helpful. Thank you @yifanwang for creating this.
Good luck for your launch today! <3
Report
Feature request: It would be more useful if it will be able to run the script via curl or wget instead of having to have nodejs and snippet/cli installed.
Something like: `curl -fsSL https://snippet.run/ivan1efan/in... | bash`
And your server can detect the useragent for curl and wget and only return the script itself.
Also a separate search on the user page could be useful.
@andreitelteu Great idea! We're working on it – subscribe to our newsletter (You can find a form at the bottom of our homepage) to get notified when we ship this
snippet.run
Corbado
Thread - Wireframe Generator
snippet.run
snippet.run
Humanic AI
snippet.run
Humanic AI
Mailbob
snippet.run
Mailbob
Metaverses
snippet.run
Phot.ai
snippet.run