{"id":22442446,"url":"https://github.com/socsieng/ace-custom-element","last_synced_at":"2026-03-14T21:17:09.401Z","repository":{"id":40282224,"uuid":"283835804","full_name":"socsieng/ace-custom-element","owner":"socsieng","description":"Custom element wrapper for the ace editor (https://ace.c9.io/)","archived":false,"fork":false,"pushed_at":"2023-04-24T18:24:41.000Z","size":590,"stargazers_count":5,"open_issues_count":9,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T05:58:20.150Z","etag":null,"topics":["ace","ace-editor","custom-element","web-component"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/socsieng.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-07-30T17:23:33.000Z","updated_at":"2023-03-17T19:21:18.000Z","dependencies_parsed_at":"2024-06-18T21:21:27.000Z","dependency_job_id":"0056024b-3653-4c1a-9b56-89b60b0bb12e","html_url":"https://github.com/socsieng/ace-custom-element","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":"0.36363636363636365","last_synced_commit":"5d78f1eaa9a85dd2bc3a5ac5c99ba8c65aa8ea6c"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/socsieng/ace-custom-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socsieng%2Face-custom-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socsieng%2Face-custom-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socsieng%2Face-custom-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socsieng%2Face-custom-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socsieng","download_url":"https://codeload.github.com/socsieng/ace-custom-element/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socsieng%2Face-custom-element/sbom","scorecard":{"id":835702,"data":{"date":"2025-08-11","repo":{"name":"github.com/socsieng/ace-custom-element","commit":"5d78f1eaa9a85dd2bc3a5ac5c99ba8c65aa8ea6c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bump.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/bump.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/socsieng/ace-custom-element/publish.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:27","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:49","Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:18","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/bump.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T18:59:16.796Z","repository_id":40282224,"created_at":"2025-08-23T18:59:16.796Z","updated_at":"2025-08-23T18:59:16.796Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30517985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T19:51:21.629Z","status":"ssl_error","status_checked_at":"2026-03-14T19:51:12.959Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ace","ace-editor","custom-element","web-component"],"created_at":"2024-12-06T02:19:10.113Z","updated_at":"2026-03-14T21:17:09.371Z","avatar_url":"https://github.com/socsieng.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ace Custom Element\n\n[![npm version](https://badge.fury.io/js/ace-custom-element.svg)](https://www.npmjs.com/package/ace-custom-element)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/ace-custom-element)\n\nThis is a custom element wrapper for the [Ace code editor](https://ace.c9.io/).\n\nThe primary reason for this package over other similar packages is to make it easier to use with by including a single\nscript resource so that it can be accessed using services like unpkg.com.\n\n## Usage\n\n### CDN\n\nUsing a CDN like unpkg.com:\n\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003cstyle\u003e\n      ace-editor {\n        height: 300px;\n      }\n    \u003c/style\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n\n```html\n\u003c!-- pin to a specific version if required --\u003e\n\u003cscript type=\"module\" src=\"https://unpkg.com/ace-custom-element@latest/dist/index.min.js\"\u003e\u003c/script\u003e\n\n\u003cace-editor theme=\"ace/theme/monokai\" value=\"console.log('hello world');\"\u003e\u003c/ace-editor\u003e\n```\n\nTry it out on [JSFiddle](https://jsfiddle.net/4ejdon81/).\n\n### Locally\n\nUsing a local file:\n\n```\nnpm install ace-custom-element\n```\n\n```html\n\u003cscript type=\"module\" src=\"./node_modules/ace-custom-element/dist/index.min.js\"\u003e\u003c/script\u003e\n\n\u003cace-editor theme=\"ace/theme/monokai\" value=\"console.log('hello world');\"\u003e\u003c/ace-editor\u003e\n```\n\n## Supported properties\n\n| Property                  | Attribute                    | Type                              | Default value                                 | Description                                                        |\n| :------------------------ | :--------------------------- | :-------------------------------- | :-------------------------------------------- | :----------------------------------------------------------------- |\n| `editor`                  | -                            | `Ace.Editor`                      | -                                             | A reference to the ace editor.                                     |\n| `value`                   | `value`                      | `string`                          | `\"\"`                                          | Editor text value.                                                 |\n| `mode`                    | `mode`                       | `string`                          | `ace/mode/javascript`                         | Editor mode.                                                       |\n| `theme`                   | `theme`                      | `string`                          | `ace/theme/eclipse`                           | Editor theme.                                                      |\n| `tabSize`                 | `tab-size`                   | `number`                          | `2`                                           | Editor tab size.                                                   |\n| `readonly`                | `readonly`                   | `boolean`                         | `false`                                       | Places editor in readonly mode.                                    |\n| `softTabs`                | `soft-tabs`                  | `boolean`                         | `false`                                       | Sets editor to use soft tabs.                                      |\n| `wrap`                    | `wrap`                       | `boolean`                         | `false`                                       | Sets editor to wrap text.                                          |\n| `wrap`                    | `wrap`                       | `boolean`                         | `false`                                       | Sets editor to wrap text.                                          |\n| `valueUpdateMode`         | `value-update-mode`          | `\"start\"`, `\"end\"`, or `\"select\"` | `\"select\"`                                    | Specifies the selection behavior after the value has been updated. |\n| `hideGutter`              | `hide-gutter`                | `boolean`                         | `false`                                       | Hides the editor gutter.                                           |\n| `hideGutterLineHighlight` | `hide-gutter-line-highlight` | `boolean`                         | `false`                                       | Hides gutter highlight for the current line.                       |\n| `hidePrintMargin`         | `hide-print-margin`          | `boolean`                         | `false`                                       | Hides the print margin (vertical ruler).                           |\n| `basePath`                | `base-path`                  | `string`                          | `ace/` folder relative to module import path. | Specifies the location to load additional ACE resources.           |\n\n## Supported events\n\n| Event    | Description                                                                  |\n| -------- | ---------------------------------------------------------------------------- |\n| `change` | Triggered when the editor's value changes (will trigger for each keystroke). |\n| `ready`  | Triggered after the ace editor has been initialized.                         |\n| `blur`   | Triggered when the editor loses focus.                                       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocsieng%2Face-custom-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocsieng%2Face-custom-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocsieng%2Face-custom-element/lists"}