{"id":18738990,"url":"https://github.com/gaubee/mterminal-remote-server","last_synced_at":"2025-11-18T12:30:14.750Z","repository":{"id":57304667,"uuid":"132318393","full_name":"Gaubee/mterminal-remote-server","owner":"Gaubee","description":"work with mterminal. to send your applaction's logs to mter server to print.","archived":false,"fork":false,"pushed_at":"2018-05-18T02:40:05.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T03:31:02.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gaubee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-06T08:00:37.000Z","updated_at":"2021-12-18T09:35:10.000Z","dependencies_parsed_at":"2022-09-20T19:24:22.535Z","dependency_job_id":null,"html_url":"https://github.com/Gaubee/mterminal-remote-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fmterminal-remote-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fmterminal-remote-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fmterminal-remote-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaubee%2Fmterminal-remote-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gaubee","download_url":"https://codeload.github.com/Gaubee/mterminal-remote-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239616131,"owners_count":19668992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T15:32:22.222Z","updated_at":"2025-11-18T12:30:14.473Z","avatar_url":"https://github.com/Gaubee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mterminal-remote-server\n\ncapture your terminal logs, and send to network by udp.\nyou can use [mter](https://www.npmjs.com/package/mter) to get those logs and print.\n\n## why\n\nNormally, your nodejs application will mix the logs of the master process and the cluster process in one terminal to print. In development mode, this can cause confusion.\nWe need need a tool to separate these logs into different places for printing. **so here you are.**\n\n## usage\n\n1. write your code.\n```ts\nimport { setupMter } from '../src/';\n\nsetupMter();\n```\n\n2. install and run [mter](https://www.npmjs.com/package/mter).\n```shell\n# install \nnpm i -g mter\n# start the server\nmter \n```\n\n3. start you app.\n```shell\nMTER=\"*\" node your-app.js\n```\n\n\n\n##  API\n\n#### setupMter(opt?:MterOptions)\n\n#### MterOptions\n* keep_stdout?: boolean,\n* process_name?: string,\n* recipient_port?: number,\n* heartbeat_udp_port?: number,\n* default_bind_udp_port?: number,\n* bind_udp_port_lock_file_name?: string,\n\n\u003e normally, you only need config: `keep_stdout`. if true, the log will keep print in you terminal, and broadcast at the same time.\n\n\n\u003e in [mter](https://www.npmjs.com/package/mter) api, you can get the debugging process name by api:`http://127.0.0.1:4510/api/wss`. but you maybe see like this:`{\"list\":[{\"path\":\"/wss/4869\",\"process_name\":\"MASTER-test2.ts-9885\"},{\"path\":\"/wss/4870\",\"process_name\":\"CLUSTER-test2.ts-9891\"}]}`, you can config the `process_name` to change. this can improve readability.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaubee%2Fmterminal-remote-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaubee%2Fmterminal-remote-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaubee%2Fmterminal-remote-server/lists"}