This is the JS code for running an SSH client via WASM. It is largely a standalone module and does not include other critical parts. Consult the other projects in the stack:
For details on how wassh implements various subsystems:
A presentation is also available: WASI: A WASM Journey.