Skip to content
Delta1035Public

About

Desktop app to run and manage scripts across local projects: auto-detects npm / Maven / Gradle scripts, batch start, logs, health checks. Windows & Linux.

Topics

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

DevHub

DevHub

One place to run the scripts of all your local projects: detects npm / Maven / Gradle / custom scripts, then starts, stops and tails them — individually or in batches.

English · 简体中文

CI Release Downloads Platform License PRs Welcome

Electron React TypeScript pnpm

Website · Download · Features · Usage · Development · Contributing

When a frontend, a backend and a mock server all need to be running, you no longer need a terminal window per project or to remember how each one starts.

Runs on Windows and Linux (Ubuntu / X11). The UI is currently in Chinese.

DevHub main window: project list, detected scripts and a running terminal

Features

  • Script detection
    • npm: reads package.json scripts and picks pnpm / yarn / npm from the packageManager field or the lockfile; monorepo packages inherit the repository root's package manager
    • Maven: common lifecycle goals, plus spring-boot:run for Spring Boot projects; multi-module builds get a start command per application module
    • Gradle: clean / build / test, plus bootRun / run depending on plugins; multi-project builds are supported
    • Go: go.mod / go.work workspaces, with run / build / test / tidy scripts for the root and each cmd/<app> entry
    • Python: pyproject.toml / requirements.txt and friends, with uv / poetry / pdm / pipenv / venv detection, run / test / dependency scripts and framework port inference
    • Project wrappers (mvnw / gradlew) are preferred
    • Anything else goes in .devhub.yaml
  • Workspaces: point DevHub at a code folder and it discovers the projects inside, keeps the list in sync, and floats active or pinned projects to the top
  • Runs and logs: start / stop / restart, stopping the whole process tree; one terminal tab per run with interactive input, search, copy/paste and clickable links
  • Ports and health checks: infers ports from commands, names processes holding a port and can stop them before starting a service; running scripts show starting / ready / unresponsive
  • Batch tasks: combine scripts across projects and start them in parallel or in sequence; a sequential step can wait for a successful exit, a text (or regex) in the output, an open port, an HTTP 2xx or a fixed delay, and a failure stops the remaining steps with a reason
  • Scheduled tasks (since v1.11.0): run a script or a batch task once, daily, weekly, at a fixed interval or by a 5-field Cron expression; skip or stop-and-restart when the target is already running. Schedules run only while DevHub is open.
  • Run history: the last 20 runs of each script, with their logs, survive a DevHub restart
  • Project terminals: open bash / PowerShell / cmd or a custom shell in the project directory
  • Phone access: with remote access enabled, use the browser / PWA or the Android app to check status and start / stop scripts (remote terminal is off by default; see Phone access)
  • Also: open projects in VS Code / IntelliJ IDEA, global search and notifications, tray icon, light and dark themes, auto-update

Install

Download from Releases:

Platform File
Windows devhub-*-setup.exe (installer, lets you pick a folder)
Linux .AppImage or .deb (both support in-app updates)
Android DevHub-*.apk (remote client for a desktop running DevHub)

The installers are not code-signed, so Windows SmartScreen warns on first launch; choose "More info → Run anyway".

Verify downloads with SHA256SUMS.txt, or check their build provenance:

gh attestation verify <file> --repo Delta1035/devhub

Usage

  1. Add a project folder under 项目 (Projects) in the sidebar; its scripts are listed on the right.
  2. Click a script's run button. Output appears in the terminal panel below; the script row shows its port and health, and the history button lists earlier runs.
  3. To start several services together, create a task under 批量 (Batch) and choose the scripts and their order.

A batch task: start the backend, wait until it reports it has started, then start the frontend

Closing the window keeps DevHub in the tray with scripts still running; quitting DevHub stops every run. Settings can make closing the window quit instead.

Custom scripts (.devhub.yaml)

Create .devhub.yaml in the project root for commands DevHub cannot detect (docker compose, commands with arguments, submodules…):

scripts:
  api:
    command: mvnw.cmd spring-boot:run -pl server # or per platform: { windows: ..., linux: ... }
    description: Backend # optional
    port: 8081 # optional, or ports: [8081, 8082]; inferred from the command when omitted
    portConflictPolicy: terminate # optional: stop port holders before starting this script
    health: /actuator/health # optional; readiness then means this path returns HTTP 2xx
  db:
    command: docker compose up postgres
    cwd: deploy # optional, relative to the project; cannot leave it

Changes apply on refresh or when the window regains focus; mistakes are reported in the script list with a line number or field path.

Settings → Process → Port conflicts defaults to reporting a conflict. Choose Stop port holders before starting to apply automatic replacement globally, or set portConflictPolicy: terminate on individual custom scripts. A script's error or terminate value overrides the global setting. This applies to single and batch starts, and only to ports explicitly declared with port or ports in .devhub.yaml. Inferred ports still report conflicts, because a tool's default port may differ from its actual configuration. DevHub stops managed services normally, terminates external holders and their process trees, and waits for the ports to be free. If a holder cannot be identified or stopped, startup fails with a reason.

Development

Requires Node.js ≥ 22 and pnpm 11.

pnpm install
pnpm dev      # run the desktop app with hot reload
pnpm check    # format + lint + types + tests
pnpm e2e      # build, then drive the real app with Playwright

Docs

See Contributing for the project layout, conventions, commit style and release process. Design documents in docs/ are written in Chinese.

Star History

Star History Chart

License

MIT

About

Desktop app to run and manage scripts across local projects: auto-detects npm / Maven / Gradle scripts, batch start, logs, health checks. Windows & Linux.

Topics

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages