| 1 | <!-- SPDX-License-Identifier: Apache-2.0 |
| 2 | Copyright (c) 2026 UtopiaIA |
| 3 | Made by scripts/demos/diagram.py from the site's diagram: edit that, not this. --> |
| 4 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 408" width="1000" height="408" role="img" aria-labelledby="dgm-title"> |
| 5 | <title id="dgm-title">How braid works: workspaces commit in parallel over one shared store, land on main in turn, and git sync sends main to any git remote</title> |
| 6 | <style> |
| 7 | .band { fill: rgba(255, 255, 255, .72); stroke: rgba(21, 20, 31, .22); } |
| 8 | .card { fill: #fff; stroke: rgba(21, 20, 31, .22); } |
| 9 | .acc-a { fill: #a77a3a; } |
| 10 | .acc-b { fill: #13917f; } |
| 11 | .acc-c { fill: #5b4ae6; } |
| 12 | .lb { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } |
| 13 | .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; } |
| 14 | .hi { fill: #15141f; } |
| 15 | .dim { fill: #3f3c57; } |
| 16 | .muted { fill: #5f5b7d; } |
| 17 | .strong { font-weight: 600; } |
| 18 | .t-a { fill: #7d5a1f; } |
| 19 | .t-b { fill: #0b6f61; } |
| 20 | .t-c { fill: #4b3bd1; } |
| 21 | .t-x { fill: #a2307f; } |
| 22 | .strand { fill: none; stroke-linecap: round; stroke-linejoin: round; } |
| 23 | .st-a { stroke: #a77a3a; } |
| 24 | .st-b { stroke: #13917f; } |
| 25 | .st-c { stroke: #5b4ae6; } |
| 26 | .post { fill: #5f5b7d; } |
| 27 | .knot { fill: none; stroke: #a2307f; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; } |
| 28 | .loop { fill: none; stroke: #5b4ae6; stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; } |
| 29 | .ar { fill: #3f3c57; } |
| 30 | .ar-c { fill: #5b4ae6; } |
| 31 | .flow { fill: none; stroke: #3f3c57; stroke-width: 2; } |
| 32 | .box { fill: #fff; stroke: rgba(21, 20, 31, .22); } |
| 33 | .ghost { fill: none; stroke: #5f5b7d; stroke-dasharray: 6 6; } |
| 34 | </style> |
| 35 | <rect class="band" x="12" y="12" width="254" height="390" rx="16"/><text class="lb mono dim" font-size="13.5"><tspan x="28" y="36">commit: in parallel</tspan></text><rect class="card" x="28" y="49" width="222" height="62" rx="10"/><rect class="acc-b" x="40" y="60" width="4" height="40" rx="2"/><text class="lb mono hi" font-size="15"><tspan x="56" y="75">workspace b</tspan></text><text class="lb dim" font-size="13.5"><tspan x="56" y="96">own working copy · no index</tspan></text><rect class="card" x="28" y="137" width="222" height="62" rx="10"/><rect class="acc-a" x="40" y="148" width="4" height="40" rx="2"/><text class="lb mono hi" font-size="15"><tspan x="56" y="163">workspace a</tspan></text><text class="lb dim" font-size="13.5"><tspan x="56" y="184">own working copy · no index</tspan></text><rect class="card" x="28" y="225" width="222" height="62" rx="10"/><rect class="acc-c" x="40" y="236" width="4" height="40" rx="2"/><text class="lb mono hi" font-size="15"><tspan x="56" y="251">workspace c</tspan></text><text class="lb dim" font-size="13.5"><tspan x="56" y="272">own working copy · no index</tspan></text><text class="lb hi strong" font-size="14"><tspan x="28" y="318">one shared store</tspan></text><text class="lb dim" font-size="13.5"><tspan x="28" y="340">immutable objects</tspan><tspan x="28" y="357.5">named by BLAKE3</tspan><tspan x="28" y="375">append-only op log</tspan></text><defs><mask id="dw-m-b" maskUnits="userSpaceOnUse" x="0" y="0" width="1000" height="408"><rect width="1000" height="408" fill="#fff"/><path d="M636.9 192.29C639.15 192.2 641.4 191.02 643.65 188.9C645.9 186.79 648.15 183.74 650.4 180.15C652.65 176.56 654.9 172.43 657.15 168.28C659.4 164.13 661.65 159.97 663.9 156.33" fill="none" stroke="#000" stroke-width="16.65"/><path d="M678.3 143.71C680.55 143.8 682.8 144.98 685.05 147.1C687.3 149.21 689.55 152.26 691.8 155.85C694.05 159.44 696.3 163.57 698.55 167.72C700.8 171.87 703.05 176.03 705.3 179.67" fill="none" stroke="#000" stroke-width="16.65"/><path d="M719.7 192.29C721.95 192.2 724.2 191.02 726.45 188.9C728.7 186.79 730.95 183.74 733.2 180.15C735.45 176.56 737.7 172.43 739.95 168.28C742.2 164.13 744.45 159.97 746.7 156.33" fill="none" stroke="#000" stroke-width="16.65"/></mask><mask id="dw-m-a" maskUnits="userSpaceOnUse" x="0" y="0" width="1000" height="408"><rect width="1000" height="408" fill="#fff"/><path d="M630 147.24C632.23 149.38 634.47 152.43 636.7 156.01C638.93 159.59 641.17 163.7 643.4 167.82C645.63 171.93 647.87 176.06 650.1 179.67" fill="none" stroke="#000" stroke-width="16.65"/><path d="M664.5 192.29C666.75 192.2 669 191.02 671.25 188.9C673.5 186.79 675.75 183.74 678 180.15C680.25 176.56 682.5 172.43 684.75 168.28C687 164.13 689.25 159.97 691.5 156.33" fill="none" stroke="#000" stroke-width="16.65"/><path d="M705.9 143.71C708.15 143.8 710.4 144.98 712.65 147.1C714.9 149.21 717.15 152.26 719.4 155.85C721.65 159.44 723.9 163.57 726.15 167.72C728.4 171.87 730.65 176.03 732.9 179.67" fill="none" stroke="#000" stroke-width="16.65"/></mask><mask id="dw-m-c" maskUnits="userSpaceOnUse" x="0" y="0" width="1000" height="408"><rect width="1000" height="408" fill="#fff"/><path d="M650.7 143.71C652.95 143.8 655.2 144.98 657.45 147.1C659.7 149.21 661.95 152.26 664.2 155.85C666.45 159.44 668.7 163.57 670.95 167.72C673.2 171.87 675.45 176.03 677.7 179.67" fill="none" stroke="#000" stroke-width="16.65"/><path d="M692.1 192.29C694.35 192.2 696.6 191.02 698.85 188.9C701.1 186.79 703.35 183.74 705.6 180.15C707.85 176.56 710.1 172.43 712.35 168.28C714.6 164.13 716.85 159.97 719.1 156.33" fill="none" stroke="#000" stroke-width="16.65"/><path d="M733.5 143.71C735.23 143.78 736.95 144.48 738.67 145.77C740.4 147.05 742.12 148.91 743.85 151.21C745.58 153.51 747.3 156.25 749.02 159.21C750.75 162.18 752.48 165.37 754.2 168.55" fill="none" stroke="#000" stroke-width="16.65"/></mask></defs><rect class="post" x="596" y="88.72" width="8" height="44" rx="4"/><rect class="post" x="596" y="203.28" width="8" height="44" rx="4"/><text class="lb hi" text-anchor="middle" font-size="13.5"><tspan x="600" y="74.72">land · one short step, taken in turn</tspan></text><path class="strand st-a" d="M250 168C368.33 168 486.67 168 605 168C620 168 632.35 160.63 640.35 150.43C643.8 146.04 647.25 143.56 650.7 143.71C654.15 143.85 657.6 146.61 661.05 151.21C664.5 155.81 667.95 162.19 671.4 168.55C674.85 174.91 678.3 181.17 681.75 185.57C685.2 189.96 688.65 192.44 692.1 192.29C695.55 192.15 699 189.39 702.45 184.79C705.9 180.19 709.35 173.81 712.8 167.45C716.25 161.09 719.7 154.83 723.15 150.43C726.6 146.04 730.05 143.56 733.5 143.71C736.95 143.85 740.4 146.61 743.85 151.21C747.3 155.81 750.75 162.19 754.2 168.55" stroke-width="8.55" mask="url(#dw-m-a)"/><path class="strand st-b" d="M250 80C323.33 80 396.67 80 470 80C555 80 535 146 570 146C580 146 590 146 600 146C610 146 620 137.66 630 147.24C633.45 150.54 636.9 156.07 640.35 162.25C643.8 168.43 647.25 175.19 650.7 180.63C654.15 186.06 657.6 190.1 661.05 191.61C664.5 193.12 667.95 192.07 671.4 188.76C674.85 185.46 678.3 179.93 681.75 173.75C685.2 167.57 688.65 160.81 692.1 155.37C695.55 149.94 699 145.9 702.45 144.39C705.9 142.88 709.35 143.93 712.8 147.24C716.25 150.54 719.7 156.07 723.15 162.25C726.6 168.43 730.05 175.19 733.5 180.63C736.95 186.06 740.4 190.1 743.85 191.61C747.3 193.12 750.75 192.07 754.2 188.76" stroke-width="8.55" mask="url(#dw-m-b)"/><path class="strand st-c" d="M250 256C323.33 256 396.67 256 470 256C560 256 540 190 570 190C580 190 590 190 600 190C610 190 620 180.46 630 189.32C633.45 192.37 636.9 193.11 640.35 191.32C643.8 189.54 647.25 185.25 650.7 179.67C654.15 174.09 657.6 167.28 661.05 161.18C664.5 155.07 667.95 149.74 671.4 146.68C674.85 143.63 678.3 142.89 681.75 144.68C685.2 146.46 688.65 150.75 692.1 156.33C695.55 161.91 699 168.72 702.45 174.82C705.9 180.93 709.35 186.26 712.8 189.32C716.25 192.37 719.7 193.11 723.15 191.32C726.6 189.54 730.05 185.25 733.5 179.67C736.95 174.09 740.4 167.28 743.85 161.18C747.3 155.07 750.75 149.74 754.2 146.68" stroke-width="8.55" mask="url(#dw-m-c)"/><text class="lb mono t-b" font-size="13"><tspan x="284" y="106">rebased</tspan></text><text class="lb mono t-a" font-size="13"><tspan x="290" y="154">fast-forward</tspan></text><path class="knot" d="M334 256 C352.2 256 371.7 252.1 371.7 237.8 C371.7 223.5 350.9 223.5 350.9 237.8 C350.9 252.1 369.1 256 386 256"/><text class="lb t-x" font-size="13"><tspan x="290" y="222">conflict · exit 2 · main did not move</tspan></text><path class="loop" d="M334 266C316 308 264 312 260 272"/><path class="ar ar-c" d="M260 267 L264.36 273.71 L256.87 274.36 Z"/><text class="lb mono t-c" font-size="13"><tspan x="274" y="332">update · fix · commit</tspan></text><text class="lb mono t-c" text-anchor="end" font-size="13"><tspan x="588" y="282">fast-forward</tspan></text><text class="lb mono hi" text-anchor="middle" font-size="15"><tspan x="692.1" y="124">main</tspan></text><path class="flow" d="M766.2 168 L789.2 168"/><path class="ar" d="M795.2 168 L788.14 171.76 L788.14 164.24 Z"/><rect class="box" x="798.2" y="137" width="197.8" height="62" rx="12"/><text class="lb mono hi" font-size="15"><tspan x="814.2" y="163">git sync</tspan></text><text class="lb dim" font-size="13.5"><tspan x="814.2" y="184">any git remote</tspan></text><text class="lb dim" font-size="13.5"><tspan x="800.2" y="222">fast-forward, with a lease</tspan></text><rect class="ghost" x="798.2" y="268" width="197.8" height="58" rx="12"/><text class="lb muted" font-size="13.5"><tspan x="814.2" y="292">planned:</tspan></text><text class="lb muted" font-size="13.5"><tspan x="814.2" y="312">daemon · caches</tspan></text></svg> |