{"id":25304869,"url":"https://github.com/leops/react-graph-editor","last_synced_at":"2025-10-28T09:30:46.412Z","repository":{"id":65372945,"uuid":"74693707","full_name":"leops/react-graph-editor","owner":"leops","description":"A React framework for building graph-based editors","archived":false,"fork":false,"pushed_at":"2017-01-15T10:47:02.000Z","size":20,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T21:03:53.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://leops.github.io/react-graph-editor/","language":"JavaScript","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/leops.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":"2016-11-24T17:36:48.000Z","updated_at":"2021-12-30T14:38:07.000Z","dependencies_parsed_at":"2023-01-19T23:35:18.485Z","dependency_job_id":null,"html_url":"https://github.com/leops/react-graph-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-graph-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-graph-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-graph-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-graph-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leops","download_url":"https://codeload.github.com/leops/react-graph-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238624048,"owners_count":19503155,"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":"2025-02-13T08:34:09.705Z","updated_at":"2025-10-28T09:30:41.142Z","avatar_url":"https://github.com/leops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"React Graph Editor\n===============\n\nHeavily based on [Draft.js](https://github.com/facebook/draft-js), React Graph Editor\nis a framework for building graph-based editors like the [Rasen\nEditor](https://github.com/leops/rasen-editor) or [Focus](https://github.com/leops/focus).\n\n# Example\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n    Graph,\n    GraphState,\n} from 'react-graph-editor';\n\nclass Editor extends React.Component {\n    constructor(props) {\n        super(props);\n        this.state = {graph: GraphState.createEmpty()};\n        this.onChange = graph =\u003e this.setState({graph});\n    }\n\n    render() {\n        const {graph} = this.state;\n        return \u003cGraph value={graph} onChange={this.onChange} /\u003e;\n    }\n}\n\nReactDOM.render(\n    \u003cEditor /\u003e,\n    document.getElementById('container')\n);\n```\n\n# Docs\nSee the [docs](https://github.com/leops/react-graph-editor/tree/master/docs) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleops%2Freact-graph-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleops%2Freact-graph-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleops%2Freact-graph-editor/lists"}