Anyone know how SmileBoom's servers are laid out? In the event that the servers shut down, an unofficial patch could be made that redirects SmileBASIC to a different server (don't know who would maintain it, I possibly could via my GitHub site) with archived keys. Just note that my site is static, so only downloading would be possible, no uploads (this is probably for the better, as I wouldn't want to maintain uploads).
A DNS server instead of a patch could also possibly work as a no-homebrew alternative (if there aren't any security checks), but someone else would have to maintain it. I could still host files on my site, though, so someone would just have to make it so that the DNS server redirects SmileBoom site requests to requests on my site.
Announcement (10/06/2020):
I just wanted to let anyone who wanted to use this API know that this is pretty safe to use. All downloaded files are cached, and as such it avoids sending more than the required amount of requests to SmileBASIC servers. If you're doing a large amount of automated queries at one time, please check out the WebSocket Query API, as it provides less overhead on the server and adds additional features like queueing requests. Also, there might be a new feature soon :) Quick jump: News Introduction Usage Examples SiteJS plugin Credits WebSocket Query APINEWS:
- 03/26/2020: Fixed a bug that was causing long load times. I don't know if anyone noticed this, but it was taking like 3 seconds per request. Not any more!
- 03/16/2020: Added English tag support! When using the `info` endpoint, add ?en=1 for the official English tags. They haven't been updated but should give a better idea of what each tag is. This also works with ?json=1 and the WebSocket Query API!
- 02/29/2020: Added tags to the info page! Only Japanese tags for now because official tag data for English is not very good right now, but will be updated in the future!
- 02/04/2020: WebSocket query API implemented! Read more details below.
- 01/31/2020: SBAPI 4 has launched! If you're using the SBAPI SiteJS, please update it to support SB4 keys.
- info - all files, shows information about the file provided (use ?json=1 if you're writing a program to get information as JSON, add en=1 for English tags)
- list - only projects, lists all files (use ?json=1 if you're writing a program to get information as JSON)
- zip - only projects, download all files from the project as a ZIP file. If you want to convert files to their preferred format (ex, GRP -> PNG, TXT -> Text), add ?nice=1
- raw - all files, downloads the raw file.
- text - only TXTs, returns the text content of the file
- code - only TXTs, highlights code using 12Me21's SBHighlight library (use ?wrap=1 to enable word-wrapping)
- png - only GRPs, converts the GRP to a PNG
- json - only DATs, returns the DAT information as a JSON array of arrays.
- csv - only 2D DATs, converts the data to a CSV (comma-separated values) file
- icon - only META files, returns the icon as a PNG file.
- downloads - all files, returns a PNG with the download count (download count is only updated every 24 hours). You can also control the PNG using query parameters: ?color=#BADA55&stroke=#A55A55&strokewidth=3&padding=3&bgcolor=rgba(0,0,0,0.5)
- encodings - all files, returns JSON array with all possible encodings for the file given
- triangle - file format guru, wrote the file parser used for SB files and other parts of code, and most of reverse engineering of SmileBASIC's servers, donated 3DS information for the server
- MasterR3C0RD - hosting, wrote the server communication libraries and helped with reverse engineering of SmileBASIC's servers
- 12Me21 - wrote sbhighlight and rewrote the SiteJS plugin to work with more browsers
- snail_ - working on proper documentation for API
- Yttria - word of reason, helped with multiple things internally
- Jaku - helped with SB4 support