Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

11.2 KB
Raw Blame
<svg xmlns="http://www.w3.org/2000/svg" width="1040" height="964" viewBox="0 0 1040 964" font-family="JetBrains Mono, SF Mono, SFMono-Regular, Menlo, Consolas, Liberation Mono, monospace" role="img" aria-label="Magento 2, running the nine Mercur modules, sits above Mercur, running @mercurjs/magento2-connector-plugin beside the marketplace modules. Between them are three channels: the Admin API with a secret key and the Store API with a publishable key, which Magento calls, and signed webhooks to POST /mercur/webhook, which Mercur sends.">
<title>Magento 2, running the nine Mercur modules, sits above Mercur, running @mercurjs/magento2-connector-plugin beside the marketplace modules. Between them are three channels: the Admin API with a secret key and the Store API with a publishable key, which Magento calls, and signed webhooks to POST /mercur/webhook, which Mercur sends.</title>
<defs><filter id="sh" x="-30%" y="-30%" width="160%" height="170%"><feDropShadow dx="0" dy="18" stdDeviation="22" flood-color="#18181b" flood-opacity="0.07"/></filter><filter id="gr" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="table" tableValues="0 1"/></feComponentTransfer><feComposite in2="SourceGraphic" operator="in"/></filter><pattern id="dt" width="11" height="11" patternUnits="userSpaceOnUse"><rect x="4.5" y="4.5" width="1.6" height="1.6" fill="#d9d9de"/></pattern><clipPath id="c1"><rect x="0" y="0" width="960" height="230"/></clipPath><clipPath id="c2"><rect x="0" y="0" width="304" height="246"/></clipPath><clipPath id="c3"><rect x="0" y="0" width="304" height="246"/></clipPath><clipPath id="c4"><rect x="0" y="0" width="304" height="246"/></clipPath><clipPath id="c5"><rect x="0" y="0" width="960" height="280"/></clipPath></defs>
<rect x="440" y="-88" width="88" height="88" fill="url(#dt)"/><rect x="-87.5" y="0.5" width="87" height="87" fill="none" stroke="#ececef" stroke-width="1"/><rect x="352" y="0" width="88" height="88" fill="url(#dt)"/><rect x="1056.5" y="0.5" width="87" height="87" fill="none" stroke="#ececef" stroke-width="1"/><rect x="176" y="88" width="88" height="88" fill="url(#dt)"/><rect x="616" y="88" width="88" height="88" fill="#e4e4e7"/><rect x="616" y="88" width="88" height="88" fill="#71717a" opacity="0.22" filter="url(#gr)"/><rect x="880.5" y="88.5" width="87" height="87" fill="none" stroke="#ececef" stroke-width="1"/><rect x="264" y="176" width="88" height="88" fill="url(#dt)"/><rect x="352.5" y="176.5" width="87" height="87" fill="none" stroke="#ececef" stroke-width="1"/><rect x="880" y="176" width="88" height="88" fill="url(#dt)"/><rect x="1056" y="792" width="88" height="88" fill="#e4e4e7"/><rect x="1056" y="792" width="88" height="88" fill="#71717a" opacity="0.22" filter="url(#gr)"/><rect x="-88" y="880" width="88" height="88" fill="url(#dt)"/><rect x="88.5" y="968.5" width="87" height="87" fill="none" stroke="#ececef" stroke-width="1"/><rect x="176" y="968" width="88" height="88" fill="url(#dt)"/><rect x="264" y="968" width="88" height="88" fill="url(#dt)"/><rect x="704" y="968" width="88" height="88" fill="url(#dt)"/><rect x="880" y="968" width="88" height="88" fill="#e4e4e7"/><rect x="880" y="968" width="88" height="88" fill="#71717a" opacity="0.22" filter="url(#gr)"/><rect x="968" y="968" width="88" height="88" fill="#e4e4e7"/><rect x="968" y="968" width="88" height="88" fill="#71717a" opacity="0.22" filter="url(#gr)"/><rect x="40" y="48" width="960" height="230" fill="#ffffff" filter="url(#sh)"/><rect x="40" y="48" width="960" height="230" fill="#ffffff"/><g transform="translate(40 48)"><g clip-path="url(#c1)"><rect x="24" y="29" width="10" height="10" fill="#18181b"/><text x="46" y="40.3" font-size="18" fill="#18181b" font-weight="500">Magento 2</text><text x="936" y="39.3" font-size="15" fill="#a1a1aa" text-anchor="end">mercurjs/magento2-connector</text><line x1="0" y1="68" x2="960" y2="68" stroke="#e4e4e7" stroke-width="1"/><text x="24" y="103.3" font-size="15" fill="#71717a">storefront · cart · checkout · payment · your catalog</text><rect x="24" y="128" width="123" height="30" fill="#f4f4f5"/><text x="36" y="148.3" font-size="15" fill="#71717a">Mercur_Core</text><rect x="157" y="128" width="150" height="30" fill="#f4f4f5"/><text x="169" y="148.3" font-size="15" fill="#71717a">Mercur_Process</text><rect x="317" y="128" width="168" height="30" fill="#f4f4f5"/><text x="329" y="148.3" font-size="15" fill="#71717a">Mercur_Connector</text><rect x="495" y="128" width="195" height="30" fill="#f4f4f5"/><text x="507" y="148.3" font-size="15" fill="#71717a">Mercur_OfferIndexer</text><rect x="700" y="128" width="150" height="30" fill="#f4f4f5"/><text x="712" y="148.3" font-size="15" fill="#71717a">Mercur_Catalog</text><rect x="24" y="170" width="177" height="30" fill="#f4f4f5"/><text x="36" y="190.3" font-size="15" fill="#71717a">Mercur_Settlement</text><rect x="211" y="170" width="159" height="30" fill="#f4f4f5"/><text x="223" y="190.3" font-size="15" fill="#71717a">Mercur_Frontend</text><rect x="380" y="170" width="150" height="30" fill="#f4f4f5"/><text x="392" y="190.3" font-size="15" fill="#71717a">Mercur_GraphQl</text><rect x="540.5" y="170.5" width="167" height="29" fill="none" stroke="#c4c4cc" stroke-width="1" stroke-dasharray="3 3"/><text x="552" y="190.3" font-size="15" fill="#71717a">Mercur_Inventory</text></g></g><rect x="40.5" y="48.5" width="959" height="229" fill="none" stroke="#e4e4e7" stroke-width="1"/><path d="M192 278 L192 334" fill="none" stroke="#c4c4cc" stroke-width="1"/><rect x="189" y="331" width="6" height="6" fill="#c4c4cc"/><rect x="40" y="334" width="304" height="246" fill="#ffffff" filter="url(#sh)"/><rect x="40" y="334" width="304" height="246" fill="#ffffff"/><g transform="translate(40 334)"><g clip-path="url(#c2)"><rect x="20" y="27" width="10" height="10" fill="#71717a"/><text x="42" y="38.3" font-size="18" fill="#18181b" font-weight="500">Admin API</text><line x1="0" y1="64" x2="304" y2="64" stroke="#e4e4e7" stroke-width="1"/><text x="20" y="96.9" font-size="14" fill="#a1a1aa" letter-spacing="1.2">SECRET API KEY</text><line x1="0" y1="116" x2="304" y2="116" stroke="#ededf0" stroke-width="1"/><text x="20" y="151.3" font-size="15" fill="#18181b">GET /admin/offers</text><text x="20" y="185.3" font-size="15" fill="#3f3f46">GET /admin/sellers</text><text x="20" y="219.3" font-size="15" fill="#3f3f46">…/payments/capture</text></g></g><rect x="40.5" y="334.5" width="303" height="245" fill="none" stroke="#e4e4e7" stroke-width="1"/><path d="M520 278 L520 334" fill="none" stroke="#c4c4cc" stroke-width="1"/><rect x="517" y="331" width="6" height="6" fill="#c4c4cc"/><rect x="368" y="334" width="304" height="246" fill="#ffffff" filter="url(#sh)"/><rect x="368" y="334" width="304" height="246" fill="#ffffff"/><g transform="translate(368 334)"><g clip-path="url(#c3)"><rect x="20" y="27" width="10" height="10" fill="#71717a"/><text x="42" y="38.3" font-size="18" fill="#18181b" font-weight="500">Store API</text><line x1="0" y1="64" x2="304" y2="64" stroke="#e4e4e7" stroke-width="1"/><text x="20" y="96.9" font-size="14" fill="#a1a1aa" letter-spacing="1.2">PUBLISHABLE KEY</text><line x1="0" y1="116" x2="304" y2="116" stroke="#ededf0" stroke-width="1"/><text x="20" y="151.3" font-size="15" fill="#18181b">POST /store/carts</text><text x="20" y="185.3" font-size="15" fill="#3f3f46">/store/shipping-options</text><text x="20" y="219.3" font-size="15" fill="#3f3f46">…/carts/:id/complete</text></g></g><rect x="368.5" y="334.5" width="303" height="245" fill="none" stroke="#e4e4e7" stroke-width="1"/><path d="M848 278 L848 334" fill="none" stroke="#c4c4cc" stroke-width="1"/><rect x="845" y="331" width="6" height="6" fill="#c4c4cc"/><rect x="696" y="334" width="304" height="246" fill="#ffffff" filter="url(#sh)"/><rect x="696" y="334" width="304" height="246" fill="#ffffff"/><g transform="translate(696 334)"><g clip-path="url(#c4)"><rect x="20" y="27" width="10" height="10" fill="#7c3aed"/><text x="42" y="38.3" font-size="18" fill="#18181b" font-weight="500">Webhooks</text><line x1="0" y1="64" x2="304" y2="64" stroke="#e4e4e7" stroke-width="1"/><text x="20" y="96.9" font-size="14" fill="#a1a1aa" letter-spacing="1.2">HMAC-SHA256</text><line x1="0" y1="116" x2="304" y2="116" stroke="#ededf0" stroke-width="1"/><text x="20" y="151.3" font-size="15" fill="#18181b">POST /mercur/webhook</text><text x="20" y="185.3" font-size="15" fill="#3f3f46">offer.updated</text><text x="20" y="219.3" font-size="15" fill="#3f3f46">shipment.created</text></g></g><rect x="696.5" y="334.5" width="303" height="245" fill="none" stroke="#e4e4e7" stroke-width="1"/><path d="M192 580 L192 636" fill="none" stroke="#c4c4cc" stroke-width="1"/><rect x="189" y="633" width="6" height="6" fill="#c4c4cc"/><path d="M520 580 L520 636" fill="none" stroke="#c4c4cc" stroke-width="1"/><rect x="517" y="633" width="6" height="6" fill="#c4c4cc"/><path d="M848 580 L848 636" fill="none" stroke="#c4c4cc" stroke-width="1"/><rect x="845" y="633" width="6" height="6" fill="#c4c4cc"/><rect x="40" y="636" width="960" height="280" fill="#ffffff" filter="url(#sh)"/><rect x="40" y="636" width="960" height="280" fill="#ffffff"/><g transform="translate(40 636)"><g clip-path="url(#c5)"><rect x="24" y="29" width="10" height="10" fill="#18181b"/><text x="46" y="40.3" font-size="18" fill="#18181b" font-weight="500">Mercur API</text><text x="936" y="39.3" font-size="15" fill="#a1a1aa" text-anchor="end">withMercur()</text><line x1="0" y1="68" x2="960" y2="68" stroke="#e4e4e7" stroke-width="1"/><text x="24" y="107.9" font-size="14" fill="#18181b" letter-spacing="1.2">PLUGIN</text><text x="24" y="133.3" font-size="15" fill="#a1a1aa">@mercurjs/magento2-connector-plugin</text><rect x="420" y="88" width="159" height="30" fill="#f4f4f5"/><text x="432" y="108.3" font-size="15" fill="#71717a">magento_webhook</text><rect x="589" y="88" width="204" height="30" fill="#f4f4f5"/><text x="601" y="108.3" font-size="15" fill="#71717a">pp_external_external</text><rect x="420" y="130" width="168" height="30" fill="#f4f4f5"/><text x="432" y="150.3" font-size="15" fill="#71717a">/admin/magento/*</text><rect x="598" y="130" width="186" height="30" fill="#f4f4f5"/><text x="610" y="150.3" font-size="15" fill="#71717a">Settings → Magento</text><line x1="0" y1="180" x2="960" y2="180" stroke="#ededf0" stroke-width="1"/><text x="24" y="219.9" font-size="14" fill="#18181b" letter-spacing="1.2">CORE</text><text x="24" y="245.3" font-size="15" fill="#a1a1aa">@mercurjs/core</text><rect x="420" y="200" width="78" height="30" fill="#f4f4f5"/><text x="432" y="220.3" font-size="15" fill="#71717a">seller</text><rect x="508" y="200" width="69" height="30" fill="#f4f4f5"/><text x="520" y="220.3" font-size="15" fill="#71717a">offer</text><rect x="587" y="200" width="123" height="30" fill="#f4f4f5"/><text x="599" y="220.3" font-size="15" fill="#71717a">order-group</text><rect x="720" y="200" width="114" height="30" fill="#f4f4f5"/><text x="732" y="220.3" font-size="15" fill="#71717a">commission</text><rect x="844" y="200" width="78" height="30" fill="#f4f4f5"/><text x="856" y="220.3" font-size="15" fill="#71717a">payout</text></g></g><rect x="40.5" y="636.5" width="959" height="279" fill="none" stroke="#e4e4e7" stroke-width="1"/>
</svg>