TE
ТехЭхо
ГлавнаяТоп за 24 часаНовейшиеЛучшиеВопросыПоказатьВакансии
GitHubTwitter
Главная

ТехЭхо

Платформа технологических новостей, созданная с использованием Next.js, предоставляющая глобальные технологические новости и обсуждения.

GitHubTwitter

Главная

ГлавнаяНовейшиеЛучшиеВопросыПоказатьВакансии

Ресурсы

HackerNews APIОригинальный HackerNewsNext.js

© 2025 ТехЭхо. Все права защищены.

Storefront Web Components

162 балловавтор: maltenuhn4 дня назад

22 comments

blittle4 дня назад
I&#x27;m on the dev team that built this. Happy to answer any questions!<p>We essentially use web components as a templating language to dynamically generate a GraphQL query to Shopify. Then render the data as text nodes inside the web components. This is powerful because the components don&#x27;t include shadow roots. So you can come with your own HTML and CSS.<p>Most web component libraries are opinionated about design, and give you many CSS custom properties or CSS parts to customize. We tried really hard to invert that, and instead give you the design control. Most of our web components just produce a text node, with no shadow root!<p>There&#x27;s a few exceptions, like the cart for example, where it&#x27;s easier to just have an out of the box component that does it all for you `&lt;shopify-cart&gt;`. Though...you can actually build the entire cart component with the lower level primitives!
评论 #44057987 未加载
评论 #44064225 未加载
评论 #44056081 未加载
评论 #44056099 未加载
评论 #44058457 未加载
评论 #44061312 未加载
评论 #44055630 未加载
评论 #44056697 未加载
skeptrune4 дня назад
I could not understand what this was from the linked site. Docs if anyone is curious - <a href="https:&#x2F;&#x2F;shopify.dev&#x2F;docs&#x2F;api&#x2F;storefront-web-components" rel="nofollow">https:&#x2F;&#x2F;shopify.dev&#x2F;docs&#x2F;api&#x2F;storefront-web-components</a>.<p>I really appreciate that they built this. The `shopify-context` is especially useful. Makes rendering all of the various resources infinitely easier.
评论 #44054971 未加载
superchris4 дня назад
This is great, I think this is perfect use for web components and gives your customers trying to build a fully custom storefront a much better experience. I built something similar for stripe based sites a couple years ago but didn&#x27;t get too much attention: <a href="https:&#x2F;&#x2F;elements.launchscout.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;elements.launchscout.com&#x2F;</a>
mercurialsolo4 дня назад
This is a master move though - it&#x27;s kinda like video(youtube) embeds in your site. If every site could sell and have an infinite curated catalog from shopify merchants - shopify becomes both the discovery, distribution and the shopping network?
评论 #44056343 未加载
no_wizard4 дня назад
It seems that maybe web component advocates are right. Eventually they’ll eat everything, even if slowly.<p>Shopify for the longest time had a “hardline” with only supporting React directly, if I recall correctly
评论 #44055510 未加载
_benton3 дня назад
These are awesome! Perfect use case for web component, incredible how much less code and work is required compared to hydrogen with React (no disrespect intended). Very clever.<p>Is it going to be open sourced at all? I took a brief look at shopify&#x27;s GitHub and didn&#x27;t see it there.
skrebbel4 дня назад
Now <i>this</i> is what Web Components are great for.<p>The playground is very well done btw, worth checking out IMO: <a href="https:&#x2F;&#x2F;webcomponents.shopify.dev&#x2F;playground?view=editor" rel="nofollow">https:&#x2F;&#x2F;webcomponents.shopify.dev&#x2F;playground?view=editor</a>
jonah4 дня назад
Heh, they have prompts you can feed to an LLM:<p><a href="https:&#x2F;&#x2F;webcomponents.shopify.dev&#x2F;llms.txt" rel="nofollow">https:&#x2F;&#x2F;webcomponents.shopify.dev&#x2F;llms.txt</a>
jjcm4 дня назад
Shopify&#x27;s tooling is top notch. They&#x27;re one of my go-to examples of a really well engineered design system and usable docs. Highly recommend using them for inspiration (and obv for integration if you need a shop front).
threeseed4 дня назад
Are developers able to use this within Shopify apps ?<p>I wish Shopify made it easier to discern who the audience are for these frameworks since they have quite a few.
评论 #44057436 未加载
theyknowitsxmas3 дня назад
Does this work on the Starter plan, that is, headless? When I talked to NextJS Commerce devs years ago they said no.
qu0b3 дня назад
This is great, now that react 19 also supports web components this makes total sense.
desireco423 дня назад
Solid. I really like this direction.<p>I never used Shopify much, can it be used to deliver digital products?
azar13 дня назад
I opened the demo and said out loud &quot;this is nuts!&quot;. Amazing job team.
lelandfe3 дня назад
Probably the best fit for web components I&#x27;ve seen. Very cool.
zero05294 дня назад
I don’t understand is this made for the hydrogen framework?
评论 #44055697 未加载
postepowanieadm4 дня назад
MD version is intended for LLM consumption?
评论 #44059972 未加载
firemelt3 дня назад
this is the future web that I want
bflesch4 дня назад
Shopify currently has a scandal in Germany because they blocked payouts for a TV-famous startup which &quot;ships too slowly&quot;.<p>The startup locally produces clothing from sheep wool and only starts production once the order is in. Shopify is unable to understand the concept of make-to-order-production, it&#x27;s a bit ridiculous to see what their support people are writing.<p>More on youtube: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ovRpTsHO13U" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ovRpTsHO13U</a>
评论 #44054904 未加载
metalrain4 дня назад
What a terrible UX on that site. This site barely works on my mobile.<p>When I think storefront I think simple &amp; fast, this site is not at all that.<p>Stores are &quot;hidden&quot; by design, it is about the products and store itself just provides them.
评论 #44054423 未加载
评论 #44054587 未加载
评论 #44055495 未加载
评论 #44054901 未加载
delusional4 дня назад
As other have mentioned the site design is way overcooked. It&#x27;s also interesting that the example products all seem to be riffs off of Teenage Engineering stuff.
评论 #44054927 未加载
charlesabarnes4 дня назад
I _really_ dislike this marketing site, but I really appreciate this effort from shopify.<p>constructive criticism: It looks cool, but it took far too long to get my bearings on the site
评论 #44054906 未加载
评论 #44054936 未加载