{"id":21304975,"url":"https://github.com/maximilianmairinger/flowcharttojson","last_synced_at":"2025-07-13T22:08:43.660Z","repository":{"id":178078554,"uuid":"661273923","full_name":"maximilianMairinger/flowchartToJson","owner":"maximilianMairinger","description":"Converts a FigJam flowchart to json","archived":false,"fork":false,"pushed_at":"2024-08-04T09:23:28.000Z","size":23,"stargazers_count":13,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T21:35:43.918Z","etag":null,"topics":["api","cyclic","edges","figjam","figma","flowchart","graph","json","node","parser","plugin"],"latest_commit_sha":null,"homepage":"https://www.figma.com/community/plugin/1257283022168373227","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/maximilianMairinger.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-02T10:36:09.000Z","updated_at":"2025-07-10T21:39:14.000Z","dependencies_parsed_at":"2024-01-12T14:16:40.211Z","dependency_job_id":"b571c334-e1df-42ef-bd0e-88f49d2a391d","html_url":"https://github.com/maximilianMairinger/flowchartToJson","commit_stats":null,"previous_names":["maximilianmairinger/flowcharttojson"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maximilianMairinger/flowchartToJson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2FflowchartToJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2FflowchartToJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2FflowchartToJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2FflowchartToJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximilianMairinger","download_url":"https://codeload.github.com/maximilianMairinger/flowchartToJson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximilianMairinger%2FflowchartToJson/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265212951,"owners_count":23728631,"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":["api","cyclic","edges","figjam","figma","flowchart","graph","json","node","parser","plugin"],"created_at":"2024-11-21T16:16:31.798Z","updated_at":"2025-07-13T22:08:43.635Z","avatar_url":"https://github.com/maximilianMairinger.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"left\"\u003e\n  \u003cimg src=\"pics/icon.png\" height=\"300px\"/\u003e\n\u003c/h3\u003e\n\n\u003ch1\u003eFigJam flowchart diagram to JSON\u003c/h1\u003e\n\n![Flowchart to JSON Illustration](pics/header.png)\n\nSelect the root element, and run the plugin. It will generate a JSON representation of the graph interpretation the flowchart. There are two types of entities: `nodes` and `edges`, which model the relation of the flowchart elements. A Node is a, in this case a purple, box with text inside, and an edge is a line connecting the two nodes. All sorts of properties are stored on a node or edge, such as the text, the color and its connections.\n\n## Usage\n\nInstall it on the [figma community](https://www.figma.com/community/plugin/1257283022168373227) and try it out [here](https://www.figma.com/file/uPuwak5XnvgpCehHTmDOqI/Untitled?type=whiteboard\u0026t=7YEtTS0RuRqzHCyE-6). Select a root node and run the plugin. It will copy the JSON to your clipboard (if possible).\n\n### Parsing\n\nNote that the resulting JSON may be cyclic, by the nature of the flowchart. These kinds of JSONs can be parsed with the library [circ-json](https://www.npmjs.com/package/circ-json)!\n\n## API\n\n```typescript\ninterface Element {\n  text: string;\n  id: string;\n  type: \"NODE\" | \"EDGE\",\n}\n\ninterface Edge extends Element {\n  from: Node,\n  to?: Node,\n  fromSide?: 'NONE' | 'AUTO' | 'TOP' | 'LEFT' | 'BOTTOM' | 'RIGHT',\n  toSide?: 'NONE' | 'AUTO' | 'TOP' | 'LEFT' | 'BOTTOM' | 'RIGHT',\n  color?: {r: number, g: number, b: number},\n  edgeType: 'ELBOWED' | 'STRAIGHT',\n  directional: \"UNI\" | \"BI\"\n}\n\ninterface Node extends Element {\n  edges: Edge[],\n  color?: {r: number, g: number, b: number}\n}\n```\n\nIt will always start with a node.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximilianmairinger%2Fflowcharttojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximilianmairinger%2Fflowcharttojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximilianmairinger%2Fflowcharttojson/lists"}