Show HN: REST API for Gymnasium (fka OpenAI Gym) reinforcement learning library
github.comI was looking through some of my past personal projects tinkering with reinforcement learning, and noticed that the REST/HTTP API for the OpenAI gym available at the time is no longer supported. The API was pretty useful back then since most of ML and deep learning hadn't quite stabilized on the various Python libraries today.
gymnasium-http-api is an attempt at bringing back the same type of language-agnostic support. It mostly wraps the forked and supported Gymnasium library, with some endpoints specifically for making it easier to render and visualize the training and learning process.
Check out the README for some examples. Hope others find it useful! The language-agnostic angle is the right reason to resurrect this. The original gym HTTP API was underrated for exactly that — being able to drive environments from Go or Rust without fighting Python interop was genuinely useful.
Curious whether you're handling the render/visualize endpoints via server-sent events or polling. Streaming frame data over HTTP for visualisation can get messy fast, especially at higher framerates.