{"id":18483312,"url":"https://github.com/cloudcmd/cloudcmd-plugin","last_synced_at":"2026-05-15T08:02:59.855Z","repository":{"id":66160140,"uuid":"75184505","full_name":"cloudcmd/cloudcmd-plugin","owner":"cloudcmd","description":"Example of using plugins in Cloud Commander","archived":false,"fork":false,"pushed_at":"2016-12-01T09:56:26.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T20:26:48.894Z","etag":null,"topics":["cloudcmd","javascript","nodejs","plugin","runkit"],"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/cloudcmd.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}},"created_at":"2016-11-30T12:23:29.000Z","updated_at":"2018-05-30T14:35:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e5a594e-077a-41c0-81ad-97affed5ef93","html_url":"https://github.com/cloudcmd/cloudcmd-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudcmd/cloudcmd-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fcloudcmd-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fcloudcmd-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fcloudcmd-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fcloudcmd-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudcmd","download_url":"https://codeload.github.com/cloudcmd/cloudcmd-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fcloudcmd-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33058965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["cloudcmd","javascript","nodejs","plugin","runkit"],"created_at":"2024-11-06T12:35:16.847Z","updated_at":"2026-05-15T08:02:59.820Z","avatar_url":"https://github.com/cloudcmd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Commander Plugin\n\nIf you ever dreamed about having ability to expose functionality of `Cloud Commander`, now your dreams came true:\nwith help of `plugins` field in `options` you can specify client-side js files, that will be loaded strict after load of `Cloud Commander`.\n\n```js\napp.use(cloudcmd({\n    plugins: [\n        __dirname + '/' + 'plugin.js'\n    ]\n}));\n```\n\n![Cloud Commander Plugin](plugin.png)\n\nOn a client we going to embed [RunKit](https://runkit.com/docs/embed \"RunKit\").\nNext code loads necessary files, viewer and puts `RunKit` to viewer.\nLet's take a look at `plugin.js`.\n\n```js\n'use strict';\n\nconst element = document.createElement('div');\n\nexec.series([\n    loadRunKit,\n    notebook,\n    CloudCmd.View,\n    init,\n]);\n\nfunction loadRunKit(fn) {\n    load.js('https://embed.runkit.com', fn);\n}\n\nfunction notebook(fn) {\n    fn();\n    RunKit.createNotebook({\n        element,\n        source: 'js source'\n    });\n}\n\nfunction init() {\n    CloudCmd.View.show(element, {\n        autoSize: true\n    });\n}\n}\n```\n\n# Try at home\n\nYou can try everything on your local host.\nJust clone the repo and start process.\n\n```\ngit clone https://github.com/cloudcmd/cloudcmd-plugin.git\ncd cloudcmd-plugin \u0026\u0026 npm install\nnode index.js\n```\n\n# License\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fcloudcmd-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudcmd%2Fcloudcmd-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fcloudcmd-plugin/lists"}