{"id":25229140,"url":"https://github.com/ajthinking/diagram-app","last_synced_at":"2025-08-18T09:07:47.829Z","repository":{"id":95889460,"uuid":"315071838","full_name":"ajthinking/diagram-app","owner":"ajthinking","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-22T16:22:13.000Z","size":944,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T22:52:35.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ajthinking.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}},"created_at":"2020-11-22T15:41:39.000Z","updated_at":"2020-12-11T07:49:27.000Z","dependencies_parsed_at":"2023-03-13T16:43:41.598Z","dependency_job_id":null,"html_url":"https://github.com/ajthinking/diagram-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajthinking/diagram-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fdiagram-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fdiagram-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fdiagram-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fdiagram-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajthinking","download_url":"https://codeload.github.com/ajthinking/diagram-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajthinking%2Fdiagram-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270968637,"owners_count":24677139,"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-18T02:00:08.743Z","response_time":89,"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":"2025-02-11T10:47:17.949Z","updated_at":"2025-08-18T09:07:47.804Z","avatar_url":"https://github.com/ajthinking.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to use [React Diagrams](https://github.com/projectstorm/react-diagrams) with Laravel\nAs of 22th november 2020.\n\n\u003cimg src=\"https://raw.githubusercontent.com/projectstorm/react-diagrams/master/.gitbook/assets/example1.jpg\"\u003e\n\n### Setup up React\n```\nlaravel new diagram-app\ncd diagram-app\ncomposer require laravel/ui\nphp artisan ui react\nyarn \u0026\u0026 yarn watch\n```\n\nIn welcome.blade.php do the following changes\n* ```\u003cdiv id=\"app\"\u003e\u003c/div\u003e```\n\n* ```\u003cscript type=\"text/javascript\" src=\"/js/app.js\"\u003e\u003c/script\u003e```\n* ```\u003clink href=\"/css/app.css\" rel=\"stylesheet\"\u003e```\n* ```\u003clink href=\"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css\" rel=\"stylesheet\"\u003e```\n        \n\n\n### Installing the package\n```\nyarn add @projectstorm/react-diagrams@next\nnpm install closest lodash react dagre pathfinding paths-js resize-observer-polyfill ml-matrix @emotion/core@10.1.1 @emotion/styled@10.0.3\n```\n\n### Adding a diagram!\nCopy [this sample](https://github.com/projectstorm/react-diagrams/blob/master/packages/diagrams-demo-gallery/demos/demo-simple/index.tsx) from the demos and save it as a component `Diagram.js`\n\nMake the following modifications\n* Remove the `DemoCanvasWidget` import \u0026 wrapper in `render`\n* Remove ts typehint `\u003cDefaultLinkModel\u003e`\n* Add a style `fullsize` in app.scss:\n```css\n.fullsize {\n    width: 100vw;\n    height: 70vh;\n}\n```\n* Apply that class to `CanvasWidget` in your `Diagram` component.\n\n* Finally rename `ExampleComponent` to `App` and render the Diagram inside :rocket:\n\n\n## Or...\nyou can use this repo as a starting point.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajthinking%2Fdiagram-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajthinking%2Fdiagram-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajthinking%2Fdiagram-app/lists"}