{"id":13788077,"url":"https://github.com/StyraInc/codemirror-rego","last_synced_at":"2025-05-12T02:32:49.899Z","repository":{"id":35200287,"uuid":"200741697","full_name":"StyraInc/codemirror-rego","owner":"StyraInc","description":"A basic rego mode for CodeMirror and the base key-map that we use in our product.","archived":false,"fork":false,"pushed_at":"2023-10-19T18:52:04.000Z","size":293,"stargazers_count":6,"open_issues_count":8,"forks_count":5,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-24T04:47:45.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StyraInc.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":"2019-08-05T23:17:46.000Z","updated_at":"2025-04-11T12:46:56.000Z","dependencies_parsed_at":"2024-06-18T21:53:04.370Z","dependency_job_id":null,"html_url":"https://github.com/StyraInc/codemirror-rego","commit_stats":{"total_commits":22,"total_committers":5,"mean_commits":4.4,"dds":0.6818181818181819,"last_synced_commit":"196491604edbd5f8c3df021cc713bbc698262dbb"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StyraInc%2Fcodemirror-rego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StyraInc%2Fcodemirror-rego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StyraInc%2Fcodemirror-rego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StyraInc%2Fcodemirror-rego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StyraInc","download_url":"https://codeload.github.com/StyraInc/codemirror-rego/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253662755,"owners_count":21944125,"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-08-03T21:00:36.331Z","updated_at":"2025-05-12T02:32:49.600Z","avatar_url":"https://github.com/StyraInc.png","language":"JavaScript","funding_links":[],"categories":["IDE and Editor Integrations"],"sub_categories":["Datasource Integrations Blogs and Articles"],"readme":"# Rego Codemirror Addons\n\nRego mode and minimal key map for CodeMirror that we use at Styra.\n\n## Usage\n\nSimply import either the mode, key map, or both after importing CodeMirror. The key map also requires some additional addons to be imported first:\n\n```javascript\nimport CodeMirror from 'codemirror'\n\n// Other CodeMirror addons...\n\nimport 'codemirror-rego/mode' // You can now use mode: 'rego'\n// and/or\nimport 'codemirror/addon/comment/comment'\nimport 'codemirror/addon/edit/matchbrackets'\nimport 'codemirror-rego/key-map' // You can now use keyMap: 'styra'\n```\n\n## Development\n\nFirst run `npm install` in the project root directory to ensure all dependencies are fetched and the project is built.\n\nNext, you may run `webpack` in the `hack` directory. This will build a version of the Node module adapted for web browsers\n(found in the `hack/dist` directory). Once that is done, open the `hack/index.html` file in your browser of choice, and you\nshould see an instance of the CodeMirror editor, with syntax highlighting enabled for Rego.\n\n## Community\n\nFor questions, discussions and announcements related to Styra products, services and open source projects, please join the Styra community on [Slack](https://join.slack.com/t/styracommunity/shared_invite/zt-1p81qz8g4-t2OLKbvw0J5ibdcNc62~6Q)!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStyraInc%2Fcodemirror-rego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStyraInc%2Fcodemirror-rego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStyraInc%2Fcodemirror-rego/lists"}