{"id":19011598,"url":"https://github.com/graphql-editor/hydra-ide","last_synced_at":"2026-02-20T00:02:10.041Z","repository":{"id":57269842,"uuid":"353333855","full_name":"graphql-editor/hydra-ide","owner":"graphql-editor","description":"React wrapped monaco editor used in all graphql editor repositories","archived":false,"fork":false,"pushed_at":"2021-04-19T14:18:28.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-29T08:49:59.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/graphql-editor.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}},"created_at":"2021-03-31T11:33:30.000Z","updated_at":"2023-05-01T10:27:09.000Z","dependencies_parsed_at":"2022-09-02T12:30:58.108Z","dependency_job_id":null,"html_url":"https://github.com/graphql-editor/hydra-ide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graphql-editor/hydra-ide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fhydra-ide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fhydra-ide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fhydra-ide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fhydra-ide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-editor","download_url":"https://codeload.github.com/graphql-editor/hydra-ide/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fhydra-ide/sbom","scorecard":{"id":443861,"data":{"date":"2025-08-11","repo":{"name":"github.com/graphql-editor/hydra-ide","commit":"8cbcfe62c9305a0173e7b9c50da840dcbd45aca9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/graphql-editor/hydra-ide/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/graphql-editor/hydra-ide/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/graphql-editor/hydra-ide/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/graphql-editor/hydra-ide/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/graphql-editor/hydra-ide/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/graphql-editor/hydra-ide/release.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:18","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:40","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 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/release.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-19T06:13:12.533Z","repository_id":57269842,"created_at":"2025-08-19T06:13:12.534Z","updated_at":"2025-08-19T06:13:12.534Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279895722,"owners_count":26240640,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"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":[],"created_at":"2024-11-08T19:14:58.102Z","updated_at":"2025-10-19T19:57:29.629Z","avatar_url":"https://github.com/graphql-editor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hydra IDE\n\nHydra IDE is simplified code IDE component based on monaco editor for React apps. It has no dependencies as you have to install them yourself inside your project.\n\n## Installation in React project\n\n```sh\nnpm i hydra-ide\n```\n\nInstall peer dependencies\n\n```sh\nnpm i react react-dom monaco-editor\n```\n\nand install peer development dependencies. It usese webpack to add worker with monaco inside.\n\n```sh\nnpm i -D webpack monaco-editor-webpack-plugin worker-loader file-loader css-loader\n```\n\nadd monaco plugin to webpack.\n\n```js\nconst MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');\nmodule.exports = {\n  plugins: [\n    new MonacoWebpackPlugin({\n      // https://github.com/Microsoft/monaco-editor-webpack-plugin#options\n      // Add your languages here\n      languages: ['javascript'],\n    }),\n  ],\n};\n```\n\nYou can check exact webpack configuration in `sandbox` folder.\n\n## How to use?\n\n### React Element Props\n\n| Property               | type                                                   | required | Description                                                                    |\n| ---------------------- | ------------------------------------------------------ | -------- | ------------------------------------------------------------------------------ |\n| value                  | string                                                 | true     | current code as string                                                         |\n| setValue               | (value:string) =\u003e void                                 | true     | triggered when editor sets the value                                           |\n| setValueOnBlur         | (value:string) =\u003e void                                 | false    | triggered when editor sets the value on blur                                   |\n| className              | string                                                 | false    | class name                                                                     |\n| style                  | React.CSSProperties                                    | false    | style properties                                                               |\n| theme                  | monaco.editor.IStandaloneThemeData                     | true     | monaco editor theme                                                            |\n| editorOptions          | monaco.editor.IStandaloneEditorConstructionOptions     | true     | monaco editor options                                                          |\n| depsToObserveForResize | React.DependencyList                                   | false    | dependency list same as in useEffect hook. Used to automatically resize editor |\n| onMonaco               | (editor: monaco.editor.IStandaloneCodeEditor) =\u003e void; | false    | when monaco is mounted it will be passed here                                  |\n\n```tsx\nimport React, { useState } from 'react';\nimport HydraIDE from 'hydra-ide';\nimport { darken, lighten, toHex } from 'color2k';\n\nexport const Colors = {\n  grey: '#F3F3F4',\n  main: '#d966ff',\n  green: '#acf7c1',\n  yellow: '#cfee9e',\n  red: '#de3c4b',\n  orange: '#f18f01',\n  pink: '#e6bccd',\n  blue: '#17bebb',\n  sky: '#A3E7FC',\n} as const;\n\nexport const Main = () =\u003e {\n  const [value, setValue] = useState('');\n\n  return (\n    \u003cdiv style={{ height: `100%`, width: '100%' }}\u003e\n      \u003cHydraIDE\n        editorOptions={{\n          language: 'javascript',\n        }}\n        theme={{\n          base: 'vs-dark',\n          inherit: true,\n          rules: [\n            {\n              token: 'comment.js',\n              foreground: toHex(darken(Colors.grey, 0.5)),\n            },\n            { token: 'keyword.js', foreground: Colors.main },\n            { token: 'number.js', foreground: Colors.green },\n            { token: 'string.js', foreground: Colors.sky },\n            {\n              token: 'identifier.js',\n              foreground: toHex(darken(Colors.sky, 0.21)),\n            },\n            {\n              token: 'type.identifier.js',\n              foreground: toHex(lighten(Colors.sky, 0.1)),\n            },\n          ],\n          colors: {\n            'editor.foreground': Colors.sky,\n            'editor.background': toHex(darken(Colors.main, 0.63)),\n            'minimap.background': toHex(darken(Colors.main, 0.64)),\n          },\n        }}\n        setValue={setValue}\n        value={value}\n      /\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n## Develop\n\nTo run sandbox environment clone this repo, install deps and run start.\n\n```sh\nnpm run start\n```\n\n## Roadmap\n\n- easier token adding\n- easier color customization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-editor%2Fhydra-ide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-editor%2Fhydra-ide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-editor%2Fhydra-ide/lists"}