Profile avatar
headlessheretic.com
Headless heretic 🔱 Writer. Freelance developer (ecommerce). Sci-fi and whiskey. I talk about headless development, e-commerce and freelancing
62 posts 25 followers 45 following
Prolific Poster
Conversation Starter

I've been having too much fun with Hydrogen and Sanity to post in a while

Figured out a solution to this. In the GROQ query, you can concatenate the string with an empty string, seems to throw stega off so it doesn't get appended. E.g. 'alignment': '' + alignment

I split my weeks between headless and theme development, and let me tell you, they're polar opposites. One has a great DX and allows for modern dev practices, while the other is extremely error-prone and leads to many headaches. I would quit ecom if I had to work in themes exclusively 1/2

What is going on here? JavaScript, you're drunk!

Trying to see how fast I can rebuild a site with Hydrogen using my recipe collection. The site is already headless, so I can reuse a fair bit. But it uses Chakra and Gatsby on the frontend, and I'm all in on Tailwind. Plus the Sanity schema is a mess and the Studio is V2, so an upgrade is in order

Trying to enable drag and drop for visual editing in Hydrogen with @sanity.io , but not having much luck. I followed the steps here: www.sanity.io/docs/enablin... but I can't seem to enable the drag and drop editing.

Rebuilding a site with Hydrogen this week, with @sanity.io for content. I've missed this setup so much.

Headless provides a better experience for everyone. Why is it even an argument? Sure, there's some a lack of housekeeping, but this screenshot highlights the disparity between modern systems and whatever this is

A few months ago I found a Shopify plugin for Vite and thought it would be awesome. But it just made me realise that the problem with themes is not the tech, it's the DX The plugin doesn't fix any of the underlying issues which makes theme dev such a bad experience

I've set up CI for themes. But I don't trust it. The way Shopify handles content for themes is so clunky

Deploying a theme next week. Fun times. Scared to death I'll mess up the content somehow. This DX sucks

Why would you use a private npm package if you're building for a client? You're only creating problems for everyone, including yourself, down the road.

What are the benefits and potential drawbacks of embedding the @sanity.io studio on the site? I'm still debating which is the better way to go

I'm done being silent maxkarlsson.dev/blog/rise-of...

Another underappreciated bonus of Hydrogen+Oxygen is that you get hosting included. There is no need to sell merchants an additional monthly hosting cost.

I'm a big advocate for using the frameworks and starters developed by the platforms (Hydrogen for Shopify, Catalyst for BigCommerce, etc) because they provide a standard, at least as a starting point, that can be handed over to other devs. Tear down the walls, make headless more accessible

Why did Lorna Jane use Next.js instead of Hydrogen? Genuinely curious. I hope it's not because the agency they contacted used their in-house framework with years of tech debt to deliver a brand-new site

When you build for a client, you're also building for other devs. You don't want to be saddled with an unhappy client that can't go anywhere else because you built a wall around their garden. It will eventually hurt your reputation

If you're building for a client: use the most popular tech If you're building for yourself: use whatever you want

If you're sending me an unsolicited "hire me" PM in a community space, expect to be blocked

New headless site with tech debt story of the day. Client got a new site last year. Need to migrate from checkout to cart API by April 1. Cart API had been the main API for hydrogen for I don't know how long. In-house frameworks need to go the way of the dodo

This is pretty cool! The components are built with @shadcn/ui and Tailwind, so they're very customisable. 21st.dev

I freaked out this morning because the laptop compartment on my backpack was open, and the laptop wasn't there. I didn't take it out at home, so I thought, "Great, now I need to buy a new laptop." I went into my office to dig up an old Mac mini. I found the laptop on my desk 🫣

Agency headless starters, or in-house frameworks are bad for clients. They've often been built over several years, leaving clients with a brand new site stuck with years of tech debt

I feel like Grammarly has made me worse at writing. Kinda the opposite of what I'd hoped. But most of the time, I write sloppily knowing the big green G will take care of it.

Closing in on the one year mark since I was made redundant and decided to go back to freelancing Gave myself 10 weeks as a PoC. Got some gigs in that time. Then everything happened at once. Took about 3-4 months to get some stability. The rest of the year to build on it. Key this year: diversify

One of the first things I do with most starters is to rip out most things. I like that the Hydrogen starter is very bare-bones style-wise. But it would be even better if, when I select Tailwind during setup, the existing styles are all Tailwind utility classes (please not the @apply directive).

This @sanity.io presentation tool is pretty cool. I barely need to leave the studio while I'm working on a site now

AI saves me time with menial tasks, then wastes it on complex tasks. Computers are still dumb, but with the advent of English level abstraction, they're just getting dumber

Do you use copilot? If so, how often do you find yourself stuck in a loop with that PoS telling it that what it just spit out doesn't work, only for it to repeat the last bit of garbage that didn't work, so you say it again and it's back to the other one? Happens to me ad nauseum

Just realised @sanity.io studio ships with their own icons now. I'm probably late to the party, it used to be react-icons, but this keeps the studio look uniform. It's the little things.