🚀 JCL WebAssembly Demo

âŗ Loading JCL WebAssembly module...

📝 Input Code

Examples:

⚡ Actions

📤 Output

Output will appear here...

â„šī¸ Instructions

  1. Build the WASM module:
    # Install wasm-bindgen-cli if not already installed
    cargo install wasm-bindgen-cli
    
    # Build the WASM module
    cargo build --target wasm32-unknown-unknown --lib --no-default-features --features wasm --release
    
    # Generate JavaScript bindings
    wasm-bindgen target/wasm32-unknown-unknown/release/jcl.wasm --out-dir pkg --target web
  2. Start a local web server:
    # Using Python 3
    python -m http.server 8000
    
    # Or using Python 2
    python -m SimpleHTTPServer 8000
    
    # Or using Node.js with npx
    npx http-server
  3. Open http://localhost:8000/wasm-example.html in your browser
  4. Try the examples and actions above!