{"id":20762015,"url":"https://github.com/donkeyclip/motorcortex-code-typing","last_synced_at":"2026-04-18T23:33:18.152Z","repository":{"id":37273882,"uuid":"230670030","full_name":"donkeyclip/motorcortex-code-typing","owner":"donkeyclip","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-09T20:43:58.000Z","size":19985,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-09T21:26:21.499Z","etag":null,"topics":["code-typing","codetyping","motorcortex","motorcortex-plugin"],"latest_commit_sha":null,"homepage":"","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/donkeyclip.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-12-28T21:31:16.000Z","updated_at":"2024-02-06T15:36:41.000Z","dependencies_parsed_at":"2024-01-29T14:13:41.157Z","dependency_job_id":"67969813-1928-4e92-9834-43495a326669","html_url":"https://github.com/donkeyclip/motorcortex-code-typing","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-code-typing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-code-typing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-code-typing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-code-typing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeyclip","download_url":"https://codeload.github.com/donkeyclip/motorcortex-code-typing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243076961,"owners_count":20232514,"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-typing","codetyping","motorcortex","motorcortex-plugin"],"created_at":"2024-11-17T10:28:39.914Z","updated_at":"2025-12-24T23:10:17.546Z","avatar_url":"https://github.com/donkeyclip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MotorCortex-Code-Typing\n\n**Table of Contents**\n\n- [MotorCortex-Code-Typing](#motorcortex-code-typing)\n  - [Demo](#demo)\n- [Intro / Features](#intro--features)\n- [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Importing and Loading](#importing-and-loading)\n- [Creating Incidents](#creating-incidents)\n  - [CodeEditor Clip](#codeeditor-clip)\n  - [WriteCode](#writecode)\n- [Adding Incidents in your clip](#adding-incidents-in-your-clip)\n- [Contributing](#contributing)\n- [License](#license)\n- [Sponsored by](#sponsored-by)\n\n## Demo\n\n[Check it out here](https://donkeyclip.github.io/motorcortex-code-typing/demo/)\n\n# Intro / Features\nMotorCortex-Code-Typing is the right plugin to make coding clips. It renders your clip as a code editor.\n\nThe Plugin exposes two Incidents in total:\n* the CodeEditor Clip\n* the WriteCode Incident\n\n# Getting Started\n\n## Installation\n\n```bash\n$ npm install --save @donkeyclip/motorcortex-code-typing\n# OR\n$ yarn add @donkeyclip/motorcortex-code-typing\n```\n\n## Importing and loading\n\n```javascript\nimport { loadPlugin } from \"@donkeyclip/motorcortex\";\nimport MCCodeTyping from \"@donkeyclip/motorcortex-code-typing\";\nconst CodeTypingPlugin = loadPlugin(MCCodeTyping);\n```\n\n# Creating Incidents\n\n## CodeEditor Clip\nThe Clip is used to create a new Code Editor and the parameters it accepts a number of parameters:\n```javascript\nconst CodeEditor = new CodeTypingPlugin.Clip({\n    darkTheme: true,\n    lineNumbers: true,\n    readOnly: false\n}, {\n    host: document.getElementById('clip-container'),\n    containerParams: { width: '800px', height: '800px' }\n});\n```\n### CodeEditor Clip Attrs\n\n| Name        |                                             Are                                              | Values  |\n| ---------   | :------------------------------------------------------------------------------------------: | ------: |\n| darkTheme   | set to true the Editor renders in dark mode, otherwise it renders in the default light theme (optional, defaults to false)| boolean |\n| lineNumbers |                   set to true if you want the editor to show line numbers (optional, defaults to false)                   | boolean |\n| readOnly    |               set to true if you want the editor to render on read only mode (optional, defaults to false)                | boolean |\n\n## WriteCode\nThe WriteCode Incident is used to write code on a Code Editor\n```javascript\nconst CodeEditor = new CodeTypingPlugin.Clip({\n    darkTheme: true,\n    lineNumbers: true,\n    readOnly: false\n}, {\n    host: document.getElementById('clip-container'),\n    containerParams: { width: '800px', height: '800px' }\n});\n\nconst WriteSthg = new CodeTypingPlugin.WriteCode({\n    animatedAttrs: {\n        code: code\n    }\n}, {\n    duration: 12000,\n    selector: \"!#editor\"\n});\n```\n\n### WriteCode Attrs\n| Name   |                              Are                          | Values  |\n| -------| :-------------------------------------------------------: | ------: |\n| code   |   the code which is going to be typed on the Code Editor  | srting |\n\n#### IMPORTANT\n\nThe selector should always be \"!#editor\". \n\n# Adding Incidents in your clip\n\n```javascript\nCodeEditorIncident.addIncident(WriteCodeIncident, startTime);\n```\n\n# Contributing \n\nIn general, we follow the \"fork-and-pull\" Git workflow, so if you want to submit patches and additions you should follow the next steps:\n1.\t**Fork** the repo on GitHub\n2.\t**Clone** the project to your own machine\n3.\t**Commit** changes to your own branch\n4.\t**Push** your work back up to your fork\n5.\tSubmit a **Pull request** so that we can review your changes\n\n# License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\n# Sponsored by\n[\u003cimg src=\"https://presskit.donkeyclip.com/logos/donkey%20clip%20logo.svg\" width=250\u003e\u003c/img\u003e](https://donkeyclip.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-code-typing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeyclip%2Fmotorcortex-code-typing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-code-typing/lists"}