GCoder is a Ruby library to deal with GCode in various flavours. It's designed to make scripting GCode filters easy, and to work with Opal to enable web-based GCode editors/viewers.