✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: hand the current document to ToDiagram without copy-paste
AykutSarac963216f7a34c
diff --git a/apps/www/public/assets/open-in-todiagram.svg b/apps/www/public/assets/open-in-todiagram.svgnew file mode 100644index 00000000..f851e313--- /dev/null+++ b/apps/www/public/assets/open-in-todiagram.svg@@ -0,0 +1,441 @@+<svg xmlns="http://www.w3.org/2000/svg" width="184" height="39" viewBox="0 0 184 39" fill="none">+ <defs>+ <linearGradient id="text_gradient" x1="44.5303" y1="25.3333" x2="139.907" y2="78.0713" gradientUnits="userSpaceOnUse">+ <stop stop-color="#FBAD41"/>+ <stop offset="1" stop-color="#FF6633"/>+ </linearGradient>+ <clipPath id="logo_a">+ <path d="M4.188 290.809h280.94v216.988H4.189Zm0 0"/>+ </clipPath>+ <clipPath id="logo_b">+ <path d="M87.328 290.809H274.32a10.81 10.81 0 0 1 10.254 14.23L221.73 493.566a20.808 20.808 0 0 1-19.742 14.23H15a10.813 10.813 0 0 1-10.258-14.23L67.586 305.04a20.808 20.808 0 0 1 19.742-14.23Zm0 0"/>+ </clipPath>+ <clipPath id="logo_d">+ <path d="M279.96 290.809h280.942v216.988H279.961Zm0 0"/>+ </clipPath>+ <clipPath id="logo_e">+ <path d="M363.105 290.809h186.989a10.81 10.81 0 0 1 10.254 14.23l-62.84 188.527a20.809 20.809 0 0 1-19.746 14.23H290.773a10.81 10.81 0 0 1-10.254-14.23l62.84-188.527a20.809 20.809 0 0 1 19.746-14.23Zm0 0"/>+ </clipPath>+ <clipPath id="logo_g">+ <path d="M105.594 92.203h488.101v141.785H105.594Zm0 0"/>+ </clipPath>+ <clipPath id="logo_h">+ <path d="M111.723 92.203h400.949c9.613 0 18.844 3.77 25.71 10.5l50.907 49.89a14.708 14.708 0 0 1 0 21l-50.906 49.895a36.732 36.732 0 0 1-25.711 10.5h-400.95a6.126 6.126 0 0 1-4.29-10.5l50.908-49.894a14.702 14.702 0 0 0 0-21l-50.906-49.89a6.126 6.126 0 0 1 4.289-10.5Zm0 0"/>+ </clipPath>+ <linearGradient x1="4.942" gradientTransform="matrix(.84761 0 0 .84761 -.002 290.808)" y1="128" x2="336.392" gradientUnits="userSpaceOnUse" y2="128" id="logo_c">+ <stop stop-color="#FF66C4" offset="0"/>+ <stop stop-color="#FF66C4" offset=".008"/>+ <stop stop-color="#FF67C3" offset=".016"/>+ <stop stop-color="#FF68C2" offset=".023"/>+ <stop stop-color="#FF69C1" offset=".031"/>+ <stop stop-color="#FF6AC0" offset=".039"/>+ <stop stop-color="#FF6BBF" offset=".047"/>+ <stop stop-color="#FF6CBF" offset=".055"/>+ <stop stop-color="#FF6DBE" offset=".063"/>+ <stop stop-color="#FF6EBD" offset=".07"/>+ <stop stop-color="#FF6FBC" offset=".078"/>+ <stop stop-color="#FF70BB" offset=".086"/>+ <stop stop-color="#FF71BA" offset=".094"/>+ <stop stop-color="#FF72BA" offset=".102"/>+ <stop stop-color="#FF73B9" offset=".109"/>+ <stop stop-color="#FF74B8" offset=".117"/>+ <stop stop-color="#FF75B7" offset=".125"/>+ <stop stop-color="#FF75B6" offset=".133"/>+ <stop stop-color="#FF76B5" offset=".141"/>+ <stop stop-color="#FF77B5" offset=".148"/>+ <stop stop-color="#FF78B4" offset=".156"/>+ <stop stop-color="#FF79B3" offset=".164"/>+ <stop stop-color="#FF7AB2" offset=".172"/>+ <stop stop-color="#FF7BB1" offset=".18"/>+ <stop stop-color="#FF7CB0" offset=".188"/>+ <stop stop-color="#FF7DB0" offset=".195"/>+ <stop stop-color="#FF7EAF" offset=".203"/>+ <stop stop-color="#FF7FAE" offset=".211"/>+ <stop stop-color="#FF80AD" offset=".219"/>+ <stop stop-color="#FF81AC" offset=".227"/>+ <stop stop-color="#FF82AB" offset=".234"/>+ <stop stop-color="#FF83AB" offset=".242"/>+ <stop stop-color="#FF84AA" offset=".25"/>+ <stop stop-color="#FF84A9" offset=".258"/>+ <stop stop-color="#FF85A8" offset=".266"/>+ <stop stop-color="#FF86A7" offset=".273"/>+ <stop stop-color="#FF87A6" offset=".281"/>+ <stop stop-color="#FF88A6" offset=".289"/>+ <stop stop-color="#FF89A5" offset=".297"/>+ <stop stop-color="#FF8AA4" offset=".305"/>+ <stop stop-color="#FF8BA3" offset=".313"/>+ <stop stop-color="#FF8CA2" offset=".32"/>+ <stop stop-color="#FF8DA1" offset=".328"/>+ <stop stop-color="#FF8EA1" offset=".336"/>+ <stop stop-color="#FF8FA0" offset=".344"/>+ <stop stop-color="#FF909F" offset=".352"/>+ <stop stop-color="#FF919E" offset=".359"/>+ <stop stop-color="#FF929D" offset=".367"/>+ <stop stop-color="#FF939C" offset=".375"/>+ <stop stop-color="#FF949C" offset=".383"/>+ <stop stop-color="#FF949B" offset=".391"/>+ <stop stop-color="#FF959A" offset=".398"/>+ <stop stop-color="#FF9699" offset=".406"/>+ <stop stop-color="#FF9798" offset=".414"/>+ <stop stop-color="#FF9897" offset=".422"/>+ <stop stop-color="#FF9996" offset=".43"/>+ <stop stop-color="#FF9A96" offset=".438"/>+ <stop stop-color="#FF9B95" offset=".445"/>+ <stop stop-color="#FF9C94" offset=".453"/>+ <stop stop-color="#FF9D93" offset=".461"/>+ <stop stop-color="#FF9E92" offset=".469"/>+ <stop stop-color="#FF9F91" offset=".477"/>+ <stop stop-color="#FFA091" offset=".484"/>+ <stop stop-color="#FFA190" offset=".492"/>+ <stop stop-color="#FFA28F" offset=".5"/>+ <stop stop-color="#FFA38E" offset=".508"/>+ <stop stop-color="#FFA38D" offset=".516"/>+ <stop stop-color="#FFA48C" offset=".523"/>+ <stop stop-color="#FFA58C" offset=".531"/>+ <stop stop-color="#FFA68B" offset=".539"/>+ <stop stop-color="#FFA78A" offset=".547"/>+ <stop stop-color="#FFA889" offset=".555"/>+ <stop stop-color="#FFA988" offset=".563"/>+ <stop stop-color="#FFAA87" offset=".57"/>+ <stop stop-color="#FFAB87" offset=".578"/>+ <stop stop-color="#FFAC86" offset=".586"/>+ <stop stop-color="#FFAD85" offset=".594"/>+ <stop stop-color="#FFAE84" offset=".602"/>+ <stop stop-color="#FFAF83" offset=".609"/>+ <stop stop-color="#FFB082" offset=".617"/>+ <stop stop-color="#FFB182" offset=".625"/>+ <stop stop-color="#FFB281" offset=".633"/>+ <stop stop-color="#FFB280" offset=".641"/>+ <stop stop-color="#FFB37F" offset=".648"/>+ <stop stop-color="#FFB47E" offset=".656"/>+ <stop stop-color="#FFB57D" offset=".664"/>+ <stop stop-color="#FFB67D" offset=".672"/>+ <stop stop-color="#FFB77C" offset=".68"/>+ <stop stop-color="#FFB87B" offset=".688"/>+ <stop stop-color="#FFB97A" offset=".695"/>+ <stop stop-color="#FFBA79" offset=".703"/>+ <stop stop-color="#FFBB78" offset=".711"/>+ <stop stop-color="#FFBC78" offset=".719"/>+ <stop stop-color="#FFBD77" offset=".727"/>+ <stop stop-color="#FFBE76" offset=".734"/>+ <stop stop-color="#FFBF75" offset=".742"/>+ <stop stop-color="#FFC074" offset=".75"/>+ <stop stop-color="#FFC173" offset=".758"/>+ <stop stop-color="#FFC173" offset=".766"/>+ <stop stop-color="#FFC272" offset=".773"/>+ <stop stop-color="#FFC371" offset=".781"/>+ <stop stop-color="#FFC470" offset=".789"/>+ <stop stop-color="#FFC56F" offset=".797"/>+ <stop stop-color="#FFC66E" offset=".805"/>+ <stop stop-color="#FFC76D" offset=".813"/>+ <stop stop-color="#FFC86D" offset=".82"/>+ <stop stop-color="#FFC96C" offset=".828"/>+ <stop stop-color="#FFCA6B" offset=".836"/>+ <stop stop-color="#FFCB6A" offset=".844"/>+ <stop stop-color="#FFCC69" offset=".852"/>+ <stop stop-color="#FFCD68" offset=".859"/>+ <stop stop-color="#FFCE68" offset=".867"/>+ <stop stop-color="#FFCF67" offset=".875"/>+ <stop stop-color="#FFD066" offset=".883"/>+ <stop stop-color="#FFD065" offset=".891"/>+ <stop stop-color="#FFD164" offset=".898"/>+ <stop stop-color="#FFD263" offset=".906"/>+ <stop stop-color="#FFD363" offset=".914"/>+ <stop stop-color="#FFD462" offset=".922"/>+ <stop stop-color="#FFD561" offset=".93"/>+ <stop stop-color="#FFD660" offset=".938"/>+ <stop stop-color="#FFD75F" offset=".945"/>+ <stop stop-color="#FFD85E" offset=".953"/>+ <stop stop-color="#FFD95E" offset=".961"/>+ <stop stop-color="#FFDA5D" offset=".969"/>+ <stop stop-color="#FFDB5C" offset=".977"/>+ <stop stop-color="#FFDC5B" offset=".984"/>+ <stop stop-color="#FFDD5A" offset=".992"/>+ <stop stop-color="#FFDE59" offset="1"/>+ </linearGradient>+ <linearGradient x1="4.942" gradientTransform="matrix(.84761 0 0 .84761 275.772 290.808)" y1="128" x2="336.392" gradientUnits="userSpaceOnUse" y2="128" id="logo_f">+ <stop stop-color="#FF66C4" offset="0"/>+ <stop stop-color="#FF66C4" offset=".008"/>+ <stop stop-color="#FF67C3" offset=".016"/>+ <stop stop-color="#FF68C2" offset=".023"/>+ <stop stop-color="#FF69C1" offset=".031"/>+ <stop stop-color="#FF6AC0" offset=".039"/>+ <stop stop-color="#FF6BBF" offset=".047"/>+ <stop stop-color="#FF6CBF" offset=".055"/>+ <stop stop-color="#FF6DBE" offset=".063"/>+ <stop stop-color="#FF6EBD" offset=".07"/>+ <stop stop-color="#FF6FBC" offset=".078"/>+ <stop stop-color="#FF70BB" offset=".086"/>+ <stop stop-color="#FF71BA" offset=".094"/>+ <stop stop-color="#FF72BA" offset=".102"/>+ <stop stop-color="#FF73B9" offset=".109"/>+ <stop stop-color="#FF74B8" offset=".117"/>+ <stop stop-color="#FF75B7" offset=".125"/>+ <stop stop-color="#FF75B6" offset=".133"/>+ <stop stop-color="#FF76B5" offset=".141"/>+ <stop stop-color="#FF77B5" offset=".148"/>+ <stop stop-color="#FF78B4" offset=".156"/>+ <stop stop-color="#FF79B3" offset=".164"/>+ <stop stop-color="#FF7AB2" offset=".172"/>+ <stop stop-color="#FF7BB1" offset=".18"/>+ <stop stop-color="#FF7CB0" offset=".188"/>+ <stop stop-color="#FF7DB0" offset=".195"/>+ <stop stop-color="#FF7EAF" offset=".203"/>+ <stop stop-color="#FF7FAE" offset=".211"/>+ <stop stop-color="#FF80AD" offset=".219"/>+ <stop stop-color="#FF81AC" offset=".227"/>+ <stop stop-color="#FF82AB" offset=".234"/>+ <stop stop-color="#FF83AB" offset=".242"/>+ <stop stop-color="#FF84AA" offset=".25"/>+ <stop stop-color="#FF84A9" offset=".258"/>+ <stop stop-color="#FF85A8" offset=".266"/>+ <stop stop-color="#FF86A7" offset=".273"/>+ <stop stop-color="#FF87A6" offset=".281"/>+ <stop stop-color="#FF88A6" offset=".289"/>+ <stop stop-color="#FF89A5" offset=".297"/>+ <stop stop-color="#FF8AA4" offset=".305"/>+ <stop stop-color="#FF8BA3" offset=".313"/>+ <stop stop-color="#FF8CA2" offset=".32"/>+ <stop stop-color="#FF8DA1" offset=".328"/>+ <stop stop-color="#FF8EA1" offset=".336"/>+ <stop stop-color="#FF8FA0" offset=".344"/>+ <stop stop-color="#FF909F" offset=".352"/>+ <stop stop-color="#FF919E" offset=".359"/>+ <stop stop-color="#FF929D" offset=".367"/>+ <stop stop-color="#FF939C" offset=".375"/>+ <stop stop-color="#FF949C" offset=".383"/>+ <stop stop-color="#FF949B" offset=".391"/>+ <stop stop-color="#FF959A" offset=".398"/>+ <stop stop-color="#FF9699" offset=".406"/>+ <stop stop-color="#FF9798" offset=".414"/>+ <stop stop-color="#FF9897" offset=".422"/>+ <stop stop-color="#FF9996" offset=".43"/>+ <stop stop-color="#FF9A96" offset=".438"/>+ <stop stop-color="#FF9B95" offset=".445"/>+ <stop stop-color="#FF9C94" offset=".453"/>+ <stop stop-color="#FF9D93" offset=".461"/>+ <stop stop-color="#FF9E92" offset=".469"/>+ <stop stop-color="#FF9F91" offset=".477"/>+ <stop stop-color="#FFA091" offset=".484"/>+ <stop stop-color="#FFA190" offset=".492"/>+ <stop stop-color="#FFA28F" offset=".5"/>+ <stop stop-color="#FFA38E" offset=".508"/>+ <stop stop-color="#FFA38D" offset=".516"/>+ <stop stop-color="#FFA48C" offset=".523"/>+ <stop stop-color="#FFA58C" offset=".531"/>+ <stop stop-color="#FFA68B" offset=".539"/>+ <stop stop-color="#FFA78A" offset=".547"/>+ <stop stop-color="#FFA889" offset=".555"/>+ <stop stop-color="#FFA988" offset=".563"/>+ <stop stop-color="#FFAA87" offset=".57"/>+ <stop stop-color="#FFAB87" offset=".578"/>+ <stop stop-color="#FFAC86" offset=".586"/>+ <stop stop-color="#FFAD85" offset=".594"/>+ <stop stop-color="#FFAE84" offset=".602"/>+ <stop stop-color="#FFAF83" offset=".609"/>+ <stop stop-color="#FFB082" offset=".617"/>+ <stop stop-color="#FFB182" offset=".625"/>+ <stop stop-color="#FFB281" offset=".633"/>+ <stop stop-color="#FFB280" offset=".641"/>+ <stop stop-color="#FFB37F" offset=".648"/>+ <stop stop-color="#FFB47E" offset=".656"/>+ <stop stop-color="#FFB57D" offset=".664"/>+ <stop stop-color="#FFB67D" offset=".672"/>+ <stop stop-color="#FFB77C" offset=".68"/>+ <stop stop-color="#FFB87B" offset=".688"/>+ <stop stop-color="#FFB97A" offset=".695"/>+ <stop stop-color="#FFBA79" offset=".703"/>+ <stop stop-color="#FFBB78" offset=".711"/>+ <stop stop-color="#FFBC78" offset=".719"/>+ <stop stop-color="#FFBD77" offset=".727"/>+ <stop stop-color="#FFBE76" offset=".734"/>+ <stop stop-color="#FFBF75" offset=".742"/>+ <stop stop-color="#FFC074" offset=".75"/>+ <stop stop-color="#FFC173" offset=".758"/>+ <stop stop-color="#FFC173" offset=".766"/>+ <stop stop-color="#FFC272" offset=".773"/>+ <stop stop-color="#FFC371" offset=".781"/>+ <stop stop-color="#FFC470" offset=".789"/>+ <stop stop-color="#FFC56F" offset=".797"/>+ <stop stop-color="#FFC66E" offset=".805"/>+ <stop stop-color="#FFC76D" offset=".813"/>+ <stop stop-color="#FFC86D" offset=".82"/>+ <stop stop-color="#FFC96C" offset=".828"/>+ <stop stop-color="#FFCA6B" offset=".836"/>+ <stop stop-color="#FFCB6A" offset=".844"/>+ <stop stop-color="#FFCC69" offset=".852"/>+ <stop stop-color="#FFCD68" offset=".859"/>+ <stop stop-color="#FFCE68" offset=".867"/>+ <stop stop-color="#FFCF67" offset=".875"/>+ <stop stop-color="#FFD066" offset=".883"/>+ <stop stop-color="#FFD065" offset=".891"/>+ <stop stop-color="#FFD164" offset=".898"/>+ <stop stop-color="#FFD263" offset=".906"/>+ <stop stop-color="#FFD363" offset=".914"/>+ <stop stop-color="#FFD462" offset=".922"/>+ <stop stop-color="#FFD561" offset=".93"/>+ <stop stop-color="#FFD660" offset=".938"/>+ <stop stop-color="#FFD75F" offset=".945"/>+ <stop stop-color="#FFD85E" offset=".953"/>+ <stop stop-color="#FFD95E" offset=".961"/>+ <stop stop-color="#FFDA5D" offset=".969"/>+ <stop stop-color="#FFDB5C" offset=".977"/>+ <stop stop-color="#FFDC5B" offset=".984"/>+ <stop stop-color="#FFDD5A" offset=".992"/>+ <stop stop-color="#FFDE59" offset="1"/>+ </linearGradient>+ <linearGradient x1="16.024" gradientTransform="matrix(.55385 0 0 .55385 96.72 92.203)" y1="128" x2="897.319" gradientUnits="userSpaceOnUse" y2="128" id="logo_i">+ <stop stop-color="#FF66C4" offset="0"/>+ <stop stop-color="#FF66C4" offset=".008"/>+ <stop stop-color="#FF67C3" offset=".016"/>+ <stop stop-color="#FF68C2" offset=".023"/>+ <stop stop-color="#FF69C1" offset=".031"/>+ <stop stop-color="#FF6AC0" offset=".039"/>+ <stop stop-color="#FF6BBF" offset=".047"/>+ <stop stop-color="#FF6CBF" offset=".055"/>+ <stop stop-color="#FF6DBE" offset=".063"/>+ <stop stop-color="#FF6EBD" offset=".07"/>+ <stop stop-color="#FF6FBC" offset=".078"/>+ <stop stop-color="#FF70BB" offset=".086"/>+ <stop stop-color="#FF71BA" offset=".094"/>+ <stop stop-color="#FF72BA" offset=".102"/>+ <stop stop-color="#FF73B9" offset=".109"/>+ <stop stop-color="#FF74B8" offset=".117"/>+ <stop stop-color="#FF75B7" offset=".125"/>+ <stop stop-color="#FF75B6" offset=".133"/>+ <stop stop-color="#FF76B5" offset=".141"/>+ <stop stop-color="#FF77B5" offset=".148"/>+ <stop stop-color="#FF78B4" offset=".156"/>+ <stop stop-color="#FF79B3" offset=".164"/>+ <stop stop-color="#FF7AB2" offset=".172"/>+ <stop stop-color="#FF7BB1" offset=".18"/>+ <stop stop-color="#FF7CB0" offset=".188"/>+ <stop stop-color="#FF7DB0" offset=".195"/>+ <stop stop-color="#FF7EAF" offset=".203"/>+ <stop stop-color="#FF7FAE" offset=".211"/>+ <stop stop-color="#FF80AD" offset=".219"/>+ <stop stop-color="#FF81AC" offset=".227"/>+ <stop stop-color="#FF82AB" offset=".234"/>+ <stop stop-color="#FF83AB" offset=".242"/>+ <stop stop-color="#FF84AA" offset=".25"/>+ <stop stop-color="#FF84A9" offset=".258"/>+ <stop stop-color="#FF85A8" offset=".266"/>+ <stop stop-color="#FF86A7" offset=".273"/>+ <stop stop-color="#FF87A6" offset=".281"/>+ <stop stop-color="#FF88A6" offset=".289"/>+ <stop stop-color="#FF89A5" offset=".297"/>+ <stop stop-color="#FF8AA4" offset=".305"/>+ <stop stop-color="#FF8BA3" offset=".313"/>+ <stop stop-color="#FF8CA2" offset=".32"/>+ <stop stop-color="#FF8DA1" offset=".328"/>+ <stop stop-color="#FF8EA1" offset=".336"/>+ <stop stop-color="#FF8FA0" offset=".344"/>+ <stop stop-color="#FF909F" offset=".352"/>+ <stop stop-color="#FF919E" offset=".359"/>+ <stop stop-color="#FF929D" offset=".367"/>+ <stop stop-color="#FF939C" offset=".375"/>+ <stop stop-color="#FF949C" offset=".383"/>+ <stop stop-color="#FF949B" offset=".391"/>+ <stop stop-color="#FF959A" offset=".398"/>+ <stop stop-color="#FF9699" offset=".406"/>+ <stop stop-color="#FF9798" offset=".414"/>+ <stop stop-color="#FF9897" offset=".422"/>+ <stop stop-color="#FF9996" offset=".43"/>+ <stop stop-color="#FF9A96" offset=".438"/>+ <stop stop-color="#FF9B95" offset=".445"/>+ <stop stop-color="#FF9C94" offset=".453"/>+ <stop stop-color="#FF9D93" offset=".461"/>+ <stop stop-color="#FF9E92" offset=".469"/>+ <stop stop-color="#FF9F91" offset=".477"/>+ <stop stop-color="#FFA091" offset=".484"/>+ <stop stop-color="#FFA190" offset=".492"/>+ <stop stop-color="#FFA28F" offset=".5"/>+ <stop stop-color="#FFA38E" offset=".508"/>+ <stop stop-color="#FFA38D" offset=".516"/>+ <stop stop-color="#FFA48C" offset=".523"/>+ <stop stop-color="#FFA58C" offset=".531"/>+ <stop stop-color="#FFA68B" offset=".539"/>+ <stop stop-color="#FFA78A" offset=".547"/>+ <stop stop-color="#FFA889" offset=".555"/>+ <stop stop-color="#FFA988" offset=".563"/>+ <stop stop-color="#FFAA87" offset=".57"/>+ <stop stop-color="#FFAB87" offset=".578"/>+ <stop stop-color="#FFAC86" offset=".586"/>+ <stop stop-color="#FFAD85" offset=".594"/>+ <stop stop-color="#FFAE84" offset=".602"/>+ <stop stop-color="#FFAF83" offset=".609"/>+ <stop stop-color="#FFB082" offset=".617"/>+ <stop stop-color="#FFB182" offset=".625"/>+ <stop stop-color="#FFB281" offset=".633"/>+ <stop stop-color="#FFB280" offset=".641"/>+ <stop stop-color="#FFB37F" offset=".648"/>+ <stop stop-color="#FFB47E" offset=".656"/>+ <stop stop-color="#FFB57D" offset=".664"/>+ <stop stop-color="#FFB67D" offset=".672"/>+ <stop stop-color="#FFB77C" offset=".68"/>+ <stop stop-color="#FFB87B" offset=".688"/>+ <stop stop-color="#FFB97A" offset=".695"/>+ <stop stop-color="#FFBA79" offset=".703"/>+ <stop stop-color="#FFBB78" offset=".711"/>+ <stop stop-color="#FFBC78" offset=".719"/>+ <stop stop-color="#FFBD77" offset=".727"/>+ <stop stop-color="#FFBE76" offset=".734"/>+ <stop stop-color="#FFBF75" offset=".742"/>+ <stop stop-color="#FFC074" offset=".75"/>+ <stop stop-color="#FFC173" offset=".758"/>+ <stop stop-color="#FFC173" offset=".766"/>+ <stop stop-color="#FFC272" offset=".773"/>+ <stop stop-color="#FFC371" offset=".781"/>+ <stop stop-color="#FFC470" offset=".789"/>+ <stop stop-color="#FFC56F" offset=".797"/>+ <stop stop-color="#FFC66E" offset=".805"/>+ <stop stop-color="#FFC76D" offset=".813"/>+ <stop stop-color="#FFC86D" offset=".82"/>+ <stop stop-color="#FFC96C" offset=".828"/>+ <stop stop-color="#FFCA6B" offset=".836"/>+ <stop stop-color="#FFCB6A" offset=".844"/>+ <stop stop-color="#FFCC69" offset=".852"/>+ <stop stop-color="#FFCD68" offset=".859"/>+ <stop stop-color="#FFCE68" offset=".867"/>+ <stop stop-color="#FFCF67" offset=".875"/>+ <stop stop-color="#FFD066" offset=".883"/>+ <stop stop-color="#FFD065" offset=".891"/>+ <stop stop-color="#FFD164" offset=".898"/>+ <stop stop-color="#FFD263" offset=".906"/>+ <stop stop-color="#FFD363" offset=".914"/>+ <stop stop-color="#FFD462" offset=".922"/>+ <stop stop-color="#FFD561" offset=".93"/>+ <stop stop-color="#FFD660" offset=".938"/>+ <stop stop-color="#FFD75F" offset=".945"/>+ <stop stop-color="#FFD85E" offset=".953"/>+ <stop stop-color="#FFD95E" offset=".961"/>+ <stop stop-color="#FFDA5D" offset=".969"/>+ <stop stop-color="#FFDB5C" offset=".977"/>+ <stop stop-color="#FFDC5B" offset=".984"/>+ <stop stop-color="#FFDD5A" offset=".992"/>+ <stop stop-color="#FFDE59" offset="1"/>+ </linearGradient>+ </defs>+ <path d="M1 4C1 2.34315 2.34315 1 4 1H180C181.657 1 183 2.34315 183 4V35C183 36.6569 181.657 38 180 38H4C2.34314 38 1 36.6569 1 35V4Z" fill="black"/>+ <path d="M1 4C1 2.34315 2.34315 1 4 1H180C181.657 1 183 2.34315 183 4V35C183 36.6569 181.657 38 180 38H4C2.34314 38 1 36.6569 1 35V4Z" stroke="#F6821F" stroke-width="2"/>++ <g transform="translate(14, 7.5) scale(0.04)">+ <g clip-path="url(#logo_a)">+ <g clip-path="url(#logo_b)">+ <path fill="url(#logo_c)" d="M4.188 290.809v216.988h280.94V290.809Zm0 0"/>+ </g>+ </g>+ <g clip-path="url(#logo_d)">+ <g clip-path="url(#logo_e)">+ <path fill="url(#logo_f)" d="M279.96 290.809v216.988h280.942V290.809Zm0 0"/>+ </g>+ </g>+ <g clip-path="url(#logo_g)">+ <g clip-path="url(#logo_h)">+ <path fill="url(#logo_i)" d="M105.594 92.203v141.785h488.101V92.203Zm0 0"/>+ </g>+ </g>+ </g>++ <text x="44" y="24.5" font-family="system-ui, -apple-system, sans-serif" font-size="13" font-weight="600" fill="url(#text_gradient)">Open in ToDiagram</text>+</svg>diff --git a/apps/www/src/features/editor/views/GraphView/NotSupported.tsx b/apps/www/src/features/editor/views/GraphView/NotSupported.tsxindex 84abdc53..806fe69e 100644--- a/apps/www/src/features/editor/views/GraphView/NotSupported.tsx+++ b/apps/www/src/features/editor/views/GraphView/NotSupported.tsx@@ -2,6 +2,7 @@ import React from "react";import { Anchor, Badge, Button, Image, List, Overlay, Stack, Text, ThemeIcon } from "@mantine/core";import styled, { keyframes } from "styled-components";import { LuCheck } from "react-icons/lu";+import { getToDiagramEditorUrl, openInToDiagram } from "../../../../lib/utils/todiagramHandoff";import useConfig from "../../../../store/useConfig";import useFile from "../../../../store/useFile";@@ -102,6 +103,19 @@ export const NotSupported = () => {const darkmodeEnabled = useConfig(state => state.darkmodeEnabled);const format = useFile(state => state.format);+ const continueUrl = getToDiagramEditorUrl({ medium: "data_limit", format });++ const handleContinue = (event: React.MouseEvent<HTMLAnchorElement>) => {+ const opened = openInToDiagram({+ url: continueUrl,+ content: useFile.getState().getContents(),+ format,+ });++ // Popup blocked: let the anchor navigate normally.+ if (opened) event.preventDefault();+ };+return (<Overlay backgroundOpacity={0.6} color={darkmodeEnabled ? "#111" : "#e2f0f3"} blur="3" center><CardWrapper data-dark={darkmodeEnabled}>@@ -145,8 +159,8 @@ export const NotSupported = () => {<ShiningButton><Buttoncomponent="a"- href={`https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=data_limit&format=${format}&example=true`}- rel="noopener"+ href={continueUrl}+ onClick={handleContinue}size="md"fullWidthtarget="_blank"diff --git a/apps/www/src/features/editor/views/GraphView/OpenInToDiagram.tsx b/apps/www/src/features/editor/views/GraphView/OpenInToDiagram.tsxnew file mode 100644index 00000000..df24042e--- /dev/null+++ b/apps/www/src/features/editor/views/GraphView/OpenInToDiagram.tsx@@ -0,0 +1,53 @@+import React from "react";+import styled from "styled-components";+import { getToDiagramEditorUrl, openInToDiagram } from "../../../../lib/utils/todiagramHandoff";+import useFile from "../../../../store/useFile";++const BUTTON_IMAGE = "/assets/open-in-todiagram.svg";++const StyledLink = styled.a`+ position: absolute;+ bottom: 14px;+ left: 14px;+ z-index: 3;+ display: block;+ line-height: 0;+ border-radius: 8px;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);+ transition:+ transform 0.15s ease,+ box-shadow 0.15s ease;++ &:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);+ }++ img {+ display: block;+ height: 39px;+ width: auto;+ }+`;++export const OpenInToDiagram = () => {+ const format = useFile(state => state.format);+ const href = getToDiagramEditorUrl({ medium: "open_button", format });++ const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => {+ const opened = openInToDiagram({+ url: href,+ content: useFile.getState().getContents(),+ format,+ });++ // Popup blocked: let the anchor navigate normally.+ if (opened) event.preventDefault();+ };++ return (+ <StyledLink href={href} target="_blank" onClick={handleClick} title="Open in ToDiagram">+ <img src={BUTTON_IMAGE} alt="Open in ToDiagram" width={184} height={39} loading="lazy" />+ </StyledLink>+ );+};diff --git a/apps/www/src/features/editor/views/GraphView/index.tsx b/apps/www/src/features/editor/views/GraphView/index.tsxindex cf4af9e6..5abcb11c 100644--- a/apps/www/src/features/editor/views/GraphView/index.tsx+++ b/apps/www/src/features/editor/views/GraphView/index.tsx@@ -8,6 +8,7 @@ import useConfig from "../../../../store/useConfig";import useJson from "../../../../store/useJson";import { useModal } from "../../../../store/useModal";import { NotSupported } from "./NotSupported";+import { OpenInToDiagram } from "./OpenInToDiagram";import { SecureInfo } from "./SecureInfo";import { Toolbar } from "./Toolbar";import useGraph from "./stores/useGraph";@@ -88,6 +89,7 @@ export const GraphView = ({ isWidget = false }: GraphProps) => {return (<Box pos="relative" h="100%" w="100%">{!isWidget && <SecureInfo />}+ {!isWidget && <OpenInToDiagram />}{!isWidget && <Toolbar />}<StyledEditorWrapper$widget={isWidget}diff --git a/apps/www/src/lib/utils/todiagramHandoff.ts b/apps/www/src/lib/utils/todiagramHandoff.tsnew file mode 100644index 00000000..0f61bf2f--- /dev/null+++ b/apps/www/src/lib/utils/todiagramHandoff.ts@@ -0,0 +1,64 @@+import type { FileFormat } from "../../enums/file.enum";++export const TODIAGRAM_ORIGIN = "https://todiagram.com";++// `source=jsoncrack` tells ToDiagram to expect the document over window.opener.+export const getToDiagramEditorUrl = ({+ medium,+ format,+}: {+ medium: string;+ format: FileFormat;+}): string =>+ `${TODIAGRAM_ORIGIN}/editor?utm_source=jsoncrack&utm_medium=${medium}&source=jsoncrack&format=${format}`;++interface OpenInToDiagramOptions {+ url: string;+ content: string;+ format: FileFormat;+ timeoutMs?: number;+}++/**+ * Opens ToDiagram in a new tab and, once it posts `handoff-ready`, sends the+ * document over `postMessage`. Returns `false` if the popup was blocked.+ */+export const openInToDiagram = ({+ url,+ content,+ format,+ // Generous: ToDiagram only announces itself after its editor has hydrated,+ // which can take a while on a cold load.+ timeoutMs = 90_000,+}: OpenInToDiagramOptions): boolean => {+ // Deliberately no "noopener": the new tab needs window.opener to reach us.+ // ToDiagram severs the link itself right after the document lands.+ const child = window.open(url, "_blank");+ if (!child) return false;++ let timer: number | null = null;++ const stop = () => {+ window.removeEventListener("message", onMessage);+ if (timer !== null) window.clearTimeout(timer);+ timer = null;+ };++ const onMessage = (event: MessageEvent) => {+ if (event.source !== child || event.origin !== TODIAGRAM_ORIGIN) return;++ const data = event.data;+ if (!data || data.source !== "todiagram" || data.type !== "handoff-ready") return;++ child.postMessage(+ { source: "jsoncrack", type: "handoff-load", content, format },+ TODIAGRAM_ORIGIN+ );+ stop();+ };++ window.addEventListener("message", onMessage);+ timer = window.setTimeout(stop, timeoutMs);++ return true;+};