Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Meowclient - connect to Scratch with NodeJS
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
You could just write that fully because some people do not know what you want to say(#119)It's a term I coined. It means “Bring Up Your Topic”What buyt
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
BUMP
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
BUMP!
Please tell me about any problems you have with meowclient. Or any suggestions.
Please tell me about any problems you have with meowclient. Or any suggestions.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
BUMP!
If you would like me to add some feature, please tell me.
If you would like me to add some feature, please tell me.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- WojtekGame
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
bump…
adding MINIMAL social actions such as GETting it and not POSTing it. BUMP!
If you would like me to add some feature, please tell me.
Last edited by WojtekGame (July 17, 2023 07:21:01)
forgot to update sig, i own minecraft months ago lol
JS: code-gui | scratch-player | Roost.js | Pandoa | TOP: Roost.js || C++: Gamine | Gamiinuu | TOP: Gamine
Else: Emoji Painter | Forum Shopping Mall | TOP: Emoji Painter || Profile:Scratch | GitHub
Orgs: Chroast | Twerkish | Komond OS | JS Inventions | TOP: JS Inventions || Ocular Naming: 0 | 1 | 2 | 3
Games: Mom Hid My Game! | Creeper Adventuring
else might be outdated or removed by the ST.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
bump…Like what? The feature is probably implemented, you just need to import it.adding MINIMAL social actions such as GETting it and not POSTing it. BUMP!
If you would like me to add some feature, please tell me.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
I think I'll start working on adding some social actions to this. Don't use them badly, this is so that eventually there will be a good CLI interface for Scratch using meowclient.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
Here's a cool showcase for meowclient: my signature vvv
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
Meowclient v4 is in progress!
I have changed my focus in Meowclient from just adding the bare minimum to working on something that will hopefully reach 99% of the feature list of the Scratch community.
The source code of v4 is on the main branch at https://github.com/webdev03/meowclient but if you would like to view the source code of v3.1 you can go to https://github.com/webdev03/meowclient/tree/v3.1.0
Unfortunately because of the new features I am adding to meowclient I had to add a few dependencies. Because of them, Meowclient v4 is ESM only. This means that you will have to addin your package.json file to successfully import meowclient. There are a lot of technical reasons as to why ESM is superior but this is not what I want to talk about here.
Phew! I can stop talking about the mess of ESM vs CJS. Here is a list of most of the features I have added so far (Including some ones already in 3.1):
Thank you everyone for using meowclient (If you use it, there are very little downloads on npm unfortunately)
I have changed my focus in Meowclient from just adding the bare minimum to working on something that will hopefully reach 99% of the feature list of the Scratch community.
The source code of v4 is on the main branch at https://github.com/webdev03/meowclient but if you would like to view the source code of v3.1 you can go to https://github.com/webdev03/meowclient/tree/v3.1.0
Unfortunately because of the new features I am adding to meowclient I had to add a few dependencies. Because of them, Meowclient v4 is ESM only. This means that you will have to add
"type": "module"
Phew! I can stop talking about the mess of ESM vs CJS. Here is a list of most of the features I have added so far (Including some ones already in 3.1):
- Love and favourite on projects
- Comment on projects
- Search projects
- Set project thumbnail
- Follow and unfollow users
- Follow and unfollow studios
- Reply to a topic on the forums
- Topic creation (I have not tested this yet because I don't have an excuse to create a topic)
- Use Map to store Cloud variables instead of an object
- Get messages
Thank you everyone for using meowclient (If you use it, there are very little downloads on npm unfortunately)
Last edited by god286 (Oct. 5, 2023 02:44:03)
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
Earlier I wanted to switch to TypeScript with the strict mode on. Unfortunately there were many errors which stopped me. Now that I am working on meowclient v4 I am almost finished with switching to the strict mode, forcing me to add type guards everywhere
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- ajskateboarder
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
Do you mean using the “typeof” keyword or type hints Now that I am working on meowclient v4 I am almost finished with switching to the strict mode, forcing me to add type guards everywhere
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
https://www.typescriptlang.org/tsconfig#strictDo you mean using the “typeof” keyword or type hints Now that I am working on meowclient v4 I am almost finished with switching to the strict mode, forcing me to add type guards everywhere
When I started meowclient I forgot to enable that option. Now I decided to rework some of the code to make it compatible with the strictest mode of type checking in TypeScript.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
You can help me test the alpha version of meowclient v4 by writing some code using the github repository instead of the npm package.
# Instead of running npm install meowclient # Run npm install webdev03/meowclient
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
I have an idea, before I work on it I would like to ask for your opinion. I think it would be really cool if meowclient made it super easy to do encoding and decoding of cloud data. There would be two modes (First one much easier): a simple stateless mode where you could send and receive little packets of data, for example in a project that got the current weather, and a complex stateful mode like socket.io where each user had their own state, for example in a lichess-connected chess project.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- NFlex23
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
That sounds really interesting! Could you give a code snippet of what each might look like? I have an idea, before I work on it I would like to ask for your opinion. I think it would be really cool if meowclient made it super easy to do encoding and decoding of cloud data. There would be two modes (First one much easier): a simple stateless mode where you could send and receive little packets of data, for example in a project that got the current weather, and a complex stateful mode like socket.io where each user had their own state, for example in a lichess-connected chess project.
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- ajskateboarder
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
I believe there are Python packages which do this automatically, like scratch2py. You should definitely add it, it would make cloud interactions with servers really easy I have an idea, before I work on it I would like to ask for your opinion. I think it would be really cool if meowclient made it super easy to do encoding and decoding of cloud data. There would be two modes (First one much easier): a simple stateless mode where you could send and receive little packets of data, for example in a project that got the current weather, and a complex stateful mode like socket.io where each user had their own state, for example in a lichess-connected chess project.
Also chess.com is better lole
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
Also chess.com is better loleI know, I don't even use lichess, but I thought that it might be easier to use
Here's some pseudocode, please tell me if you have even a tiny thing to change: Could you give a code snippet of what each might look like?
Simple send-receive (stateless):
const cloudConn = new CloudConnection(session, 123); const pCloud = new PacketCloud(cloudConn); // There are two options: pCloud.onRequest((name, value) => { if(name === "ping") { return "pong! " + (Number(value) + 1); } else { return "hmm, I don't know what is " + name; } }); // or pCloud.on("ping", (value) => { return "pong!" + (Number(value) + 1); })
let counter = 0; const cloudConn = new CloudConnection(session, 123); const sCloud = new SocketCloud(cloudConn); // Could be a miniature reimplementation of socket.io, this one will take much longer for me to add sCloud.on("connection", (socket) => { socket.data = {pings: 1}; socket.on("ping", () => { socket.data.pings++; return socket.data.pings; }) })
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
pCloud v0.0
Edit: send and receive now works!
Edit: send and receive now works!
Last edited by god286 (Oct. 13, 2023 09:32:16)
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- ajskateboarder
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
Personally, I like the stateless code since it's easier to read Here's some pseudocode, please tell me if you have even a tiny thing to change:
Simple send-receive (stateless):Stateful:snip()snip()
- god286
- Scratcher
1000+ posts
Meowclient - connect to Scratch with NodeJS
The stateful code would make it easier to manage the state of each user
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- Discussion Forums
- » Advanced Topics
- » Meowclient - connect to Scratch with NodeJS