{"id":50799941,"url":"https://github.com/eyalev/mdevex","last_synced_at":"2026-06-12T18:33:58.372Z","repository":{"id":352623162,"uuid":"1185535733","full_name":"eyalev/mdevex","owner":"eyalev","description":"Minimal web-based tmux client with a plugin-first architecture","archived":false,"fork":false,"pushed_at":"2026-04-20T12:00:38.000Z","size":484,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-20T13:43:07.884Z","etag":null,"topics":["plugin","terminal","tmux","websocket","xterm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/eyalev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-18T17:26:26.000Z","updated_at":"2026-04-20T12:00:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eyalev/mdevex","commit_stats":null,"previous_names":["eyalev/mdevex"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/eyalev/mdevex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyalev%2Fmdevex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyalev%2Fmdevex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyalev%2Fmdevex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyalev%2Fmdevex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyalev","download_url":"https://codeload.github.com/eyalev/mdevex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyalev%2Fmdevex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34258368,"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-12T02:00:06.859Z","response_time":109,"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":["plugin","terminal","tmux","websocket","xterm"],"created_at":"2026-06-12T18:33:57.469Z","updated_at":"2026-06-12T18:33:58.360Z","avatar_url":"https://github.com/eyalev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdevex\n\nA minimal web-based tmux client with a plugin-first architecture.\n\nOpen your tmux sessions in a browser tab. Every feature — tabs, terminal rendering, status bar, settings, touch scrolling — is a plugin, so you can swap pieces out or add your own without forking.\n\n![screencast](docs/media/screencast.gif)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/media/mobile.png\" alt=\"mobile portrait view\" height=\"360\"\u003e\n  \u0026nbsp;\n  \u003cimg src=\"docs/media/landscape.png\" alt=\"mobile landscape view\" height=\"160\"\u003e\n\u003c/p\u003e\n\n## Install\n\n### Global (recommended)\n\n```bash\nnpm install -g mdevex\nmdevex\n```\n\n### From source\n\n```bash\ngit clone https://github.com/eyalev/mdevex.git\ncd mdevex\nnpm install\nnpm start\n```\n\nThen open **http://localhost:7682** in your browser. Your existing tmux sessions appear as tabs.\n\n## Requirements\n\n- Node.js 18+\n- `tmux` on `PATH`\n- Build tools for [`node-pty`](https://github.com/microsoft/node-pty):\n  - Debian/Ubuntu: `sudo apt install build-essential python3`\n  - macOS: `xcode-select --install`\n\n## Configuration\n\n| Env var | Default | Description |\n| --- | --- | --- |\n| `PORT` | `7682` | HTTP/WebSocket port |\n| `MDEVEX_EXTRA_PLUGIN_DIR` | — | Extra directory to scan for plugins |\n\nPer-user settings are persisted to `~/.config/mdevex/settings.json`.\n\n## Plugins\n\nPlugin directories are scanned in this order — later entries override earlier ones by `id`:\n\n1. `\u003cinstall-dir\u003e/core-plugins/` — the seven bundled plugins\n2. `\u003cinstall-dir\u003e/plugins/` — project-bundled user plugins\n3. `~/.mdevex/plugins/` — your personal plugins\n4. `$MDEVEX_EXTRA_PLUGIN_DIR` — optional extra path\n\nA plugin is a directory with a `plugin.json` manifest and up to two code files:\n\n```\nmy-plugin/\n  plugin.json     ← required\n  server.js       ← optional, ES module, default export is the plugin fn\n  client.js       ← optional, IIFE that receives window.mdevex\n```\n\n### Minimal example\n\n```json\n// plugin.json\n{ \"id\": \"hello\", \"name\": \"Hello\", \"description\": \"Says hi\" }\n```\n\n```js\n// client.js\n(function (api) {\n  const el = document.createElement('span');\n  el.textContent = '👋';\n  api.slots['toolbar-right'].appendChild(el);\n\n  api.on('session-changed', ({ session }) =\u003e {\n    console.log('switched to', session);\n  });\n})(window.mdevex);\n```\n\n```js\n// server.js\nexport default function ({ app, wss, eventBus, pluginDir, manifest }) {\n  app.get('/api/hello', (_req, res) =\u003e res.json({ ok: true }));\n\n  eventBus.on('ws-connect', ({ session }) =\u003e {\n    console.log('ws opened for', session);\n  });\n}\n```\n\nFull plugin API (events, UI slots, client methods): see [plugins/README.md](plugins/README.md).\n\n### Bundled core plugins\n\n| Plugin | Purpose |\n| --- | --- |\n| `tmux-backend` | WebSocket ↔ PTY ↔ tmux bridge |\n| `xterm` | xterm.js terminal renderer |\n| `tab-bar` | Session list and tab switching |\n| `status-bar` | Bottom status line |\n| `settings-panel` | Overlay for user settings |\n| `font-size` | `+` / `−` controls |\n| `touch-scroll` | Mobile touch scrolling |\n\nRead them in [`core-plugins/`](core-plugins/) as reference implementations.\n\n## Development\n\n```bash\nnpm install\nnpm start                # runs on PORT=7682\nnpm test                 # Playwright: starts a throwaway server on 7683\n```\n\nThe test suite spins up isolated tmux sessions (`wa-test-*`), boots the server, and asserts the core flows (tab switching, terminal data, resize, auto-reconnect, plugin loading). Tear-down kills the sessions.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyalev%2Fmdevex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyalev%2Fmdevex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyalev%2Fmdevex/lists"}