{"id":15688149,"url":"https://github.com/tintinweb/aragraph","last_synced_at":"2025-04-28T18:13:25.049Z","repository":{"id":78424096,"uuid":"214387448","full_name":"tintinweb/aragraph","owner":"tintinweb","description":"**Repo Moved** Easily generate permission graphs for Aragon DAO Templates","archived":false,"fork":false,"pushed_at":"2019-10-22T13:32:34.000Z","size":2,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T18:13:21.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/ConsenSys/aragraph","language":null,"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/tintinweb.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":"2019-10-11T08:44:31.000Z","updated_at":"2021-12-02T15:15:13.000Z","dependencies_parsed_at":"2023-03-13T20:13:51.457Z","dependency_job_id":null,"html_url":"https://github.com/tintinweb/aragraph","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/tintinweb%2Faragraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Faragraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Faragraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Faragraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tintinweb","download_url":"https://codeload.github.com/tintinweb/aragraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251362153,"owners_count":21577403,"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":"2024-10-03T17:55:35.103Z","updated_at":"2025-04-28T18:13:25.033Z","avatar_url":"https://github.com/tintinweb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg width=\"200\" alt=\"get in touch with Consensys Diligence\" src=\"https://user-images.githubusercontent.com/2865694/56826101-91dcf380-685b-11e9-937c-af49c2510aa0.png\"\u003e](https://diligence.consensys.net)\u003cbr/\u003e\n\u003csup\u003e\n[[  🌐  ](https://diligence.consensys.net)  [  📩  ](mailto:diligence@consensys.net)  [  🔥  ](https://consensys.github.io/diligence/)]\n\u003c/sup\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n\n# ⚠️ REPOSITORY MOVED\n\n**new location:** https://github.com/ConsenSys/aragraph\n\n\n# aragraph\n\nGenerate permission relationship graphs from aragon template description files (`yaml`) or Markdown Tables specifications.\n\nThis script generates UML descriptions for aragon templates that can be rendered with [Plantuml](http://plantuml.com/).\n\n**install** \n\n`$ npm install -g aragraph`\n\n**generate from yaml description**\n\n`$ aragraph ./examples/company.yaml \u003e dao.plantuml `\n\n**generate from markdown**\n\n`$ aragraph ./examples/aragon_company_README.md \u003e dao.plantuml `\n\n**Render**\n\n`$ java -jar plantuml.jar dao.plantuml`\n\n## Library\n\n### from DAO description files (yaml)\n\nhttps://github.com/aragon/dao-templates/tree/master/descriptor\n\nExample: https://github.com/aragon/dao-templates/blob/cc1eb1174a13c6d5ed0fcc1bbcc9d21bf9137a84/descriptor/examples/company.yaml\n\n![image](https://user-images.githubusercontent.com/2865694/64525950-5a4e7f80-d302-11e9-875e-162affd6379c.png)\n\n\n```\nconst AragonPermissions = require(\"./AragonPermissions.js\");\n\nconsole.log(new AragonPermissions().fromYaml('./examples/company.yaml').uml())\n\n```\n\n### from markdown table\n\nExample: https://github.com/aragon/dao-templates/blob/master/templates/company/README.md\n\n![image](https://user-images.githubusercontent.com/2865694/64526657-2a07e080-d304-11e9-82fa-0f81e7834326.png)\n\n\n```\nconst AragonPermissions = require(\"./AragonPermissions.js\");\n\nconst input = `\n\n| App               | Permission            | Grantee       | Manager |\n|-------------------|-----------------------|---------------|---------|\n| Kernel            | APP_MANAGER           | Voting        | Voting  |\n| ACL               | CREATE_PERMISSIONS    | Voting        | Voting  |\n| EVMScriptRegistry | REGISTRY_MANAGER      | Voting        | Voting  |\n| EVMScriptRegistry | REGISTRY_ADD_EXECUTOR | Voting        | Voting  |\n| Voting            | CREATE_VOTES          | Token Manager | Voting  |\n| Voting            | MODIFY_QUORUM         | Voting        | Voting  |\n| Voting            | MODIFY_SUPPORT        | Voting        | Voting  |\n| Agent or Vault    | TRANSFER              | Finance       | Voting  |\n| Finance           | CREATE_PAYMENTS       | Voting        | Voting  |\n| Finance           | EXECUTE_PAYMENTS      | Voting        | Voting  |\n| Finance           | MANAGE_PAYMENTS       | Voting        | Voting  |\n| Token Manager     | MINT                  | Voting        | Voting  |\n| Token Manager     | BURN                  | Voting        | Voting  |\n| Agent             | RUN_SCRIPT            | Voting        | Voting  |\n| Agent             | EXECUTE               | Voting        | Voting  |\n| Finance             | CREATE_PAYMENTS            | Payroll             | Voting        |\n| Payroll             | ADD_BONUS_ROLE             | EOA or Voting       | Voting        |\n| Payroll             | ADD_EMPLOYEE_ROLE          | EOA or Voting       | Voting        |\n| Payroll             | ADD_REIMBURSEMENT_ROLE     | EOA or Voting       | Voting        |\n| Payroll             | TERMINATE_EMPLOYEE_ROLE    | EOA or Voting       | Voting        |\n| Payroll             | SET_EMPLOYEE_SALARY_ROLE   | EOA or voting       | Voting        |\n| Payroll             | MODIFY_PRICE_FEED_ROLE     | Voting              | Voting        |\n| Payroll             | MODIFY_RATE_EXPIRY_ROLE    | Voting              | Voting        |\n| Payroll             | MANAGE_ALLOWED_TOKENS_ROLE | Voting              | Voting        |\n`;\n\n\n\nconsole.log(new AragonPermissions().fromMarkdownTable(md).uml())\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftintinweb%2Faragraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftintinweb%2Faragraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftintinweb%2Faragraph/lists"}