GitHub - andrewchilds/nemo: Local process, server, and job runner.

GitHub

4 min read Original article ↗

A simple Electron-based process manager for running and monitoring local terminal processes.

screenshot

Features

  • Add, edit, and delete process configurations
  • Start/stop processes with a single click
  • Live terminal emulator with full PTY support
  • Real-time CPU and memory monitoring
  • Auto-restart option for servers that crash
  • Support for long-running servers, one-time jobs, and scheduled tasks (every few minutes or daily at a set time)

Process Types

  • Servers run until you stop them. Nemo detects the port from terminal output and can restart a server automatically if it crashes.
  • Jobs run a command once and show a notification when it finishes.
  • Scheduled tasks run a command automatically, either every N minutes (2 to 60) or once a day at a set time. Intervals align to the local clock, so a 5-minute task runs at :00, :05, :10, and so on. Each task's card shows a countdown to its next run, and you can still start one manually at any time.

Notes on scheduled tasks:

  • They run only while Nemo is open. Runs missed while the app is closed are skipped. If the Mac sleeps through one or more runs with Nemo open, the task runs once on wake.
  • If a run is still going when the next one is due, the new run is skipped.
  • Daily tasks notify when they finish. Interval tasks don't, to avoid a notification every few minutes.
  • Times use the Mac's local timezone.

Run History

Every run of a process is recorded: its full terminal output, when it started, how long it took, and how it ended (exit code, stopped by you, or interrupted because Nemo quit). The bar above the terminal shows the current or most recent run, and the history button next to it opens a table of past runs. Click a run to replay its output in the terminal, step to older or newer runs with the arrows, and use "Back to live" to return to the live output. Job and scheduled task cards in the sidebar show a check or cross for how the last run ended.

Nemo keeps the last 100 runs per process and caps each run's output at 10 MB; anything past the cap is dropped and the run is marked as capped. Records live in ~/Library/Application Support/nemo/nemo-data/runs/<process id>/ as an index.json plus one .log file per run, which you can read with less -R. "Clear history" in the history table deletes a process's recorded runs, and deleting a process deletes its history.

Development

# Install dependencies
bun install

# Run in development mode
bun run electron:dev

# Or run separately:
bun run dev          # Start SvelteKit dev server
bun run electron:build && ./node_modules/.bin/electron .  # Start Electron

Building

# Build for production
bun run dist

This creates distributable packages in the release/ directory.

Launching on macOS without a terminal

This creates a double-clickable Nemo.app under release/. Open it from Finder or drag it into /Applications. When Nemo is running, macOS shows a menu bar item with the number of running server processes.

If macOS blocks a task from writing to a folder or drive, grant Nemo access in System Settings > Privacy & Security > Files and Folders. For projects on external drives, network volumes, or other protected locations, grant Nemo Full Disk Access in the same Privacy & Security section.

Data Storage

All data is stored in JSON files in the Electron user data directory:

  • macOS: ~/Library/Application Support/nemo/nemo-data/
  • Linux: ~/.config/nemo/nemo-data/
  • Windows: %APPDATA%/nemo/nemo-data/

Files:

  • processes.json - Process configurations
  • metrics.json - Historical CPU/memory metrics
  • port-history.json - Port usage history for conflict detection

Tech Stack

License

MIT