{"id":22332868,"url":"https://github.com/davzim/reactflow","last_synced_at":"2025-08-26T19:12:59.976Z","repository":{"id":265118654,"uuid":"895152682","full_name":"DavZim/reactflow","owner":"DavZim","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-27T20:44:48.000Z","size":2196,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T08:37:06.388Z","etag":null,"topics":["r","react","reactflow","shiny"],"latest_commit_sha":null,"homepage":"https://davzim.github.io/reactflow/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavZim.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.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":"2024-11-27T16:48:16.000Z","updated_at":"2025-03-01T07:55:05.000Z","dependencies_parsed_at":"2025-01-15T17:29:33.822Z","dependency_job_id":"89611bba-22ef-4989-817b-ca5c9622d03f","html_url":"https://github.com/DavZim/reactflow","commit_stats":null,"previous_names":["davzim/reactflow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DavZim/reactflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavZim%2Freactflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavZim%2Freactflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavZim%2Freactflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavZim%2Freactflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavZim","download_url":"https://codeload.github.com/DavZim/reactflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavZim%2Freactflow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268340264,"owners_count":24234697,"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-08-02T02:00:12.353Z","response_time":74,"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":["r","react","reactflow","shiny"],"created_at":"2024-12-04T04:20:18.262Z","updated_at":"2025-08-02T06:10:31.145Z","avatar_url":"https://github.com/DavZim.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# reactflow\n\nAn experimental R package to use [`@xyflow/react`](https://reactflow.dev) in R and shiny. Barely working at the moment!\n\n\n# ToDos\n\n[s] add MiniMap, Controls, Background functionality,\n[ ] also ViewportLogger, NodeInspector, ChangeLogger, BaseEdge, ControlButton, EdgeLabelRenderer, EdgeText, Handle, NodeResizer, NodeResizeControl, NodeToolbar, Panel, ViewportPanel: https://reactflow.dev/api-reference/components\n[ ] allow custom functions for onNodesChange, onEdgesChange, onConnect\n[s] allow get ID from shiny (click function)\n\n[s] fix reactive values to redraw layout https://reactflow.dev/api-reference/hooks/use-update-node-internals\n[ ] setNodes/setEdges from R? also Getters?\n[ ] examples, eg https://reactflow.dev/examples/interaction/interaction-props\n[ ] edge label at end\n\n\nLayout Examples\n\n\n## Examples\n\n```{r}\nnodes \u003c- list(\n  list(id = \"s\", type = \"input\", data = list(label = \"Start\"), \n       className = \"startNode\", position = list(x = 0, y = 0)),\n  list(id = \"m\", data = list(label = \"Mid\"), position = list(\n    x = 0, y = 100)),\n  list(id = \"e\", data = list(label = \"End\"), \n       className = \"endNode\", position = list(x = 50, y = 200), \n       type = \"output\")\n)\n\nedges \u003c- list(\n  list(id = \"s-m\", source = \"s\", target = \"m\", type = \"smoothstep\", animated = TRUE),\n  list(id = \"m-e\", source = \"m\", target = \"e\", type = \"smoothstep\", animated = TRUE)\n)\n\nreactflow::reactflow(\n  nodes,\n  edges\n)\n```\n\n\n\n\n## Development\n\nClone the repository\n\n```r\nsystem(\"yarn install\")\nsystem(\"yarn run webpack\")\n\ndevtools::document()\ndevtools::install(quick = TRUE)\n\n# or in one go:\n# system(\"yarn install \u0026\u0026 yarn run webpack\"); devtools::document(); devtools::install(quick=TRUE)\n\n# start a shiny app that should display a flow\nshiny::runApp()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavzim%2Freactflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavzim%2Freactflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavzim%2Freactflow/lists"}