Skip to content

stacknow/stacknow-sandbox-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Stacknow Sandbox Examples

Powered by Stacknow Stacknow Documentation

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.


πŸš€ What is Stacknow?

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.

πŸ”Œ The Core Concept: Unix Sockets for Networking

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.

The Required Socket Path

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published