This repository serves as a collection of basic "Hello World" service examples for various programming languages and runtime environments, all configured to run natively inside a Stacknow WebAssembly sandbox.
The goal is to demonstrate how to correctly set up a network service to listen on a Unix socket, which is the required pattern for exposing applications on the Stacknow platform.
Stacknow runs a complete, sandboxed Linux operating system (OS) environment entirely within your browser tab using WebAssembly (WASM). This provides instant startup times, unparalleled security isolation, and a perfectly consistent Linux environment for every session.
Due to the browser's security model, services cannot listen on traditional TCP ports (like 8000 or 3000). Instead, your application must listen on a Unix Socket located at a specific path.
The Stacknow daemon automatically detects services listening on this path and exposes them via a secure WebSocket tunnel to the outside world.
All applications must listen on a Unix socket with the following path structure, utilizing the injected environment variable $SANDBOX_UUID:
/tmp/$SANDBOX_UUID/<service-name>.sock