{"id":32177463,"url":"https://github.com/whatsopt/xdsmjs","last_synced_at":"2026-03-08T16:31:34.237Z","repository":{"id":57401213,"uuid":"54060686","full_name":"whatsopt/XDSMjs","owner":"whatsopt","description":"XDSM generator written in javascript. ","archived":false,"fork":false,"pushed_at":"2024-06-19T12:00:59.000Z","size":6869,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-14T20:53:29.739Z","etag":null,"topics":["multidisciplinary-optimization","xdsm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whatsopt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2016-03-16T19:30:08.000Z","updated_at":"2024-06-19T12:01:03.000Z","dependencies_parsed_at":"2024-06-19T16:05:16.343Z","dependency_job_id":"187036f4-1e84-42a5-8893-6985efb07161","html_url":"https://github.com/whatsopt/XDSMjs","commit_stats":null,"previous_names":["onerahub/xdsmjs"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/whatsopt/XDSMjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatsopt%2FXDSMjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatsopt%2FXDSMjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatsopt%2FXDSMjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatsopt%2FXDSMjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whatsopt","download_url":"https://codeload.github.com/whatsopt/XDSMjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatsopt%2FXDSMjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280325305,"owners_count":26311419,"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-21T02:00:06.614Z","response_time":58,"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":["multidisciplinary-optimization","xdsm"],"created_at":"2025-10-21T20:07:08.229Z","updated_at":"2025-10-21T20:07:09.981Z","avatar_url":"https://github.com/whatsopt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XDSMjs\r\nXDSM diagram generator written in javascript.\r\n\r\n[![Tests](https://github.com/OneraHub/XDSMjs/workflows/Tests/badge.svg)](https://github.com/OneraHub/XDSMjs/actions?query=workflow%3ATests)\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ccda60bee3ce4eea8a7a685416fdc4d2)](https://app.codacy.com/gh/whatsopt/XDSMjs/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\r\n\r\n## XDSM\r\nThe XDSM (eXtended Design Structure Matrix) is a notation used to visualize MDO processes.\r\nIt was developed by A. B. Lambe and J. R. R. A. Martins, see [MDOLab website dedicated page.](http://mdolab.engin.umich.edu/content/xdsm-overview)\r\n\r\nXDSM permissions:\r\n\u003e If you use the XDSM format for research, we ask that you cite the following journal publication in your work:\r\n\u003e A. B. Lambe and J. R. R. A. Martins, “Extensions to the Design Structure Matrix for the Description of Multidisciplinary Design, Analysis, and Optimization Processes”, Structural and Multidisciplinary Optimization, vol. 46, no. 2, p. 273-284, 2012.\r\n\r\n## Description\r\nXDSMjs is a javascript generator allowing to display a XDSM diagram within a web page.\r\nIt is based on [D3](https://d3js.org/).\r\nIt uses the \u003ccode\u003exdsm.json\u003c/code\u003e file as input which contains required MDO information to generate the XDSM diagram. See the dedicated Wiki page for a description of the [XDSMjs JSON format](https://github.com/OneraHub/XDSMjs/wiki/XDSMjs-JSON-format).\r\n\r\nAs of 0.6.0, the MDO data can be specified through data attribute. \r\n\r\nAs of 0.7.0, XDSMjs supports also [XDSM v2](https://github.com/mdolab/pyXDSM/releases/tag/v2.0). See [Upgrade to 0.7.0 notes](https://github.com/OneraHub/XDSMjs/wiki/Upgrade-to-XDSMjs-0.7.0).\r\n\r\n![](gallery/xdsm_v1_v2.gif)\r\n\r\n## Citation\r\nIf you happen to find XDSMjs useful for research and include diagrams generated with it, it will be appreciated if you cite [the paper which describes the WhatsOpt project that led to XDSMjs development](https://github.com/OneraHub/WhatsOpt#citation)\r\n\r\n## Usage\r\n\r\n``` bash\r\n\u003e cd \u003cinstall-dir\u003e/XDSMjs\r\n```\r\n``` bash\r\n\u003e python -m http.server 8020\r\n```\r\nOpen `http://localhost:8020/xdsm.html` in the browser.\r\n\r\nTo see other diagrams, copy a json example from `examples` directory as xdsm.json and reload the page.\r\n\r\nAs of 0.6.0 version, to use XDSMjs in your web page, you can :\r\n* include the following declarations in your header :\r\n\r\n```html\r\n  \u003clink rel=\"stylesheet\" href=\"xdsmjs.css\"\u003e\r\n  \u003cscript type=\"text/javascript\" src=\"dist/xdsmjs.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n* add the place-holder div element that will contain the XDSM diagram :\r\n\r\n```html\r\n  \u003cdiv class=\"xdsm\"\u003e\u003c/div\u003e\r\n```\r\n\r\nYou can either use the attribute \u003ccode\u003edata-mdo\u003c/code\u003e to specify MDO data in the XDSMjs JSON format in an HTML escaped string \r\n\r\n```html\r\n  \u003cdiv class=\"xdsm\" data-mdo=\"{\u0026quot;root\u0026quot;: {\u0026quot;nodes\u0026quot;: [...], \u0026quot;edges\u0026quot;: [...], ... }}\"\u003e\u003c/div\u003e\r\n```\r\n\r\nor use the attribute \u003ccode\u003edata-mdo-file\u003c/code\u003e to specify another MDO filename\r\n\r\n```html\r\n  \u003cdiv class=\"xdsm\" data-mdo-file=\"examples/mdf.json\"\u003e\u003c/div\u003e\r\n```\r\nIf no data attribute is specified, the default file \u003ccode\u003exdsm.json\u003c/code\u003e is expected.\r\n\r\nAs of 0.7.0, you can use XDSM v2 notation by using \u003ccode\u003exdsm2\u003c/code\u003e class instead of \u003ccode\u003exdsm\u003c/code\u003e.\r\n\r\n```html\r\n  \u003cdiv class=\"xdsm2\"\u003e\u003c/div\u003e\r\n```\r\n\r\nAs of 0.8.0, you can specify configuration and MDO data directly from the \u003ccode\u003e\u003cscript\u003e\u003c/code\u003e element in the html file.\r\n\u003cpre\u003e\r\n    \u003cscript type=\"text/javascript\"\u003e\r\n        document.addEventListener('DOMContentLoaded', () =\u003e {\r\n            let mdo = {nodes: ..., edges: ...}\r\n            let config = { labelizer: { showNbLinkOnly: true } };\r\n            XDSMjs(config).createXdsm(mdo);\r\n        });\r\n    \u003c/script\u003e\r\n\u003c/pre\u003e\r\n\r\n## Example\r\nBelow an example describing BLISS formulation inspired from XDSM description given in [Martins and Lambe MDO architecture survey](http://arc.aiaa.org/doi/pdf/10.2514/1.J051895). While the formulation could have been described in one diagram as in the survey, the example below use XDSMjs multi-level diagram capability to separate system and discipline optimization levels.\r\nThe corresponding [xdsm.json](./examples/bliss.json) file is available in the example directory.\r\n\r\n![](gallery/xdsm_bliss_anim.gif)\r\n\r\n## Licence\r\n Copyright 2020 Rémi Lafage\r\n\r\n   Licensed under the Apache License, Version 2.0 (the \"License\");\r\n   you may not use this file except in compliance with the License.\r\n   You may obtain a copy of the License at\r\n\r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n   Unless required by applicable law or agreed to in writing, software\r\n   distributed under the License is distributed on an \"AS IS\" BASIS,\r\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n   See the License for the specific language governing permissions and\r\n   limitations under the License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatsopt%2Fxdsmjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhatsopt%2Fxdsmjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatsopt%2Fxdsmjs/lists"}