{"id":50575951,"url":"https://github.com/maxzz/to-diag-trace-ne","last_synced_at":"2026-06-04T22:01:45.525Z","repository":{"id":361531849,"uuid":"1254818988","full_name":"maxzz/to-diag-trace-ne","owner":"maxzz","description":"NeutralinoJS tool to collect diagnostic traces (unstable).","archived":false,"fork":false,"pushed_at":"2026-05-31T03:33:08.000Z","size":3657,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T05:13:58.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T03:23:53.000Z","updated_at":"2026-05-31T03:40:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxzz/to-diag-trace-ne","commit_stats":null,"previous_names":["maxzz/to-diag-trace-ne"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/maxzz/to-diag-trace-ne","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fto-diag-trace-ne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fto-diag-trace-ne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fto-diag-trace-ne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fto-diag-trace-ne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxzz","download_url":"https://codeload.github.com/maxzz/to-diag-trace-ne/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxzz%2Fto-diag-trace-ne/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33921352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-04T22:01:44.028Z","updated_at":"2026-06-04T22:01:45.512Z","avatar_url":"https://github.com/maxzz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# to-diag-trace-ne\n\nA lightweight, portable cross-platform desktop application built with [NeutralinoJS](https://neutralino.js.org/), React 19, TypeScript, and Tailwind CSS v4. Recreated from the Go-based Wails version (`to-diag-trace-go`) with full runtime window option persistency.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Project Files Overview](#project-files-overview)\n- [Prerequisites](#prerequisites)\n- [How to Develop](#how-to-develop)\n  - [1. Initial Setup](#1-initial-setup)\n  - [2. Start Development Environment](#2-start-development-environment)\n- [How to Build](#how-to-build)\n- [Window State Persistency Architecture](#window-state-persistency-architecture)\n- [License](#license)\n\n---\n\n## Features\n\n- **Extreme Portability**: Leverages NeutralinoJS, yielding tiny executable bundles (~2-3MB) and negligible memory footprint.\n- **Modern Stack**: Powered by React 19, TypeScript 6, Vite 8, and Tailwind CSS v4.\n- **Window Bounds Persistency**: Automatically remembers the window position, width, and height between launches, storing them safely in standard OS configuration directories (`%APPDATA%` on Windows, `~/.config` on Linux, `~/Library/Application Support` on macOS).\n- **Embedded Developer Tools**: Press `F12` or right-click to inspect elements during development.\n\n---\n\n## Project Files Overview\n\nThe workspace is organized into a main desktop wrapper and a dedicated web frontend project:\n\n```text\nto-diag-trace-ne/\n├── neutralino.config.json    # Primary NeutralinoJS configuration (window size, permissions, modes)\n├── package.json              # Root project tasks \u0026 scripts targeting Neutralino CLI\n├── pnpm-lock.yaml            # Monorepo/project lockfile\n├── .gitignore                # Files/folders excluded from Git control\n├── README.md                 # Project documentation (this file)\n└── frontend/                 # Web application root (Vite + React + TS workspace)\n    ├── package.json          # Frontend packages and scripts\n    ├── vite.config.ts        # Vite configuration incorporating React and Tailwind CSS\n    ├── index.html            # Entry-point HTML file for the WebView\n    ├── src/\n    │   ├── main.tsx          # Client startup and SDK initialization\n    │   ├── App.tsx           # Primary React component and Tailwind UI layouts\n    │   ├── index.css         # Tailwind directives and layer extensions\n    │   └── vite-env.d.ts     # Ambient TypeScript types for Vite\n    └── public/\n        ├── appicon.png       # Branded native application icon file\n        ├── neutralino.js     # NeutralinoJS SDK client library (auto-downloaded)\n        └── neutralino.d.ts   # NeutralinoJS SDK TypeScript ambient definitions (auto-downloaded)\n```\n\n---\n\n## Prerequisites\n\nBefore running or building the application, ensure you have the following installed on your machine:\n\n1. [Node.js](https://nodejs.org/) (v18 or higher recommended)\n2. [PNPM](https://pnpm.io/) package manager\n3. [Neutralino CLI](https://www.npmjs.com/package/@neutralinojs/neu) (installed automatically as a local dependency)\n\n---\n\n## How to Develop\n\n### 1. Initial Setup\n\nClone this repository, navigate to the root directory, and run the following command to download NPM packages and native binary engines for your current platform:\n\n```bash\n# Install root and frontend dependencies\npnpm install \u0026\u0026 pnpm run frontend:install\n\n# Download NeutralinoJS binaries, TypeScript definitions, and client SDKs\npnpm exec neu update\n```\n\n*(Note: If you are behind a corporate proxy or experience TLS handshake exceptions, you can run `$env:NODE_TLS_REJECT_UNAUTHORIZED=\"0\"; pnpm exec neu update` in PowerShell).*\n\n### 2. Start Development Environment\n\nRun the following command in the root folder to spin up the Vite development server with Hot Module Replacement (HMR) and launch the Neutralino desktop window:\n\n```bash\npnpm run dev\n```\n\n- When the window starts up, press \u003ckbd\u003eF12\u003c/kbd\u003e or right-click anywhere to open the Chromium developer console (WebView2 / WebKit debugger).\n- Making modifications to any React component inside `frontend/src/` will refresh the viewport immediately.\n\n---\n\n## How to Build\n\nTo package your application into standalone, ready-to-run desktop packages for **Windows**, **macOS**, and **Linux**, run:\n\n```bash\npnpm run build\n```\n\nThis command triggers:\n1. `tsc \u0026\u0026 vite build` inside `frontend/` to generate optimized production web assets.\n2. `neu build` to compile resources, download multi-platform binaries, inject icons, and generate distributions.\n\nThe final builds are placed in:\n📁 **`dist/to-diag-trace-ne/`**\n\nOutput binaries generated:\n- `to-diag-trace-ne-win_x64.exe` (Windows 64-bit)\n- `to-diag-trace-ne-mac_universal` / `mac_x64` / `mac_arm64` (macOS Intel, Apple Silicon, or Universal bundles)\n- `to-diag-trace-ne-linux_x64` / `linux_arm64` (Linux executable targets)\n- `resources.neu` (Compressed web application bundle)\n\n---\n\n## Window State Persistency Architecture\n\nThe application implements native cross-platform bounds and position persistency using the native NeutralinoJS config engine:\n\n1. **`useSavedState: true`**: Handled natively in C++ inside the Neutralino core. The window coordinates, size (width/height), and maximized status are automatically saved on exit and restored on launch without any custom JavaScript scripts.\n2. **`exitProcessOnClose: true`**: Standard immediate process exit, completely eliminating native thread freezes or lockups on Windows.\n\n---\n\n## License\n\nThis project is licensed under the MIT License - see individual files for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxzz%2Fto-diag-trace-ne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxzz%2Fto-diag-trace-ne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxzz%2Fto-diag-trace-ne/lists"}