{"id":20461174,"url":"https://github.com/moroboxai/moroboxai-editor-web","last_synced_at":"2026-04-19T00:03:48.917Z","repository":{"id":57701702,"uuid":"483934825","full_name":"moroboxai/moroboxai-editor-web","owner":"moroboxai","description":"Embeddable code editor for coding AIs for MoroboxAI on the web","archived":false,"fork":false,"pushed_at":"2023-11-01T07:49:02.000Z","size":1656,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T02:16:48.589Z","etag":null,"topics":["code-editor","javascript","library","moroboxai","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/moroboxai.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T06:36:17.000Z","updated_at":"2023-11-01T17:26:44.000Z","dependencies_parsed_at":"2024-11-15T12:37:19.866Z","dependency_job_id":null,"html_url":"https://github.com/moroboxai/moroboxai-editor-web","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/moroboxai%2Fmoroboxai-editor-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-editor-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-editor-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-editor-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moroboxai","download_url":"https://codeload.github.com/moroboxai/moroboxai-editor-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242017594,"owners_count":20058464,"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":["code-editor","javascript","library","moroboxai","typescript"],"created_at":"2024-11-15T12:23:54.803Z","updated_at":"2026-04-19T00:03:48.468Z","avatar_url":"https://github.com/moroboxai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moroboxai-editor-web\n\n[![NPM version](https://img.shields.io/npm/v/moroboxai-editor-web.svg)](https://www.npmjs.com/package/moroboxai-editor-web)\n![Node.js CI](https://github.com/moroboxai/moroboxai-editor-web/workflows/Node.js%20CI/badge.svg)\n[![gitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/moroboxai/moroboxai-editor-web/blob/master/LICENSE)\n[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/moroboxai/moroboxai-editor-web.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/moroboxai/moroboxai-editor-web/context:javascript)\n[![Total Alerts](https://img.shields.io/lgtm/alerts/g/moroboxai/moroboxai-editor-web.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/moroboxai/moroboxai-editor-web/alerts)\n\nEmbeddable code editor for coding AIs for [MoroboxAI](https://github.com/moroboxai) on the web.\n\n## Install\n\nUsing npm:\n\n```bash\nnpm install moroboxai-editor-web --save\n```\n\nOr:\n\n```bash\ngit clone https://github.com/moroboxai/moroboxai-editor-web.git\ncd moroboxai-editor-web\nnpm i\nnpm run build\n```\n\n## Usage\n\nCreate a `sample.html` file in the `moroboxai-editor-web` folder:\n\n```html\n\u003chtml\u003e\n \u003cdiv id=\"editor\"\u003e\u003c/div\u003e \n  \n \u003cscript type=\"text/javascript\" src=\"./lib/umd/moroboxai-editor-web.js\"\u003e\u003c/script\u003e\n \u003cscript type=\"text/javascript\"\u003e\n  // Initialize the editor on our div\n  const editor = MoroboxAIEditor.init({\n   element: document.getElementById(\"editor\"),\n   value: 'function foo() {\\n  console.log(\"foo\");\\n}\\n',\n   width: \"500px\",\n   height: \"400px\"\n  });\n \u003c/script\u003e\n\u003c/html\u003e\n```\n\nOpen `sample.html` in your browser and check the console output.\n\n## Arguments\n\n| Name   |      Type      |  Default |  Description |\n|:----------|:-------------|:------|:------|\n| element | Element || DOM element to attach the editor to |\n| language | string | javascript | Selected language |\n| value | string || Initial content of the editor |\n| width | string || Width of the `div` element |\n| height | string || Height of the `div` element |\n| onLoad | func | noop | **Signature: function(value: string) =\u003e void** \u003cbr/\u003e Function called when the Load button is clicked |\n| onUnload | func | noop | **Signature: function() =\u003e void** \u003cbr/\u003e Function called when the Unload button is clicked |\n\n## License\n\nThis content is released under the [MIT](http://opensource.org/licenses/MIT) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoroboxai%2Fmoroboxai-editor-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoroboxai%2Fmoroboxai-editor-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoroboxai%2Fmoroboxai-editor-web/lists"}