Show HN: Leopard – Convert Scratch projects to JavaScript

6 points by PullJosh 1 year ago | 1 comment
  • PullJosh 1 year ago
    Hi HN! A few years ago, I began creating Leopard, a Scratch to JavaScript code converter. (Since then, I've received help from a few awesome open-source contributors. Thank you!)

    I started using Scratch when I was in 2nd grade. I made over 500 games and projects, working with Scratch all the way into high school. I eventually moved on to JavaScript, but the transition was a difficult one. Much of the JavaScript world was unfamiliar, and learning to do everything new all at once was challenging.

    Leopard is meant to be a transition tool that helps ease this learning process. It outputs human-readable JavaScript that is as close to a 1-to-1 translation as possible.

    You can enter any Scratch project URL to convert it. If you don't have one on hand, here are a few examples:

    - https://scratch.mit.edu/projects/345789566/

    - https://scratch.mit.edu/projects/905275127/

    - https://scratch.mit.edu/projects/891008805/

    (Note that getting compatibility exactly right is hard, so not every project will work perfectly, but many projects should be respectably close.)