ScratchData LogoScratchData
Back to -Microboy-'s profile

Sen Yai API

-M-Microboy-•Created April 27, 2025
Sen Yai API
1
1
21 views
View on Scratch

Instructions

The Sen Yai API (not to be confused with the Sen Yai UI) is a localhost PHP server for running shell commands locally through HTTP POST requests and will send the output as the response and 200 OK code as the error code when it succeeds ("No output" will be the output if the command output isn't there) or a 403 Forbidden error with the response being "Forbidden: <error cause>" if it fails. You MUST use POST with this. If you follow the installation and setup guide, it would be wise to keep it as localhost and not to expose the server at port 8000 to the Internet or else anyone with your IP address can run commands remotely on your machine and defeat the purpose of it being an isolated wrapper for lower-level shell commands through HTTP in modded Scratch. (so in other words, don't be stupid when using this PHP server.) Scratch Team, this tool is designed for local isolated shell command usage through HTTP, and we at Pear HIGHLY discourage exposing said Sen Yai API server to the Internet and it is encouraged one follows standard cybersecurity practices and common sense when using this, so it is IN NO WAY, SHAPE, OR FORM MEANT AS ANY SORT OF MALICIOUS PROGRAM AND IS SIMPLY MEANT AS AN ISOLATED SHELL COMMAND HANDLER THROUGH HTTP FOR MOST LANGUAGES (LIKE TURBOWARP OR EVEN SNAP) THAT SUPPORT HTTP REQUESTS. IT WILL NOT WORK WITH VANILLA SCRATCH AT ALL DIRECTLY DUE TO A LACK OF CUSTOM EXTENSIONS (LET ALONE EXTENSIONS WITH DIRECT HTTP EXTENSIONS) IN STANDARD SCRATCH 3. ONE MUST ALSO HOST THE SERVER TO ACTUALLY USE IT AND USE THE RIGHT ADDRESS AND SPECIFY THE senyai.php PART.

Description

You can get it here (it is under the BSD 2-Clause License so that one essentially has way more freedom with it than with the GNU GPL) (it was designed for *NIX systems such as macOS and the installation instructions are for macOS (although Homebrew might work on Linux too)): https://github.com/PearComputer/Sen-Yai-API

Project Details

Project ID1166919907
CreatedApril 27, 2025
Last ModifiedApril 27, 2025
SharedApril 27, 2025
Visibilityvisible
CommentsAllowed