If you need a quick intoduction with code samples that you can copy-and-paste, head over to sql.js.org
The root object in the API is the initSqlJs function,
that takes an SqlJsConfig parameter,
and returns an SqlJs object
initSqlJs returns the main sql.js object, the SqlJs module, which contains :
Database is the main class, that represents an SQLite database.
The Statement class is used for prepared statements.