A command-line tool to backup or retrieve sketch files from the p5.js Web Editor. This script is designed for artists, designers, and developers who want to backup their work.
This project is not associated with the p5js organization.
Welcome! Join the Observable World Discord to connect with like-minded others and get real-time support. If you encounter any challenges, I'm here to help however I can!
Thank you for finding this useful! Your support means the world to me. If you’d like to help me continue sharing code freely, any subscription or donation—no matter how small—would go a long way. Together, we can keep this community thriving!
- jq: Command-line JSON processor
- Download the script:
curl -s https://raw.githubusercontent.com/iamobservable/p5js-editor-fetch/main/fetch.sh > fetch.sh
- Make it executable:
chmod +x fetch.sh
- Move to a usable bin location and add to your favorite shell path (optional):
# bash
mkdir -p $HOME/bin
mv fetch.sh $HOME/bin/
echo "\nexport PATH=\$PATH:$HOME/bin" >> $HOME/.bashrc
source $HOME/.bashrc
# zsh
mkdir -p $HOME/bin
mv fetch.sh $HOME/bin/
echo "\nexport PATH=\$PATH:$HOME/bin" >> $HOME/.zshrc
source $HOME/.zshrc
fetch.sh <user>
I am deeply grateful for any contributions to the Observable World project! If you’d like to contribute, simply fork this repository and submit a pull request with any improvements, additions, or fixes you’d like to see. I will review and consider any suggestions — thank you for being part of this journey!
This project is licensed under the MIT License. Find more in the LICENSE document.