{"id":18469780,"url":"https://github.com/valen-h/admin-panel-ii","last_synced_at":"2025-04-08T10:32:53.172Z","repository":{"id":143795684,"uuid":"186159356","full_name":"Valen-H/Admin-Panel-II","owner":"Valen-H","description":"A process admin panel with support for WebDAV and CLI commands (\u0026 websockets etc...)","archived":false,"fork":false,"pushed_at":"2019-11-17T17:32:25.000Z","size":1101,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"staging","last_synced_at":"2025-03-23T11:33:12.547Z","etag":null,"topics":["admin","commands","panel","socket-io","syscall","typescript","vale-server-ii","webdav","ws"],"latest_commit_sha":null,"homepage":null,"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/Valen-H.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-11T16:58:04.000Z","updated_at":"2021-08-23T07:50:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2a2bc8e-d492-4fe4-bf68-71ee66c16035","html_url":"https://github.com/Valen-H/Admin-Panel-II","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FAdmin-Panel-II","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FAdmin-Panel-II/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FAdmin-Panel-II/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FAdmin-Panel-II/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valen-H","download_url":"https://codeload.github.com/Valen-H/Admin-Panel-II/tar.gz/refs/heads/staging","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824290,"owners_count":21002242,"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":["admin","commands","panel","socket-io","syscall","typescript","vale-server-ii","webdav","ws"],"created_at":"2024-11-06T10:11:42.370Z","updated_at":"2025-04-08T10:32:53.164Z","avatar_url":"https://github.com/Valen-H.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"  \n# admin-panel-ii  \n  \n  A management panel for Node processes. :zap:  \n  \n  ***  \n  \n## TODO  \n  \n* [x] Add proccess memory stats (client + back)  \n* [x] CLI CMD  \n* [ ] WebDAV CMD [halfway]  \n* [x] WS CMD  \n  \n## Commands  \n  \n* [x] `kill[ interval\\\u003cNumber\u003e [exitCode\\\u003cNumber\u003e]]`  \n* [x] `exit` - Closes CLI.  \n* [x] `clear` - Clears console.  \n* [x] `sock event\u003cString\u003e message\u003cString\u003e` - Sends message to sockets.  \n* [x] `help[ command\u003cString\u003e]` - Receive help for a command.  \n* [x] `catch` - Catch unknown command errors.  \n* [x] `eval` - Evaluate a JS snippet.  \n* [x] `syscall code\u003cString\u003e` - *new*, perform a system call.  \n  \n\u003e Type `.h` in CLI for more (accurate) details.  \n  \n## Usage  \n  \n```js\nconst Panel = require(\"adm-panel2\");\n\nPanel.setup().then(panel =\u003e {\n    panel.toggleStats(); //every 1s, take memory snap\n    panel.cli({ input: process.stdin, output: process.stdout }); //type '.' (default prefix) and hit 'tab' for completion.\n    panel.start().then(() =\u003e console.log(\"Started.\")); //hosted by default on http://admin:adm@localhost:9999/panel\n});\n```  \n  \n### Latest features  \n  \n* Keeps logs history.  \n  \n### External Dependencies  \n  \n* chalk (optional)  \n* fs-extra  \n* socket.io  \n* *client-side*: Plotly.js  \n  \n\u003e Based on [`vale-server-ii`](https://github.com/Valen-H/Server-II)  \n  \n### Modules that depend on `adm-panel2`  \n  \n* [Vale3](#https://github.com/Valen-H/Vale3)  \n  \n\u003e A trick for process restarting:\n\u003e Add a `restarting` field in `scripts` of `package.json` with body of `\"restarting\": \"node index.js || npm run restarting\"`, this way you can have the system relaunch your task upon non-zero exit codes. Reload the process by having an `fs.Watcher` watch for file changes and emitting a `.kill 0 2` to the panel.  \n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalen-h%2Fadmin-panel-ii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalen-h%2Fadmin-panel-ii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalen-h%2Fadmin-panel-ii/lists"}