First and foremost you should get familiar with the Lua reference manual, if you are new to Lua. You will find most basic Lua functionality explained there, as well as a bunch of standard library functions.
OpenComputers makes an effort to largely emulate the standard library in areas that would usually interact with the host system - that being the I/O library. There are a few differences, which you can look up here: differences in the standard libraries. Most notably, the debug library is mostly unavailable, and load
only accepts text source files, no binary / pre-compiled Lua programs (for security reasons).
Note that you now need to require
all non-standard APIs (including the ones below) before you use them, i.e. all modules not listed in the Lua reference manual.
For example, instead of simple going local rs = component.redstone
, you now need to require the component API, like so:
local component = require("component") local rs = component.redstone --You can of course change the variable name: local mycomp = require("component") local rs = mycomp.redstone
The same applies for all other APIs listed below (even Sides and Colors).
The standard libraries aside, OpenComputers comes with a couple of additional, built-in libraries. Here is a list of all these libraries. Note that some of these may not be usable depending on your configuration (HTTP) and context (Robot library on computers), but they'll still be there.
FILE*
API buffer implementation for wrapping streams.