{"id":20029895,"url":"https://github.com/linarcx/trinity","last_synced_at":"2026-05-08T10:35:23.003Z","repository":{"id":188086758,"uuid":"678004309","full_name":"LinArcX/trinity","owner":"LinArcX","description":"generating a graph based on links among files","archived":false,"fork":false,"pushed_at":"2023-08-13T18:39:23.000Z","size":1538,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T19:38:00.586Z","etag":null,"topics":["bash","bash-script","dot-language","graphviz","links","linux","mind-mapping","second-brain","unix"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinArcX.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-08-13T11:27:39.000Z","updated_at":"2024-05-05T16:43:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cad71d1-790f-4836-a620-2046095e234d","html_url":"https://github.com/LinArcX/trinity","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"19ccd282f7b099763acb19ee579a95abc4b9ea84"},"previous_names":["linarcx/trinity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LinArcX/trinity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Ftrinity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Ftrinity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Ftrinity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Ftrinity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinArcX","download_url":"https://codeload.github.com/LinArcX/trinity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinArcX%2Ftrinity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32776904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","bash-script","dot-language","graphviz","links","linux","mind-mapping","second-brain","unix"],"created_at":"2024-11-13T09:23:29.789Z","updated_at":"2026-05-08T10:35:22.983Z","avatar_url":"https://github.com/LinArcX.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cimg width=\"500\" src=\"assets/Matrix.png\" alt=\"matrix.png\"\u003e\u003c/img\u003e\n\t\u003cbr\u003e\n\u003c/h1\u003e\n\n# Trinity\ngenerating a graph based on links among files.\n\n# Idea\nI developed trinity since i need a tool to show me all the relationships and links between my files. (i use these linked, to make a second brain.)\n\nThe idea is simple. i have bunch of simple `.txt` files in a flat hierarchy structure that can refer to each other.(like in **docs** directory)\n\nto create a graph of links:\n\n`./trinity.sh --output-dir output --input-dir docs --input-file Matrix.txt --open-img \u003e /dev/null  2\u003e\u00261`\n\nit will create two files in output directory:\n1. Matrix.gv\n2. Matrix.png\n\nactually i converted all links that i find inside input file to [dot language](https://en.wikipedia.org/wiki/DOT_(graph_description_language)) and then create an image from it.\n\nthis is the content of auto-generated `.gv` file:\n```\ngraph Matrix {\n  layout=sfdp;\n  edge [penwidth=5 color=\"#FFCC80\"]\n  node [style=\"filled\" penwidth=0 fillcolor=\"#D7CCC8\" fontcolor=\"#424242\"]\n\n  Matrix [fontsize=33]\n\n  node [fontsize=28]\n  Matrix -- {\n    Neo\n    Mouse\n    Cypher\n    Trinity\n    Morpheus\n    SpoonBoy\n    TheOracle\n    AgentSmith\n    Merovingian\n    TheArchitect\n  }\n\n  node [fontsize=24]\n  Neo -- {\n    Hacker\n  }\n\n  node [fontsize=20]\n  Hacker -- {\n    RichardStallman\n    LinusTorvalds\n  }\n\n  node [fontsize=16]\n  RichardStallman -- {\n    Emacs\n  }\n\n  node [fontsize=12]\n  LinusTorvalds -- {\n    Linux\n    Git\n  }\n\n  graph [ranksep=6];\n}\n```\n\nnow you can open the image:\n\n`xdg-open output/Matrix.png \u003e /dev/null 2\u003e\u00261`\n\nTo see other options: `trinity.sh --help`.\n\n## dependencies\n- [graphviz](https://graphviz.org/)\n\n## Who is Trinity\n\u003ch1 align=\"center\"\u003e\n\t\u003cimg width=\"500\" src=\"assets/trinity.gif\" alt=\"trinity.gif\"\u003e\n\t\u003cbr\u003e\n\u003c/h1\u003e\n\n## License\n![License](https://img.shields.io/github/license/LinArcX/trinity.svg?style=flat-square)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinarcx%2Ftrinity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinarcx%2Ftrinity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinarcx%2Ftrinity/lists"}