sys-http by zaksabeast - Homebrew App Store (switch)
Back

App Store IconHomebrew App Store (switch)

sys-http
by zaksabeast

sys-http icon
    Version0.1.0
    Zip size384 KiB
    LicenseGPLv3
    Updated31/05/2020
    Downloads2,928
    MD5640effc95e669cdabee9c63ce62023b7

App Details

This is a sysmodule that allows communicating with the Nintendo Switch using http. This sysmodule brings a few advantages that don't currently exist:

HTTP is a standardized protocol with well defined uses
Most languages have at least one http library, so there's not a need to write a wrapper around raw TCP
Web browsers can use HTTP, but not raw TCP (without disabling security rules)
Potential future use cases:

Read Pokemon Sword/Shield den seeds directly into @Admiral-Fish's RaidFinder or @leanny's Seed Checker
Display Animal Crossing turnip prices in a mobile app
Show updating game values during a Twitch live stream
Setup a PKHeX REST API and live edit Pokemon from a website
Create a Discord bot that allows users to interact with the console

Connecting
sys-http uses port 8080
https is not currently used
Available routes
All number query parameters will be in hex format for consistency.

These are the currently available routes:

/ - Health check to see if the sysmodule is running
/refreshMetadata - Refreshes the game metadata used to power other routes
/titleId - Returns the title Id of the game
/readHeap?offset=&size= - Read values from the heap

Changelog

0.1.0

CORS headers to allow web browsers to work with sys-http
/settings/language to get the console language