Does croct init work on a Hydrogen storefront or do I wire everything manually?
We are starting a new Hydrogen storefront (Hydrogen 2026.4.0, Node 22.12) and I am evaluating Croct for personalization. The quick start mentions npx croct@latest init but every example I found is Next.js.
Does the CLI understand a Hydrogen project, or do I need to add the provider and request context by hand? I would rather not reverse-engineer the wiring from another framework's docs if there is an automated path
1 answer
The CLI handles Hydrogen automatically. Running npx croct@latest init in your project root detects the Hydrogen setup, installs the SDK, and wires the provider and request context for you. No manual wiring is required for a standard project.
A few details for your setup:
- The Hydrogen SDK is built for Hydrogen on React Router 7 or Remix, so a Hydrogen 2026.4.0 project is supported.
- The CLI will prompt you to log in and select your organization, workspace, and application during initialization.
- To verify the integration, open the Integration page on the Croct dashboard. Once your storefront serves traffic, you should see the green "Received traffic in the past 24 hours" indicator.
After that, content resolves in your Hydrogen loaders, so pages arrive already personalized. The Hydrogen SDK integration guide covers the full reference.