Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Katnip - Text-based coding language for Scratch
- TheCreatorOfUnTV
-
1000+ posts
Katnip - Text-based coding language for Scratch
It looks great! But you should change the title.
5.4 The Scratch name, Scratch logo, Scratch Day logo, Scratch Cat, and Gobo are Trademarks owned by the Scratch Team. The MIT name and logo are Trademarks owned by the Massachusetts Institute of Technology. Unless you are licensed by Scratch under a specific licensing program or agreement, you may not use these logos to label, promote, or endorse any product or service. You may use the Scratch Logo to refer to the Scratch website and programming language.
Last edited by TheCreatorOfUnTV (Jan. 6, 2025 17:21:29)
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
This is actually really cool. Unfortunatley, I'm on a chroembook instead of my PC so I can't access github, but does how exactly does ti work. Do you write the code, then export the .sb3 and run it on turbowarp? does it have turbowarp extensions support? can you test games live?
This project is very impressive tho!
Hi yes thank you!
I am addressing that issue right now w github

Currently, the offline version follows this “pattern” if you will:
- You write some code in a “.scrtxt” file, and feed its file path in
- It translates the code, generating an sb3 file for you
- You can then open the file in either scratch or turbowarp (since both support sb3 files)
As for turbowarp extensions: very insightful!! This is actually on my todo list, along with allowing custom extensions to be loaded in quite easily.
A lot is in the works!!
Hopefully I will get a working website up for it in the coming weeks
Thanks for your interest!
Last edited by B1j2754 (Jan. 6, 2025 22:32:14)
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
It looks great! But you should change the title.5.4 The Scratch name, Scratch logo, Scratch Day logo, Scratch Cat, and Gobo are Trademarks owned by the Scratch Team. The MIT name and logo are Trademarks owned by the Massachusetts Institute of Technology. Unless you are licensed by Scratch under a specific licensing program or agreement, you may not use these logos to label, promote, or endorse any product or service. You may use the Scratch Logo to refer to the Scratch website and programming language.
Ah ok. I wonder if having the name with “Scratch” in it does interfere with the trademark. I will look into it. Thanks!
- scratchyjimjam
-
90 posts
Katnip - Text-based coding language for Scratch
For web hosting, I know 2 sites that can do this for free. The easiest is render, which if you log in with your github account you can create a static site, and then select the repo and it will deploy. the domain is {name}.onrender.com.
I'm assuming this is written in js? My school chromebook has github blocked sadly.
I'm hoping to get on my pc later and take a look at this, it sounds good!
Hope this helps
I'm assuming this is written in js? My school chromebook has github blocked sadly.
I'm hoping to get on my pc later and take a look at this, it sounds good!
Hope this helps
- M1dnightGMR
-
6 posts
Katnip - Text-based coding language for Scratch
This is actually really cool. Unfortunatley, I'm on a chroembook instead of my PC so I can't access github, but does how exactly does ti work. Do you write the code, then export the .sb3 and run it on turbowarp? does it have turbowarp extensions support? can you test games live?
This project is very impressive tho!
Hi yes thank you!
I am addressing that issue right now w githubby making a website to make this project more accessable.
Currently, the offline version follows this “pattern” if you will:
- You write some code in a “.scrtxt” file, and feed its file path in
- It translates the code, generating an sb3 file for you
- You can then open the file in either scratch or turbowarp (since both support sb3 files)
As for turbowarp extensions: very insightful!! This is actually on my todo list, along with allowing custom extensions to be loaded in quite easily.
A lot is in the works!!
Hopefully I will get a working website up for it in the coming weeks
Thanks for your interest!
That's what I was expecting. Nonetheless, this project is very cool. I've taken a look at their GitHub, and it's very impressive. A live preview is very useful though, and there is a way to do this that could be applied here. I know the project is written in Python, but both Turbowarp and Scratch offer an open-source version of their VM, but the project is written in JavaScript, unfortunately. Although I mainly use Javascript, I started out on Python and still use it for file-related tasks and APIs, and I've had my own encounters with trying to bridge the two. I haven't looked deep into the VM's code, but you could try making live updates by hosting a web server with the VM, compiling the project on every save, and sending it to the VM. This would work nicely with VSCode as well as you could open the VM as another tab. I'm not sure if this would work, but if it could it be useful to have something like this. I know Sass has this since just like this project, it is transcompiling to CSS actively. This would be a very useful tool, and a great extension to work on in the future.
Last edited by M1dnightGMR (Jan. 7, 2025 20:16:54)
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
- snip -
That's what I was expecting. Nonetheless, this project is very cool. I've taken a look at their GitHub, and it's very impressive. A live preview is very useful though, and there is a way to do this that could be applied here. I know the project is written in Python, but both Turbowarp and Scratch offer an open-source version of their VM, but the project is written in JavaScript, unfortunately. Although I mainly use Javascript, I started out on Python and still use it for file-related tasks and APIs, and I've had my own encounters with trying to bridge the two. I haven't looked deep into the VM's code, but you could try making live updates by hosting a web server with the VM, compiling the project on every save, and sending it to the VM. This would work nicely with VSCode as well as you could open the VM as another tab. I'm not sure if this would work, but if it could it be useful to have something like this. I know Sass has this since just like this project, it is transcompiling to CSS actively. This would be a very useful tool, and a great extension to work on in the future.
Thanks for your interest! I wasn't planning on delving into the specifics of how I wanted to accomplish this, but as scratchyjimjam pointed out (and I came to the same conclusion as well before them too

For web hosting, I know 2 sites that can do this for free. The easiest is render, which if you log in with your github account you can create a static site, and then select the repo and it will deploy. the domain is {name}.onrender.com.
I'm assuming this is written in js? My school chromebook has github blocked sadly.
I'm hoping to get on my pc later and take a look at this, it sounds good!
Hope this helps
Again, I wasn't planning on sharing the current plan but because there seems to be some interest, here is the current plan (subject to change):
- First off, the project will use my python scripts, but use flask to host the webserver, to server the compiled sb3 files, which I will then run using the turbowarp- forked vm
- 2nd, Render will probably be my host of choice, at least until I see fit to upgrade to some other options. This all depends on the popularity and usage of the sight
- 3rd, I could probably make a static website with out having the python backend, but I am not as well versed in js, and already have all the logic in python, so here we are
Thanks for all you guys' inputs!
- scratchyjimjam
-
90 posts
Katnip - Text-based coding language for Scratch
If i'm being honest i'm bored at the moment, so I am going to try and attempt rewriting the python to javascript. Ive been using js for game development recently so hopefully I can do something - but no promises! I'll give it a go and post an update later
- First off, the project will use my python scripts, but use flask to host the webserver, to server the compiled sb3 files, which I will then run using the turbowarp- forked vm
- 2nd, Render will probably be my host of choice, at least until I see fit to upgrade to some other options. This all depends on the popularity and usage of the sight
- 3rd, I could probably make a static website with out having the python backend, but I am not as well versed in js, and already have all the logic in python, so here we are
- PaxtonPenguin
-
100+ posts
Katnip - Text-based coding language for Scratch
It's made in python For web hosting, I know 2 sites that can do this for free. The easiest is render, which if you log in with your github account you can create a static site, and then select the repo and it will deploy. the domain is {name}.onrender.com.
I'm assuming this is written in js? My school chromebook has github blocked sadly.
I'm hoping to get on my pc later and take a look at this, it sounds good!
Hope this helps
- scratchyjimjam
-
90 posts
Katnip - Text-based coding language for Scratch
Yes, i am m aware, as you can see from the post above yours. Thanks for making sure I knew though!It's made in python For web hosting, I know 2 sites that can do this for free. The easiest is render, which if you log in with your github account you can create a static site, and then select the repo and it will deploy. the domain is {name}.onrender.com.
I'm assuming this is written in js? My school chromebook has github blocked sadly.
I'm hoping to get on my pc later and take a look at this, it sounds good!
Hope this helps
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
-snip-
If i'm being honest i'm bored at the moment, so I am going to try and attempt rewriting the python to javascript. Ive been using js for game development recently so hopefully I can do something - but no promises! I'll give it a go and post an update later
Sure! That sounds great! You may want to wait a bit however until I release the website version, as many crucial changes have been made on my end.
I will push some time this week if you would like to wait
Last edited by B1j2754 (Jan. 9, 2025 20:48:57)
- M1dnightGMR
-
6 posts
Katnip - Text-based coding language for Scratch
- snip -
That's what I was expecting. Nonetheless, this project is very cool. I've taken a look at their GitHub, and it's very impressive. A live preview is very useful though, and there is a way to do this that could be applied here. I know the project is written in Python, but both Turbowarp and Scratch offer an open-source version of their VM, but the project is written in JavaScript, unfortunately. Although I mainly use Javascript, I started out on Python and still use it for file-related tasks and APIs, and I've had my own encounters with trying to bridge the two. I haven't looked deep into the VM's code, but you could try making live updates by hosting a web server with the VM, compiling the project on every save, and sending it to the VM. This would work nicely with VSCode as well as you could open the VM as another tab. I'm not sure if this would work, but if it could it be useful to have something like this. I know Sass has this since just like this project, it is transcompiling to CSS actively. This would be a very useful tool, and a great extension to work on in the future.
Thanks for your interest! I wasn't planning on delving into the specifics of how I wanted to accomplish this, but as scratchyjimjam pointed out (and I came to the same conclusion as well before them toois that render is the best here.
For web hosting, I know 2 sites that can do this for free. The easiest is render, which if you log in with your github account you can create a static site, and then select the repo and it will deploy. the domain is {name}.onrender.com.
I'm assuming this is written in js? My school chromebook has github blocked sadly.
I'm hoping to get on my pc later and take a look at this, it sounds good!
Hope this helps
Again, I wasn't planning on sharing the current plan but because there seems to be some interest, here is the current plan (subject to change):
- First off, the project will use my python scripts, but use flask to host the webserver, to server the compiled sb3 files, which I will then run using the turbowarp- forked vm
- 2nd, Render will probably be my host of choice, at least until I see fit to upgrade to some other options. This all depends on the popularity and usage of the sight
- 3rd, I could probably make a static website with out having the python backend, but I am not as well versed in js, and already have all the logic in python, so here we are
Thanks for all you guys' inputs!
If you ever need any Javascript-related things, I could contribute. I've been waiting ages for this, so I'd love to help.
- marsmark
-
83 posts
Katnip - Text-based coding language for Scratch
the syntax here is so much cleaner and better than tosh imo. great work here!
- M1dnightGMR
-
6 posts
Katnip - Text-based coding language for Scratch
Scratch++ is actually sooo cool!! I wish I was that good at scratch :c. I only come back to scratch for nostalgia when I'm feeling burnt out I usuallyj just stick to js now the syntax here is so much cleaner and better than tosh imo. great work here!
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
Thank you! the syntax here is so much cleaner and better than tosh imo. great work here!
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
It looks great! But you should change the title.5.4 The Scratch name, Scratch logo, Scratch Day logo, Scratch Cat, and Gobo are Trademarks owned by the Scratch Team. The MIT name and logo are Trademarks owned by the Massachusetts Institute of Technology. Unless you are licensed by Scratch under a specific licensing program or agreement, you may not use these logos to label, promote, or endorse any product or service. You may use the Scratch Logo to refer to the Scratch website and programming language.
New rebrand as “Katnip”!!

- M1dnightGMR
-
6 posts
Katnip - Text-based coding language for Scratch
Any new updates? Maybe a mirror (cuz school chormebooks r js like that)
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
Hi sorry y'all, I've been busy with midterms.
I just recently bought and published Katnip.org, feel free to check it out!
This is in fact a wip, so I'm rewriting some syntax, the whole compiler, and recreating the gui.
Lots of changes to come, but at least I have something to show for my work!
I just recently bought and published Katnip.org, feel free to check it out!
This is in fact a wip, so I'm rewriting some syntax, the whole compiler, and recreating the gui.
Lots of changes to come, but at least I have something to show for my work!
- BigNate469
-
1000+ posts
Katnip - Text-based coding language for Scratch
The “Editor” and “Docs” links both lead to 404s. Hi sorry y'all, I've been busy with midterms.
I just recently bought and published Katnip.org, feel free to check it out!
- B1j2754
-
78 posts
Katnip - Text-based coding language for Scratch
The “Editor” and “Docs” links both lead to 404s. Hi sorry y'all, I've been busy with midterms.
I just recently bought and published Katnip.org, feel free to check it out!
Yes, this website is a work in progress, and will change a lot over the next month. It is ok for now, as the editor is just the root page
- M1dnightGMR
-
6 posts
Katnip - Text-based coding language for Scratch
Rebrand goes hard! Whats the progress on the project?
- Discussion Forums
- » Advanced Topics
-
» Katnip - Text-based coding language for Scratch