{"id":49103378,"url":"https://github.com/efeecllk/localhost","last_synced_at":"2026-04-21T00:12:28.889Z","repository":{"id":345825292,"uuid":"1187016583","full_name":"efeecllk/localhost","owner":"efeecllk","description":"macOS menu bar app that shows all running dev processes grouped by project","archived":false,"fork":false,"pushed_at":"2026-03-20T22:36:56.000Z","size":517,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T12:32:49.804Z","etag":null,"topics":["developer-tools","macos","menu-bar","process-monitor","react","rust","tauri"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/efeecllk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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-03-20T08:44:52.000Z","updated_at":"2026-03-20T22:36:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/efeecllk/localhost","commit_stats":null,"previous_names":["efeecllk/localhost"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/efeecllk/localhost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efeecllk%2Flocalhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efeecllk%2Flocalhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efeecllk%2Flocalhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efeecllk%2Flocalhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efeecllk","download_url":"https://codeload.github.com/efeecllk/localhost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efeecllk%2Flocalhost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32071073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["developer-tools","macos","menu-bar","process-monitor","react","rust","tauri"],"created_at":"2026-04-21T00:12:27.846Z","updated_at":"2026-04-21T00:12:28.856Z","avatar_url":"https://github.com/efeecllk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# localhost\n\nA macOS menu bar app that shows every running dev process on your machine, grouped by project. No configuration needed -- it detects everything automatically.\n\n\u003c!-- screenshot --\u003e\n\n![macOS](https://img.shields.io/badge/macOS-13.0+-blue?logo=apple)\n![Apple Silicon](https://img.shields.io/badge/Apple%20Silicon-M1%2FM2%2FM3%2FM4-black?logo=apple)\n![Intel Mac](https://img.shields.io/badge/Intel%20Mac-Supported-gray?logo=apple)\n![Tauri](https://img.shields.io/badge/Tauri-2.0-orange?logo=tauri)\n![License](https://img.shields.io/badge/license-MIT-green)\n\n---\n\n## Why localhost\n\n- **See everything at a glance.** Every port listener, dev server, database, and Docker container running on your machine -- grouped by project folder, visible from the menu bar.\n- **Manage without switching windows.** Stop, restart, or open any process in your terminal, editor, or browser directly from the dropdown.\n- **Zero configuration.** Automatically scans your projects directory every few seconds. No setup files, no manual registration, no CLI commands.\n- **Catch forgotten processes.** That Express server you started two hours ago on `:3000` and forgot about? It shows up immediately.\n\nBuilt for developers who run multiple projects simultaneously and lose track of what is still running.\n\n---\n\n## Features\n\n| Feature | Description |\n|---------|-------------|\n| **Auto-Detection** | Finds port listeners, known dev tools (Node, Python, Go, Rust, Ruby, Java), and Docker containers automatically |\n| **Project Grouping** | Groups processes by project folder using working directory analysis and project markers (`package.json`, `Cargo.toml`, `go.mod`, `.git`, and more) |\n| **Process Details** | Shows CPU usage, memory consumption, uptime, and health status for each process |\n| **Quick Actions** | Stop, restart, open in terminal, open in editor (VS Code / Cursor), open in browser, copy port or path |\n| **Docker Support** | Detects Docker Compose projects and standalone containers with port mappings |\n| **Dark / Light Mode** | Follows your system theme or set manually in settings |\n| **Configurable Refresh** | Default 5-second polling with manual refresh available for instant updates |\n| **Native Feel** | Frameless transparent window that behaves like a native macOS popup -- no Dock icon, no window chrome |\n\n---\n\n## Installation\n\n### Homebrew (Recommended)\n\n```bash\nbrew tap efeecllk/localhost\nbrew install --cask localhost\n```\n\nWorks on both **Apple Silicon** (M1/M2/M3/M4) and **Intel** Macs automatically.\n\n**Why Homebrew?**\n- Automatic architecture detection\n- Easy updates with `brew upgrade`\n- Clean uninstall with `brew uninstall`\n- No manual DMG mounting needed\n\n### Direct Download\n\nDownload the latest `.dmg` from [GitHub Releases](https://github.com/efeecllk/localhost/releases):\n\n| Architecture | File |\n|-------------|------|\n| Apple Silicon (M1/M2/M3/M4) | `localhost_x.x.x_aarch64.dmg` |\n| Intel | `localhost_x.x.x_x64.dmg` |\n\n### Build from Source\n\nSee the [Development](#development) section below.\n\n### Requirements\n\n- macOS 13.0 (Ventura) or later\n- Docker Desktop (optional, for container detection)\n\n---\n\n## How It Works\n\nThree detection engines run in parallel on a configurable interval (default: every 5 seconds).\n\n### 1. Port Scanner\n\nUses the `sysinfo` crate to find all processes with open TCP listening ports. For each process, it reads the current working directory and walks up the directory tree looking for project markers (`package.json`, `Cargo.toml`, `go.mod`, `pyproject.toml`, `.git`). If the path falls under your configured projects directory, it groups under that project name.\n\n### 2. Dev Tool Detector\n\nMatches running process names against a built-in list of known dev tools to catch processes that may not be listening on a port yet (still compiling, starting up, etc.):\n\n- **JavaScript/TypeScript:** `node`, `deno`, `bun`\n- **Python:** `python`, `python3`, `uvicorn`, `gunicorn`, `flask`, `django`\n- **Go:** `go`, `air`\n- **Rust:** `cargo`, `rustc`\n- **Ruby:** `ruby`, `rails`, `puma`\n- **Java:** `java`, `gradle`, `mvn`\n- **Databases:** `postgres`, `mysql`, `mongod`, `redis-server`\n- **Servers:** `nginx`, `caddy`, `httpd`\n\n### 3. Docker Scanner\n\nQueries the Docker socket (`/var/run/docker.sock`) via the `bollard` crate to find running containers. Extracts container names, images, exposed ports, and status. Maps containers to projects using Docker Compose labels (`com.docker.compose.project.working_dir`), falling back to container name matching against project folder names.\n\n### Project Resolution\n\n```\nprocess cwd -\u003e walk up directory tree for .git / package.json / Cargo.toml\n  -\u003e found under ~/Desktop/Projects/X?  -\u003e group under \"X\"\n  -\u003e found elsewhere?                    -\u003e group under folder name\n  -\u003e can't determine?                    -\u003e group under \"Other\"\n```\n\nOnly the UI updates when the process list actually changes -- efficient diffing prevents unnecessary re-renders.\n\n---\n\n## Configuration\n\nOpen **Settings** from the gear icon in the dropdown header.\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| **Projects Directory** | `~/Desktop/Projects` | Root directory to scan for project folders |\n| **Scan Interval** | 5 seconds | How often to poll for running processes |\n| **Editor** | `code` (VS Code) | Editor command for \"Open in Editor\" action. Supports `code`, `cursor`, or any CLI-launchable editor |\n| **Theme** | System | `system`, `light`, or `dark` |\n\nSettings are persisted locally on your machine.\n\n---\n\n## Tech Stack\n\n| Layer | Technology |\n|-------|------------|\n| Framework | Tauri 2.0 |\n| Frontend | React 18 + TypeScript |\n| Styling | Tailwind CSS |\n| State Management | Zustand |\n| Process Detection | sysinfo (Rust crate) |\n| Docker Detection | bollard (Rust crate) |\n| Build Tool | Vite |\n| Distribution | Homebrew tap + GitHub Actions |\n\n---\n\n## Development\n\n### Prerequisites\n\n- [Rust](https://rustup.rs/) stable\n- [Node.js](https://nodejs.org/) 20+\n- [pnpm](https://pnpm.io/) 9+\n- Xcode Command Line Tools (`xcode-select --install`)\n\n### Setup\n\n```bash\ngit clone https://github.com/efeecllk/localhost.git\ncd localhost\npnpm install\n```\n\n### Commands\n\n```bash\npnpm tauri dev          # Dev mode with hot reload\npnpm tauri build        # Production build (universal binary)\npnpm lint               # TypeScript type checking\n```\n\n### Project Structure\n\n```\nlocalhost/\n├── src/                          # React frontend\n│   ├── components/               # UI components\n│   │   ├── MenuDropdown.tsx      # Main container\n│   │   ├── ProjectList.tsx       # Scrollable project list\n│   │   ├── ProjectGroup.tsx      # Per-project section\n│   │   ├── ProcessItem.tsx       # Per-process row\n│   │   ├── DetailPanel.tsx       # Process detail view\n│   │   ├── ActionButtons.tsx     # Quick action buttons\n│   │   ├── Settings.tsx          # Settings panel\n│   │   └── EmptyState.tsx        # No processes view\n│   ├── stores/\n│   │   └── processStore.ts       # Zustand store\n│   ├── hooks/\n│   │   └── useProcessPoller.ts   # Polling loop\n│   ├── lib/\n│   │   └── tauri.ts              # Tauri invoke wrappers\n│   ├── types/\n│   │   └── index.ts              # TypeScript interfaces\n│   ├── App.tsx\n│   └── main.tsx\n│\n├── src-tauri/                    # Rust backend\n│   ├── src/\n│   │   ├── main.rs               # Entry point\n│   │   ├── lib.rs                # Tray icon, window management\n│   │   ├── commands.rs           # Tauri command handlers\n│   │   ├── types.rs              # Shared data types\n│   │   ├── project_resolver.rs   # cwd -\u003e project mapping\n│   │   └── scanner/\n│   │       ├── mod.rs            # Scanner orchestrator\n│   │       ├── port_scanner.rs   # TCP port detection\n│   │       ├── dev_tools.rs      # Known dev tool detection\n│   │       └── docker.rs         # Docker container scanning\n│   ├── Cargo.toml\n│   └── tauri.conf.json\n│\n├── .github/workflows/            # CI/CD\n│   ├── release-macos.yml         # macOS DMG builds\n│   └── update-homebrew.yml       # Homebrew tap updates\n├── package.json\n├── vite.config.ts\n├── tailwind.config.js\n└── tsconfig.json\n```\n\n---\n\n## Troubleshooting\n\n### \"App is damaged\" or \"Cannot be opened\"\n\nThis happens because the app is not notarized with Apple. Run:\n\n```bash\nxattr -cr /Applications/localhost.app\n```\n\n### Docker containers not showing\n\nMake sure Docker Desktop is running. localhost connects to `/var/run/docker.sock` -- if Docker is not running, container detection is silently skipped.\n\n### Processes not grouping correctly\n\nCheck that your projects directory setting matches where your projects actually live. The default is `~/Desktop/Projects`. Processes with working directories outside this path will be grouped under \"Other\" or by their nearest project marker.\n\n---\n\n## Contributing\n\nContributions are welcome. To get started:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feat/my-feature`)\n3. Make your changes\n4. Run `pnpm lint` to check for type errors\n5. Commit using conventional format (`feat(scanner): add redis detection`)\n6. Open a pull request\n\nFor bugs, please open an issue with steps to reproduce.\n\n---\n\n## License\n\nMIT License -- see [LICENSE](LICENSE) for details.\n\n---\n\nBuilt by [Efe Celik](https://github.com/efeecllk) with [Tauri](https://tauri.app).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefeecllk%2Flocalhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefeecllk%2Flocalhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefeecllk%2Flocalhost/lists"}