{"id":20992353,"url":"https://github.com/renanlecaro/obm","last_synced_at":"2026-04-17T00:35:15.943Z","repository":{"id":227881554,"uuid":"769745533","full_name":"renanlecaro/obm","owner":"renanlecaro","description":"A rust text to charts tool,  to explain complex processes step by step. Basically sequence diagrams on steroids. ","archived":false,"fork":false,"pushed_at":"2024-03-28T15:26:26.000Z","size":1434,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-26T10:45:10.728Z","etag":null,"topics":["chart","directed-graph","force-directed-graphs","markdown","optimization","rust"],"latest_commit_sha":null,"homepage":"https://obm.lecaro.me/","language":"Rust","has_issues":false,"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/renanlecaro.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":"2024-03-09T23:44:08.000Z","updated_at":"2024-03-15T15:11:19.000Z","dependencies_parsed_at":"2024-03-15T16:25:10.507Z","dependency_job_id":"4e75da1c-0d6d-4dc9-bbfe-836ba0ede7f6","html_url":"https://github.com/renanlecaro/obm","commit_stats":null,"previous_names":["renanlecaro/obm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/renanlecaro/obm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanlecaro%2Fobm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanlecaro%2Fobm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanlecaro%2Fobm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanlecaro%2Fobm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renanlecaro","download_url":"https://codeload.github.com/renanlecaro/obm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanlecaro%2Fobm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"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":["chart","directed-graph","force-directed-graphs","markdown","optimization","rust"],"created_at":"2024-11-19T07:11:02.822Z","updated_at":"2026-04-17T00:35:15.913Z","avatar_url":"https://github.com/renanlecaro.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Our beautiful mess (obm)\n\nThis is a markdown to markdown converter. That sounds a bit silly, I know.\nAll it does is look for lines that have an arrow in them, and consider them\nas an instruction, like below :\n\n    A-\u003eB\n\nWhat we just did is declare a link from A to B. OBM will replace it by a small\nchart, rendered in text in a Markdown code block (indented with 4 blocks).\n\nThe result would look something like this.\n\n    ╔═══╗ ╔═══╗\n    ║ A ║═║ B ║\n    ╚═══╝ ╚═══╝\n\nHead to https://obm.lecaro.me/ to see an interactive side by side view.\n\n## How does it work ?\n\nThe rendering of the graphs is powered by a small engine I wrote in rust, and\nrunning in a background thread in WASM. It uses a variety of methods to try to\ncome up with a nice and compact text representation of the chart.\n\nIt doesn't handle huge charts very well (30+ nodes) and runs single threaded in\nWASM mode. I also have a compiled binary for linux that makes use of all the\nthreads available to generate large graphs faster.\n\n## Why build this ?\n\nSequence diagrams are great to explain processes with 3-4 participants, but don't\nscale well when the number of participants goes up. I once had to explain how a SAAS\nqueuing system for call centers works :  callers reach a call center, are\nforwarded to a twilio number, twilio reaches our API, talks to the caller, then hang up.\n\nThis kind of process is hard to explain with a simple sequence diagram. That's when i\nthought that animating or modifying a flowchart would make sense.\n\n# similar tools\n\ngraph-easy is based on dots and mostly just better than this project.\nIt can be easily used thanks to this hosted service\nhttps://dot-to-ascii.ggerganov.com/\n\nAdia does text to text for sequence diagrams\nhttps://github.com/pylover/adia\n\nMermaid does text to svg/png for many graph types\nhttps://mermaid.live/edit\n\nDots to ascii (python)\nhttps://github.com/ggerganov/dot-to-ascii\n\nVisual editor for plain text diagrams\nhttps://asciiflow.com/#/\n\nText to image\nhttp://blockdiag.com/en/blockdiag/index.html\n\nDiscussions\nhttps://stackoverflow.com/questions/3211801/graphviz-and-ascii-output\n\n## Roadmap\n\n- rendering : show arrow heads, keep links direction information\n- rendering : grow names rectangles to fit grid\n- mutation : isolate a subset of the graph linked together, optimize it, then bring it back in\n- mutation : isolate parent and its children, optimize it, then bring it back in\n- mutation : move node furthest from center closer\n- mutation : draw two rectangles, then swap location of all touching nodes\n- mutation : use layout algorithm as mutation\n- mutation :  see if there are interesting ideas in https://www.graphviz.org/docs/layouts/\n- scoring : make links to self or parent look nicer\n- scoring : add symmetry rules (tricky to do well)\n- syntax: only consider lines indented with 4 blocks at least\n- syntax: fix a node to a specific location\n- syntax: split a document into chunks and start a new chart for each group\n- cli use : improve one world per thread, then merge and do selection/birth every N seconds\n- cli use : progress bar and intermediate results rendering to stdout\n- cli use : editor mode lets you modify the graph and fix the nodes location\n- wasm : allow multithreaded rendering\n- output : generate svg instead of text diagram\n- output : generate slides with presenter notes\n \n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanlecaro%2Fobm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenanlecaro%2Fobm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanlecaro%2Fobm/lists"}