{"id":18084786,"url":"https://github.com/coderofsalvation/hubot-script-http","last_synced_at":"2025-07-24T16:20:18.878Z","repository":{"id":21067464,"uuid":"24366891","full_name":"coderofsalvation/hubot-script-http","owner":"coderofsalvation","description":"run all hubot commands thru the browser or using bash terminal","archived":false,"fork":false,"pushed_at":"2020-05-28T19:07:24.000Z","size":10,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T20:09:39.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2014-09-23T10:28:24.000Z","updated_at":"2020-05-28T19:07:26.000Z","dependencies_parsed_at":"2022-07-27T01:30:08.299Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/hubot-script-http","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/coderofsalvation%2Fhubot-script-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fhubot-script-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fhubot-script-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fhubot-script-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/hubot-script-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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-10-31T15:08:11.351Z","updated_at":"2025-04-12T20:09:46.278Z","avatar_url":"https://github.com/coderofsalvation.png","language":"CoffeeScript","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"hubot-script-http\n=================\n\nSimple remote execution of hubot commands using bash,\nwithout the need of an extra rest- or shelladapter.\n\n# Installation\n\n    npm install\n\n# URLS:\n\n    /cmd/help\n    /cmd/mustache/me/mark\n    and so on\n\n# Commands:\n\nyou need to add your ip in order to get access :\n\n    hubot ip show - shows ip addresses which have http GET-access \n    hubot ip add \u003cip\u003e - adds ip ( '*' allows everybody )\n    hubot ip flush - clears the ip table\n\n# Terminal powa!\n\nJust put this little shellscript somewhere ('hubotbash' e.g.)\n\n    #!/bin/bash \n    PORT=5555\n    URL=\"http://localhost:$PORT/cmd/$*\"\n    URL=\"${URL// //}\"\n    curl \"$URL\"\n    \nThen do this:\n\n    $ hubotbash help | grep mustache\n    hubot mustache me \u003cquery\u003e - Searches Google Images for the specified query \n    hubot mustache me \u003curl\u003e - Adds a mustache to the specified URL.\n\nSee? Terminal powa!\n\nNOTE: for a more robust/secure shellscript look \u003ca target=\"_blank\" href=\"https://gist.github.com/coderofsalvation/b1aaf0a6de5028eb294a\" \u003ehere\u003c/a\u003e\n\n# Why\n\nI made this since I could only find an example which demonstrated\nposting something to a room.\nThis however, gives full access to the hubot commands.\nWhich is nice, because bash / curl / awk are my daily tools\nto work/massage data with.\n\n# Security \n\nThis is a proof of concept, therefore its not totally secure when you are \nnot using https + hubot's express authentication (using env variables).\nSince not everybody will go thru this labour of setting this up, I've included\n a pseudo ip-security.\n\nAnyways, try adding these express environment vars to get basic auth going:\n\n* EXPRESS_PASSWORD=yourpass\n* EXPRESS_USER=admin\n\n# Known issues\n\n* requesting non-existing commands can cause minor hickups on the adapter (since the adapter is temporarely overridden by httprequests).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fhubot-script-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fhubot-script-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fhubot-script-http/lists"}