{"id":18893253,"url":"https://github.com/manomanotech/pact-graph-network","last_synced_at":"2025-04-15T00:31:41.302Z","repository":{"id":64795853,"uuid":"573473154","full_name":"ManoManoTech/pact-graph-network","owner":"ManoManoTech","description":"Generates a big overview of dependencies between microservices using pact-broker","archived":false,"fork":false,"pushed_at":"2023-10-02T21:37:54.000Z","size":1591,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T22:59:31.054Z","etag":null,"topics":["contract-testing","pact-broker","testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManoManoTech.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}},"created_at":"2022-12-02T14:45:57.000Z","updated_at":"2023-02-07T17:16:15.000Z","dependencies_parsed_at":"2022-12-16T08:06:34.899Z","dependency_job_id":null,"html_url":"https://github.com/ManoManoTech/pact-graph-network","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManoManoTech%2Fpact-graph-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManoManoTech%2Fpact-graph-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManoManoTech%2Fpact-graph-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManoManoTech%2Fpact-graph-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManoManoTech","download_url":"https://codeload.github.com/ManoManoTech/pact-graph-network/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248984318,"owners_count":21193724,"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":["contract-testing","pact-broker","testing"],"created_at":"2024-11-08T08:12:43.331Z","updated_at":"2025-04-15T00:31:39.874Z","avatar_url":"https://github.com/ManoManoTech.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Pact graph network\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n[![build status](https://github.com/ManoManoTech/pact-graph-network/workflows/CICD/badge.svg)](https://github.com/ManoManoTech/pact-graph-network/actions)\n[![rust](https://img.shields.io/badge/rust-FA7343?logo=rust\u0026logoColor=white)](https://www.rust-lang.org/)\n\n\n\u003e A command line to generate dependency patterns between microservices using pact-broker data.\n\nAvailable for linux, alpine and OSX.\n\n## Broker APIs\n\n1. First, request `$PACT_BROKER_URL/pacts/latest` to get the list of all contracts (e.g. `pacts`) ;\n2. then, for each contract object get the URL to latest version of contract, _e.g._ `_links._self[0].href` \n\n    \u003e http://$PACT_BROKER_URL/pacts/provider/foo-provide/consumer/bar-consume/latest\n\n3. and use it to fetch contract details, i.e. all interactions ;\n\n\n# Table of contents\n\n- [Pact graph network](#pact-graph-network)\n  - [Broker APIs](#broker-apis)\n- [Table of contents](#table-of-contents)\n  - [Screenshots](#screenshots)\n  - [Tech Stack](#tech-stack)\n  - [Features](#features)\n  - [How to install](#how-to-install)\n  - [Usage](#usage)\n    - [Basic Auth](#basic-auth)\n    - [Bearer Auth](#bearer-auth)\n  - [Environment Variables](#environment-variables)\n    - [Options](#options)\n    - [Environment Variables](#environment-variables-1)\n  - [Feedback](#feedback)\n  - [License](#license)\n\n## Screenshots\n\n\u003cdiv\u003e\n  \u003cimg src=\"docs/edge-bundling.png\" width=\"280\" /\u003e\n  \u003cimg src=\"docs/force-directed.png\" width=\"280\" /\u003e\n\u003c/div\u003e\n\n## Tech Stack\n\nThis project is created with:\n\n- [rust](https://www.rust-lang.org/) 🦀\n- [D3js](https://d3js.org/)\n\n## Features\n\n- [x] generate an html report\n- [x] generate an edge bundling chart\n- [x] generate a force directed layout chart\n- [x] exclude sevices with pattern\n- [ ] filter only services\n- [X] add support fort Pact Broker authentification (Basic Auth + Bearer Based)\n\n## How to install\n\n```bash\n# Download the binary\nVERSION=0.7.2\ncurl -L -o $HOME/.local/bin/pact-graph-network \\\n  https://github.com/ManoManoTech/pact-graph-network/releases/download/v${VERSION}/pact-graph-network_x86_64-unknown-linux-gnu\n\n# Make it executable\nchmod u+x $HOME/.local/bin/pact-graph-network\n```\n\n## Usage\n\nGenerate the graph\n\n~~~bash\n  pact-graph-network \\\n  --url https://pact-brocker.your.com/ \\\n  --output report\n~~~\n\nView the output in your browser\n\n~~~bash\n  open report/edge-bundling.html\n~~~\n\n### Basic Auth\n\n~~~bash\n  pact-graph-network --url https://pact-brocker.your.com/ --output report --username $PACT_BROKER_USERNAME --password $PACT_BROKER_PASSWORD\n~~~\n\n### Bearer Auth\n\n~~~bash\n  pact-graph-network --url https://pact-brocker.your.com/ --output report --token $PACT_BROKER_TOKEN\n~~~\n\n## Environment Variables\n### Options \n\n```\n-b, --url \u003cURL\u003e            Pact broker URL\n-u, --username \u003cUSERNAME\u003e  Pact broker username\n-p, --password \u003cPASSWORD\u003e  Pact broker password\n-t, --token \u003cTOKEN\u003e        Pact broker token\n-o, --output \u003cOUTPUT\u003e      Path of the output dir [default: report]\n-g, --graph \u003cGRAPH\u003e        [default: edge] [possible values: edge, directed]\n    --timeout \u003cTIMEOUT\u003e    timeout of http request in milliseconds [default: 2000]\n    --exclude \u003cEXCLUDE\u003e    list of service to exclude\n-h, --help                 Print help information\n-V, --version              Print version information\n```\n\n### Environment Variables\n\n| Key                          | Description                                   | Alowed values                         |\n| ---------------------------- | --------------------------------------------- | ------------------------------------- |\n| **`PACT_NETWORK_LOG`**       | Adds filters to the logger.                   | `error`,`warn`,`info`,`debug`,`trace` |\n| **`PACT_NETWORK_LOG_STYLE`** | Whether or not to print styles to the target. | `auto`, `always`, `never`             |\n\n\n## Feedback\n\nIf you have any feedback, please open an issue.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanomanotech%2Fpact-graph-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanomanotech%2Fpact-graph-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanomanotech%2Fpact-graph-network/lists"}