{"id":18889493,"url":"https://github.com/eoli3n/shellcast","last_synced_at":"2026-04-11T19:33:38.545Z","repository":{"id":113440780,"uuid":"116979935","full_name":"eoli3n/shellcast","owner":"eoli3n","description":"Easy expose shell as interfaced webservices","archived":false,"fork":false,"pushed_at":"2025-01-12T12:09:32.000Z","size":22511,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T14:02:17.706Z","etag":null,"topics":["command-line","command-line-interface","expose","frontend","frontend-infra","frontend-web","generator","highlight","nodejs","realtime","shell","socket-io","stream","webservice","yml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/eoli3n.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-10T16:08:17.000Z","updated_at":"2025-03-14T13:33:28.000Z","dependencies_parsed_at":"2024-11-08T07:49:16.554Z","dependency_job_id":"e43b685a-df95-44d1-9bf2-6256712a9a77","html_url":"https://github.com/eoli3n/shellcast","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eoli3n/shellcast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eoli3n%2Fshellcast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eoli3n%2Fshellcast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eoli3n%2Fshellcast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eoli3n%2Fshellcast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eoli3n","download_url":"https://codeload.github.com/eoli3n/shellcast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eoli3n%2Fshellcast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31693272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["command-line","command-line-interface","expose","frontend","frontend-infra","frontend-web","generator","highlight","nodejs","realtime","shell","socket-io","stream","webservice","yml"],"created_at":"2024-11-08T07:49:11.840Z","updated_at":"2026-04-11T19:33:38.519Z","avatar_url":"https://github.com/eoli3n.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShellCast\n\nA node app to stream multiple shell output realtime with args and highlighting.  \n\n## Config\n\nSee [config-sample.yml](config-sample.yml)\n\n### Rainbow\n\n[tests/rainbow.sh](tests/rainbow.sh)\n\n#### Console\n\nhttp://localhost:3000/shellcast/rainbow\n![Alt Text](tests/rainbow.gif)\n\n#### Plain\n\n```bash\ncurl -s \"http://localhost:3000/shellcast/rainbow/plain\"\n```\n\n![Alt Text](tests/rainbow_plain.gif)\n\n### Args\n\n[tests/args.sh](tests/args.sh)\n\n#### Console\n\nhttp://localhost:3000/shellcast/args/test?hostname=foo\u0026ip=10.0.0.1\u0026mac=00:11:22:33:44:55\u0026password=suburlpass\n\n![Alt Text](tests/args.png)\n\n#### Plain\n\n```bash\ncurl -s \"http://localhost:3000/shellcast/args/test/plain?hostname=foo\u0026ip=10.0.0.1\u0026mac=00:11:22:33:44:55\u0026password=suburlpass\"\n```\n\n![Alt Text](tests/args_plain.png)\n\n## Installation\n```\ngit clone https://github.com/eoli3n/shellcast\ncd shellcast\nnpm install\ncp config-sample.yml config.yml\n```\n## Run\n```\nSUBDIR=shellcast NODE_PORT=3000 node shellcast.js config.yml\n```\n\n### Reverse proxy with nginx\n```\nmkdir -p /opt/shellcast\n#install\n```\n```\ncat \u003c\u003c EOF \u003e /etc/nginx/sites-available/shellcast\nserver {\n    root /var/www/html;\n    listen      443 ssl;\n\n    ssl_certificate      /etc/ssl/cert.crt\n    ssl_certificate_key  /etc/ssl/cert.key;\n    ssl_session_timeout 5m;\n    ssl_protocols        TLSv1 TLSv1.1 TLSv1.2;\n    ssl_ciphers          HIGH:!ADH:!MD5;\n    ssl_prefer_server_ciphers on;\n\n    # use SUBDIR here\n    location /shellcast/ {\n        add_header Access-Control-Allow-Origin *;\n        proxy_set_header X-Real-IP $remote_addr;                      \n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                                              \n        proxy_set_header X-Forwarded-Proto $scheme;\n        # use NODE_PORT here\n        proxy_pass http://localhost:3000;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection 'upgrade';\n        proxy_set_header Host $host;\n        proxy_cache_bypass $http_upgrade;\n        proxy_temp_path /tmp/data;\n    }\n}\nEOF\n```\n\n```\nln -s /etc/nginx/sites-available/shellcast /etc/nginx/sites-enabled/shellcast\nsystemctl restart nginx\n```\n\n### Start NodeJS app with systemd\nCreate a service file in /etc/systemd/system/shellcast.service\n\n```\n[Unit]\nDescription=shellcast.js\nAfter=network.target\n\n[Service]\nType=simple\nExecStartPost=/bin/sh -c 'umask 022; pgrep node \u003e /var/run/shellcast.pid'\nEnvironment=NODE_PORT=3000\nEnvironment=SUBDIR=shellcast\nWorkingDirectory=/opt/shellcast\nUser=root\nExecStart=/usr/bin/node /opt/shellcast/shellcast.js /opt/shellcast/config.yml\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feoli3n%2Fshellcast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feoli3n%2Fshellcast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feoli3n%2Fshellcast/lists"}