This PR adds a file-based logging system with size-based rotation to the desktop application. It essentially redirects existing diagnostic to size-based rotating files for troubleshooting environment-specific issues. Closes HFE-801 The desktop application currently lacks a persistent logging mechanism in production environments. Logs are only available through the development mode console. This PR will help diagnose issues reported in #4859, #4950, #5003, discussions #4984 and #4986. Mainly aiming to understand errors in specific environments that can't be reproduced in our testing setups. This implementation uses the tracing ecosystem (`tracing`, `tracing_subscriber`, `tracing_appender`) along with `file_rotate` to create log files in the platform's log directory. The logs are automatically rotated when they reach `10MB`, with a maximum of `5` files retained. Thinking 10 * 5 MB is reasonable disk usage while maintaining sufficient history. The system currently writes to both the console (with ANSI colors where supported) and to files (without ANSI formatting for readability). Log levels are currently controlled via the `RUST_LOG` environment variable, defaulting to "debug" when not specified. | OS | Log File Path | |---------|------------------------------------------------------| | Windows | `C:\Users\<username>\AppData\Local\io.hoppscotch.desktop\logs\io.hoppscotch.desktop.log` | | macOS | `~/Library/Logs/io.hoppscotch.desktop/io.hoppscotch.desktop.log` | | Linux | `~/.local/share/io.hoppscotch.desktop/logs/io.hoppscotch.desktop.log` | |
||
|---|---|---|
| .. | ||
| crates/webapp-bundler | ||
| plugin-workspace | ||
| public | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| connection-to-self-hosted-instance.png | ||
| desktop-app.png | ||
| index.html | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Hoppscotch Desktop App ALPHA
Hoppscotch Desktop App is a cross-platform Hoppscotch app built with Tauri V2
Now with the ability to connect to Self-Hosted instances
Install Hoppscotch Desktop App
- Download the latest version of Hoppscotch Desktop App
- Open the downloaded file.
- Follow the on-screen instructions to install Hoppscotch Desktop App.
- Open Hoppscotch Desktop App.
Access Hoppscotch
Hoppscotch Cloud Edition for Individuals
Access Hoppscotch Cloud Edition from Hoppscotch Desktop App:
- Open Hoppscotch Desktop App.
- Click the Hoppscotch logo in the top-left corner.
- Click "HOPPSCOTCH CLOUD".
- Sign in with your Hoppscotch Cloud account to access your workspaces and collections.
Hoppscotch Self-Hosted Edition for Community
Note
To enable desktop app support for your self-hosted Hoppscotch instance, make sure to update the
WHITELISTED_ORIGINSenvironment variable in your.envfile with your deployment URL.e.g. to allow connection to
https://hoppscotch.mydomain.comyou need to addapp://hoppscotch_mydomain_com(MacOS, Linux) andhttp://app.hoppscotch_mydomain_com(Windows) to theWHITELISTED_ORIGINSenvironment variable.WHITELISTED_ORIGINS=...existing_origins,app://hoppscotch_mydomain_com,http://app.hoppscotch_mydomain_com
Add your self-hosted Hoppscotch Community Edition instance to Hoppscotch Desktop App:
- Open Hoppscotch Desktop App.
- Click the Hoppscotch logo in the top-left corner.
- Click "Add an instance".
- Enter the URL of your self-hosted Hoppscotch instance.
- Click "Connect".
Tip
You can also self-host Hoppscotch Desktop App.
- Install and generate the selfhost web app:
cd ../hoppscotch-selfhost-web pnpm install pnpm generate- Build the webapp bundler:
cd crates/webapp-bundler cargo build --release- Bundle the web app:
cd target/release ./webapp-bundler --input [path-to-dist-directory] --output [path-to-hoppscotch-desktop]/bundle.zip --manifest [path-to-hoppscotch-desktop]/manifest.json- Run the Tauri development server:
or the following for production build:cd src-tauri pnpm tauri devcd src-tauri pnpm tauri dev
Note
[path-to-dist-directory]should point to thedistdirectory created by thepnpm generatecommand in step 1.
Hoppscotch Self-Hosted Edition for Enterprise
Note
To enable desktop app support for your self-hosted Hoppscotch instance, make sure to update the
WHITELISTED_ORIGINSenvironment variable in your.envfile with your deployment URL.e.g. to allow connection to
https://hoppscotch.mydomain.comyou need to addapp://hoppscotch_mydomain_com(MacOS, Linux) andhttp://app.hoppscotch_mydomain_com(Windows) to theWHITELISTED_ORIGINSenvironment variable.WHITELISTED_ORIGINS=...existing_origins,app://hoppscotch_mydomain_com,http://app.hoppscotch_mydomain_com
Add your self-hosted Hoppscotch Enterprise Edition instance to Hoppscotch Desktop App:
- Open Hoppscotch Desktop App.
- Click the Hoppscotch logo in the top-left corner.
- Click "Add an instance".
- Enter the URL of your self-hosted Hoppscotch instance.
- Click "Connect".
Note
For docker setup, the desktop app uses a server at port
3200, and it is part of the frontend container:❯ docker run -p 3000:3000 -p 3200:3200 hoppscotch/hoppscotch-frontendOnce the container is live, you can enter
[your-ip]:3200or simply the base address of the instance if you are using subpath access.

