npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

recalbox-api

v1.0.12

Published

REST API for Recalbox

Downloads

3

Readme

Recalbox API

REST API for recalbox

Installation

API

Available formats

| Format | MIME type | | ------ | ------------------ | | text | text/plain | | json | application/json | | xml | application/xml |

To get a specific response format, you have to send the HTTP header Accept with a listed MIME type above.

Pagination

On endpoints that return a collection, you can paginate the result with these queries :

| name | Type | Default | Description | | ----- | ------- | ------- |------------ | | page | Integer | 1 | The page (start at 1) | | count | Integer | 25 | The amount of item to return | | range | String | null | The index range to return |

The response returns the items with 2 headers :

  • Content-Range
  • Accept-Range

Endpoints

| HTTP VERB | Endpoint | Description | |:----------- | -------- | ----------- | | GET PUT | /configuration | The main configuration | | GET PUT | /hostname | The hostname | | GET PUT | /locale | The locale | | GET PUT | /keyboardlayout | The keyboard layout | | GET PUT | /timezone | The timezone | | GET PUT | /updates/enabled | Enable/disable the updates check at startup | | GET | /kodi | Get Kodi settings | | GET PUT | /kodi/enabled | Enable/disable Kodi | | GET PUT | /kodi/atstartup | Start Kodi at launch | | GET PUT | /kodi/xbutton | Set x button shortcut | | GET | /wifi | Get wifi settings | | GET PUT | /wifi/enabled | Enable/disable wifi | | GET PUT | /wifi/ssid | Wifi SSID | | GET PUT | /wifi/key | Wifi key | | GET | /audio | Get audio settings | | GET PUT | /audio/device | The audio device | | GET PUT | /audio/volume | The volume | | GET PUT | /audio/bgmusic | Enable/disable sounds in EmulationStation | | GET | /controllers/ps3 | Get PS3 controllers settings | | GET PUT | /controllers/ps3/enabled | Enable/disable PS3 controllers support | | GET PUT | /controllers/ps3/driver | PS3 controllers driver | | GET | /controllers/xboxdrv | Get xboxdrv driver settings | | GET PUT | /controllers/xboxdrv/enabled | Enable/disable xboxdrv driver | | GET PUT | /controllers/xboxdrv/nbcontrols | The amount of controllers to use with xboxdrv | | GET | /controllers/gpio | Get GPIO settings | | GET PUT | /controllers/gpio/enabled | Enable/disable controllers on GPIO | | GET PUT | /controllers/gpio/args | mk_gpio arguments | | GET | /controllers/db9 | Get DB9 driver settings | | GET PUT | /controllers/db9/enabled | Enable/disable DB9 driver | | GET PUT | /controllers/db9/args | DB9 driver arguments | | GET | /controllers/gamecon | Get gamecon driver settings | | GET PUT | /controllers/gamecon/enabled | Enable/disable gamecon driver | | GET PUT | /controllers/gamecon/args | Gamecon driver arguments | | GET POST | /bios | The bios list for all systems | | GET DELETE | /bios/:fileName | The BIOS file | | GET | /bios/metadata/:fileName | The file information | | GET | /systems | The system list | | GET | /systems/default | The default system settings | | GET PUT | /systems/default/videomode | The default resolution | | GET PUT | /systems/default/shaders | The default shaders | | GET PUT | /systems/default/ratio | The default ratio | | GET PUT | /systems/default/smooth | The default smooth value | | GET PUT | /systems/default/rewind | The default rewind value | | GET | /systems/:id | The settings of the specified system | | GET PUT | /systems/:id/videomode | The game resolution of the specified system | | GET PUT | /systems/:id/shaders | The shaders of the specified system | | GET PUT | /systems/:id/ratio | The ratio of the specified system | | GET PUT | /systems/:id/smooth | Enable/disable the smooth of the specified system | | GET PUT | /systems/:id/rewind | Enable/disable the rewind of the specified system | | GET PUT | /systems/:id/core | The core of the specified system | | GET PUT | /systems/:id/emulator | The emulator of the specified system | | GET POST | /systems/:id/roms | The game list of the specified system | | GET DELETE | /systems/:id/roms/:game | The game file | | GET | /systems/:id/roms/metadata/:game | The game informations |

Examples

curl http://192.168.0.42:1337/configuration
curl --header "Accept: application/xml" http://192.168.0.42:1337/configuration
curl -X PUT -d "1" http://192.168.0.42:1337/kodi/enabled
curl --header "Accept: application/json" "http://192.168.0.42:1337/bios?count=5&page=2"
curl --head "http://192.168.0.42:1337/bios?count=5&page=2"
curl "http://192.168.0.42:1337/bios?range=2-7"
curl -X POST -F '[email protected]' "http://192.168.0.42:1337/bios"
curl -X DELETE -I "http://192.168.0.42:1337/systems/snes/roms/Zelda.sfc"