TypeScript icon, indicating that this package has built-in type declarations

    2.6.0 • Public • Published

    Star Topology


    npm version license Travis Build npm total downloads Gitter

    User Hosted Secure Transmission server in NodeJS

    📦 Installation & Usage

    Install it via the npm registry:

    npm install -g uhst-server


    You can start the Express.js server with:


    By default it listens on and port 3000 ( You can specify host and port by setting the environment variables HOST and PORT:

    HOST= PORT=80 uhst

    Set the environment variable JWT_SECRET to specify a HS256 secret to use for signing the tokens. This is useful for example when restarting the relay if you want to ensure existing tokens are still valid. If this variable is not set a random secret will be generated at runtime.

    Note: Set UHST_PUBLIC_RELAY=true and the relay will retrieve its prefix from the public relays directory (https://github.com/uhst/relays/blob/main/list.json) the first time it receives ?action=host or ?action=ping POST request.
    The relay has to be listed in the directory with its unique prefix. All UHST users who use this prefix as part of their hostId will connect to this relay. However, there is no authentication so every UHST relay is currently "open" by default. Thus, UHST_PUBLIC_RELAY flag controls only the advertisement of this relay, even with UHST_PUBLIC_RELAY=false any UHST user can manually connect to this relay. Only HTTPS-accessible relays can be registered in the directory.

    UHST_PUBLIC_RELAY=true uhst


    UHST Relay supports NewRelic. The goal is to monitor how the relay is used and plan for scaling / adding new instances. To enable NewRelic, set the following environment variable:

    NEW_RELIC_LICENSE_KEY= Your New Relic license key. For example, license_key: '40HexadecimalCharacters'.


    npm i uhst-server

    DownloadsWeekly Downloads






    Unpacked Size

    45.1 kB

    Total Files


    Last publish


    • sdimitrov