{"id":17956377,"url":"https://github.com/b0o/ndbproxy","last_synced_at":"2026-05-01T09:31:34.624Z","repository":{"id":88329385,"uuid":"436476972","full_name":"b0o/ndbproxy","owner":"b0o","description":"A proxy/bridge that runs between a Node.JS debug server and a Chromium devtools client and adds some additional features.","archived":false,"fork":false,"pushed_at":"2022-03-20T23:53:50.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T17:19:01.873Z","etag":null,"topics":["chrome-devtools","chrome-devtools-protocol","debugger","debugging","devtools","inspector","nodejs","nodejs-debug","nodejs-inspect"],"latest_commit_sha":null,"homepage":"","language":"Python","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/b0o.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}},"created_at":"2021-12-09T04:02:56.000Z","updated_at":"2022-10-21T02:28:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"444559af-1260-4393-b3e0-a75122c075f4","html_url":"https://github.com/b0o/ndbproxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/b0o/ndbproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fndbproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fndbproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fndbproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fndbproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b0o","download_url":"https://codeload.github.com/b0o/ndbproxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fndbproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","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":["chrome-devtools","chrome-devtools-protocol","debugger","debugging","devtools","inspector","nodejs","nodejs-debug","nodejs-inspect"],"created_at":"2024-10-29T10:37:34.914Z","updated_at":"2026-05-01T09:31:34.595Z","avatar_url":"https://github.com/b0o.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ndbproxy [![version](https://img.shields.io/github/v/tag/b0o/ndbproxy?style=flat\u0026color=yellow\u0026label=version\u0026sort=semver)](https://github.com/b0o/ndbproxy/releases) [![license: MIT](https://img.shields.io/github/license/b0o/ndbproxy?style=flat\u0026color=green)](https://mit-license.org)\n\nA websocket proxy that sits inbetween a Node.JS debug server and a Chromium devtools client for the purpose of adding some additional features:\n\n- A stable URL, no need for a debugger ID, e.g. `devtools://devtools/bundled/js_app.html?v8only=true\u0026ws=localhost:9228`\n- Auto-reconnect to the debug server when it restarts\n- Auto-reload the devtools debugger when the server restarts\n- Optional [mitmproxy](https://github.com/mitmproxy/mitmproxy) integration\n\n### Usage\n\n1. Start ndbproxy: `python ndbproxy.py`\n\n   - Note: ndbproxy listens on `localhost:9228`. Currently this address cannot be configured.\n\n2. Run your node app with the `--inspect` or `--inspect-brk` flag: `node --inspect-brk app.js`\n\n   - Note: ndbproxy expects the debug server to be available at `localhost:9229`. Currently this address cannot be configured.\n\n3. Open the Chromium devtools at `devtools://devtools/bundled/js_app.html?v8only=true\u0026ws=localhost:9228`\n\n### Why?\n\nI find it very annoying that Chromium provides no way to open the Node.js debugger directly from the command line. I also find it annoying that\nit's necessary to specify the debugger ID in the URL and that this ID changes\neach time the node debug server restarts. Finally, I find it annoying that the\ndebugger doesn't automatically reconnect to the debug server when the server\nrestarts. ndbproxy solves all of these annoyances.\n\n### Tips\n\n#### Chromium profile \u0026 shell alias\n\nFor added convenience, I recommend taking a few steps to make launching the Chromium devtools as simple as running a single command.\n\nUnfortunately, Chromium doesn't permit opening a `chrome://` or\n`devtools://` URL from the command line. As a workaround, create a new Chromium\nprofile specifically for use with ndbproxy and set the homepage to the ndbproxy\nURL. Whenever Chromium is launched with this profile, it will open directly\nto a devtools instance pointed at the ndbproxy server.\n\nThen, create a shell alias to launch Chromium with this profile: `alias node-devtools=\"chromium --user-data-dir=$XDG_CONFIG_HOME/chromium-node-inspect\"`,\nwhere `chromium-node-inspect` is the name of the profile.\n\n#### Auto-reloading improvements\n\nIf your node application crashes or exits, you may want it to restart automatically. Use a shell loop to accomplish this:\n\n```sh\nwhile :; do node --inspect-brk app.js; done\n```\n\nTo automatically restart your node app and reload the debugger when your code changes:\n\n```sh\nfind . -not '(' -path ./node_modules -prune ')' -name '*.js' | entr -rds 'while :; do node --inspect-brk app.js; done'\n```\n\n## TODO\n\n- [ ] allow `ndbproxy` to be used as a wrapper for the `node --inspect-brk` command\n- [ ] add command-line arguments to configure listen/serve host:port\n- [ ] reduce verbosity by default, add a `-v` flag\n- [ ] extract mitmproxy integration to a separate file\n- [ ] come up with a better name\n- [ ] detect and prevent reload loops\n- [ ] detect `Waiting for debugger to disconnect`\n\n## Changelog\n\n```\n08 Dec 2021                                                             v0.0.1\n  Initial Release\n```\n\n## License\n\n\u0026copy; 2021 Maddison Hellstrom\n\nReleased under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fndbproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0o%2Fndbproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fndbproxy/lists"}