Introduction
Hydra is a hosted headless commerce API. It handles products, inventory, orders, checkout, payments, shipping, and webhooks. You build the frontend with whatever framework you want.
Why Hydra?
- API-first. Every feature is accessible through a clean REST API with consistent conventions
- Multi-tenant. Each project is isolated with its own data, API keys, and configuration
- Test mode built in. Every project has a test environment with separate data, toggled by a single header
We play nice with…
Next.js, Astro, Nuxt, SvelteKit, Remix, Gatsby, Angular, plain HTML, mobile apps, or anything that can make an HTTP request. Hydra is a REST API. If your framework can fetch, it works.
How it works
- Create a project. Sign up, name your project, and get your API keys
- Add your products. Use the admin panel or API to manage products, collections, and inventory
- Build your frontend. Use the API to display products, handle cart, and process checkout
- Go live. Switch from test mode to live, connect Stripe, and start selling
Quick example
Fetch products from your project in any framework:
const res = await fetch('https://api.hydrajs.dev/v1/products?limit=20', {
headers: {
Authorization: 'Bearer sk_live_your_api_key',
},
});
const { data: products } = await res.json();
Everything your merchant needs, nothing they don’t
| Feature | Description |
|---|---|
| Products | Variants, images, pricing, inventory tracking |
| Collections | Organize products into groups with rules or manual selection |
| Cart | Server-side cart with automatic price calculation |
| Checkout | Multi-step checkout with address validation and tax calculation |
| Orders | Order lifecycle management with fulfillment tracking |
| Customers | Customer profiles with order history and addresses |
| Webhooks | Real-time event notifications for order and inventory changes |
| Shipping | Configurable shipping zones, rates, and carrier integration |
Next steps
Ready to start building? Head to the Quickstart guide to create your first project and make your first API call.