### Install and Run Demo Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/web-to-web-p2p/README.md Install dependencies and start the development server for the Web-to-Web P2P demo. ```bash npm i npm run dev ``` -------------------------------- ### Install and Run TypeScript Prover Demo Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/interactive-demo/README.md Set up the Node.js environment for the TypeScript prover and start the development server. This makes the demo accessible in the browser. ```bash cd prover-ts npm install npm run dev ``` -------------------------------- ### Install Demo Dependencies Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/react-ts-webpack/README.md Installs the necessary Node.js dependencies for the React/TypeScript demo project using npm. ```sh npm i ``` -------------------------------- ### Run WebSocket Proxy Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Starts a WebSocket proxy for raw.githubusercontent.com, necessary for browser-based TLSNotary demos that cannot establish raw TCP connections. Ensure wstcp is installed first. ```bash wstcp --bind-addr 127.0.0.1:55688 raw.githubusercontent.com:443 ``` -------------------------------- ### Install wstcp Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/react-ts-webpack/README.md Installs the wstcp tool, a websocket proxy server required for browsers to make raw TCP connections. ```sh cargo install wstcp ``` -------------------------------- ### Compile tlsn-js and Setup React/TS App Source: https://github.com/tlsnotary/tlsn-js/blob/main/quickstart.md Installs dependencies, builds the tlsn-js library, and prepares the demo React/TypeScript application for development. ```sh npm i npm run build ``` ```sh cd demo/react-ts-webpack ``` ```sh npm i ``` ```sh npm run dev ``` -------------------------------- ### Install Dependencies and Run Tests Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Installs all project dependencies and runs the test suite. This includes setting up the Playwright test runner for browser-based tests. ```bash npm install npm run test ``` -------------------------------- ### Start TLSNotary Verifier (Rust) Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/interactive-demo/README.md Run the Rust verifier for the interactive demo. Ensure you are in the 'verifier-rs' directory. ```bash cd verifier-rs cargo run --release ``` -------------------------------- ### Start Webpack Dev Server Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/react-ts-webpack/README.md Starts the Webpack development server to serve the React/TypeScript application. This command is used to run the demo locally. ```sh npm run dev ``` -------------------------------- ### Run TLSNotary Verifier Server Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/interactive-demo/verifier-rs/README.md Starts the TLSNotary verifier server in release mode. Ensure SERVER_DOMAIN is configured correctly. ```bash cargo run --release ``` -------------------------------- ### Install TLSNotary JS Package Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Installs the tlsn-js library using npm. This package is intended for browser environments. ```bash npm install tlsn-js ``` -------------------------------- ### Run Websocket Proxy with wstcp Source: https://github.com/tlsnotary/tlsn-js/blob/main/quickstart.md Installs and runs a local websocket proxy for raw.githubusercontent.com, necessary for browser-based TCP connections. ```sh cargo install wstcp ``` ```sh brew install wstcp ``` ```sh wstcp --bind-addr 127.0.0.1:55688 raw.githubusercontent.com:443 ``` -------------------------------- ### Run Local Notary Server with Docker Source: https://github.com/tlsnotary/tlsn-js/blob/main/quickstart.md Starts a local TLSNotary server using npm scripts, suitable for development environments. ```sh npm run notary ``` -------------------------------- ### Build for NPM Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Installs dependencies and builds the tlsn-js library for distribution via npm. This command prepares the package for publishing. ```bash npm install npm run build ``` -------------------------------- ### Local Development Setup for tlsn-wasm Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Configures package.json to use a local tlsn-wasm build and builds the WASM module. This is for developers working on both tlsn-wasm and tlsn-js simultaneously. ```json "tlsn-wasm": "./tlsn-wasm/pkg" ``` -------------------------------- ### Build tlsn-js for Browser Prover Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/interactive-demo/README.md Install Node.js dependencies and build the tlsn-js library. This step is necessary before running the TypeScript prover. ```bash cd .. npm install npm run build ``` -------------------------------- ### Run TLSNotary Prover (Rust) Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/interactive-demo/README.md Execute the Rust prover for the interactive demo. Navigate to the 'prover-rs' directory before running. ```bash cd prover-rs cargo run --release ``` -------------------------------- ### Compile and Run Notary Server Natively Source: https://github.com/tlsnotary/tlsn-js/blob/main/quickstart.md Clones the TLSNotary repository, navigates to the server directory, and compiles/runs the notary server natively using Cargo. ```sh git clone https://github.com/tlsnotary/tlsn.git --branch "v0.1.0-alpha.12" cd tlsn/crates/notary/server/ cargo run --release ``` -------------------------------- ### Build WASM Module Locally Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Builds the tlsn-wasm module from source. This command should be run after updating package.json to point to the local WASM package. ```bash npm run build:wasm ``` -------------------------------- ### Run Local Notary Server with Cargo Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/react-ts-webpack/README.md Clones the tlsn repository and runs a local notary server using Rust Cargo. This provides a local instance for notarizing TLS requests. ```sh git clone https://github.com/tlsnotary/tlsn.git cargo run --release --bin notary-server ``` -------------------------------- ### Configure PSE Hosted Services Source: https://github.com/tlsnotary/tlsn-js/blob/main/demo/react-ts-webpack/README.md Updates the application configuration to use the hosted notary and websocket proxy services provided by PSE. This is an alternative to running local servers. ```typescript notaryUrl: 'https://notary.pse.dev/v0.1.0-alpha.11', ``` ```typescript websocketProxyUrl: 'wss://notary.pse.dev/proxy?token=raw.githubusercontent.com', ``` -------------------------------- ### Run Playwright Tests in UI Mode Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Launches the Playwright test runner in UI mode, allowing interactive viewing and debugging of tests in a browser. ```bash npx playwright test --ui ``` -------------------------------- ### Debug Playwright Tests Source: https://github.com/tlsnotary/tlsn-js/blob/main/readme.md Runs Playwright tests in debug mode, pausing execution to allow for step-by-step debugging. ```bash npx playwright test --debug ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.