Skip to content

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 ​

  1. Create a project. Sign up, name your store, and get your API keys
  2. Add your products. Use the admin panel or API to manage products and images
  3. Build your frontend. Use the SDK or REST API to display products and process checkout
  4. Go live. Connect your payment provider and start selling

Install the SDK ​

bash
npm install @onefive/hydra

Initialize 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 ​

FeatureDescription
ProductsVariants, images, pricing, and inventory tracking
ImagesCDN-hosted with on-the-fly resizing and display ordering
PaymentsStripe integration or bring your own checkout
Multi-currencyBase currency plus up to 20 additional currencies
ShippingConfigurable shipping zones and rates
WebhooksDeploy hooks that fire when your content changes
API keysPublishable and secret keys with rotation and revocation
Admin panelFull management dashboard for your store

Next steps ​

  • Products - Create and manage your product catalog
  • Images - Upload and attach images to products
  • Payments - Connect Stripe or enable BYO checkout
  • API Keys - Generate and manage API keys