Getting Started
OneFive 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 OneFive?
- 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
- Developer-friendly. Typed SDK, OpenAPI spec, and comprehensive documentation
Works with any framework
Next.js, Astro, Nuxt, SvelteKit, Remix, Gatsby, Angular, plain HTML, mobile apps, or anything that can make an HTTP request. OneFive is a REST API. If your framework can fetch, it works.
How it works
- Create a project. Sign up, name your store, and get your API keys
- Add your products. Use the admin panel or API to manage products and images
- Build your frontend. Use the SDK or REST API to display products and process checkout
- Go live. Connect your payment provider and start selling
Install the SDK
bash
npm install @onefive/hydraInitialize the client with your API key:
typescript
import { createClient } from '@onefive/hydra'
const hydra = createClient({ apiKey: 'pk_your_key' })Fetch products
typescript
const { data: products } = await hydra.products.list({
limit: 10,
expand: ['variants', 'images']
})
for (const product of products) {
console.log(product.title, product.variants[0].price)
}Or with plain fetch:
typescript
const res = await fetch('https://api.hydrajs.dev/v1/products?limit=10', {
headers: {
Authorization: 'Bearer pk_your_key'
}
})
const { data: products } = await res.json()What's included
| Feature | Description |
|---|---|
| Products | Variants, images, pricing, and inventory tracking |
| Images | CDN-hosted with on-the-fly resizing and display ordering |
| Payments | Stripe integration or bring your own checkout |
| Multi-currency | Base currency plus up to 20 additional currencies |
| Shipping | Configurable shipping zones and rates |
| Webhooks | Deploy hooks that fire when your content changes |
| API keys | Publishable and secret keys with rotation and revocation |
| Admin panel | Full management dashboard for your store |