# Hekana Developers

> The developer hub for Hekana: build a store theme with Sneferu, or an app that adds behaviour, data and integrations through the Apps API. Docs, code examples and API keys.

Source: https://hekana.dev/

**Build on Hekana.** Everything you need to build themes, apps, and integrations for Hekana stores. Customize storefronts, extend commerce functionality, and connect your services.

- [Build a Theme](https://hekana.dev/themes): Create custom storefront experiences using Sneferu, Hekana's theme development toolkit.
- [Build an App](https://hekana.dev/apps): Extend Hekana stores with apps, APIs, and integrations.
- [Explore the API](https://hekana.dev/apps/api-reference): Work with store products, orders, customers, and other supported resources.

## Get started in minutes

Set up your development environment and start building your first Hekana project.

### Theme

Needs Node.js 20 or newer. The Sneferu CLI runs with npx: no install step.

```bash
# Create a theme from the starter template
npx sneferu init my-theme
cd my-theme

# Preview it with sample data (http://127.0.0.1:4100)
npx sneferu dev

# Check it, then compile it
npx sneferu validate
npx sneferu build
```

[Build your first theme](https://hekana.dev/guide/getting-started): Walks through each command and what init writes.

### App

There is no app CLI or published SDK yet. An app starts as an OAuth token exchange over HTTP, once a store has approved it.

```bash
# After a store owner approves your app, trade the code for tokens
curl -X POST https://api.hekana.com/api/v1/oauth/token \
  -H "Content-Type: application/json" \
  -d '{
    "grant_type": "authorization_code",
    "code": "CODE_FROM_THE_REDIRECT",
    "redirect_uri": "https://example.com/hekana/callback",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "code_verifier": "THE_VERIFIER_YOU_SAVED"
  }'
```

[Create your first app](https://hekana.dev/apps/quickstart): Register, get approved, exchange the code, call the API.

### API

With an access token from the OAuth flow, one request lists the store's newest orders.

```bash
# List the store's five newest orders (needs the read_orders scope)
curl "https://api.hekana.com/api/v1/apps-api/orders?limit=5" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Hekana-Api-Version: 2026-10-01"
```

[Apps API reference](https://hekana.dev/apps/api-reference): Every endpoint with its scope, body, limits and errors.

## Choose your path

- [Start from a template](https://hekana.dev/guide/getting-started#start-from-a-template): Scaffold a gaming or digital-products store theme with init --template.

- [Get an API key](https://hekana.dev/guide/get-an-api-key): Sign in to push themes and use the CLI with your developer account.

- [Call the Apps API](https://hekana.dev/apps/examples): Working curl and JavaScript calls: OAuth with PKCE, orders, products, webhooks.

- [Build with an AI agent](https://hekana.dev/guide/ai-agents): The agent kit, llms.txt and prompts for Claude Code, Codex, Cursor and Copilot.

- [Sign in and API keys](https://hekana.dev/guide/get-an-api-key): Your developer account holds the API keys for the Sneferu CLI, your private dev store and the review status of the themes you push.

- [llms.txt](https://hekana.dev/llms.txt) and [llms-full.txt](https://hekana.dev/llms-full.txt): The docs as plain text, for coding agents and assistants.

## Which one do I need?

A theme and an app do different jobs. A store can use a theme and install apps, and neither needs the other.

| What differs | Theme | App |
| - | - | - |
| It changes | How a store looks and is laid out | What a store does: new behaviour, data and integrations |
| You write | Sneferu: HTML with `hk-*` tags, a `theme.json` and CSS | Code on your own server that calls the Apps API |
| It reaches a store | The merchant installs a published theme | The store owner approves your app's consent screen |
| Can it run code | No, a theme cannot run JavaScript | Yes, on your server |
| Start with | [Build your first theme](https://hekana.dev/guide/getting-started) | [Create your first app](https://hekana.dev/apps/quickstart) |

> **The SDK packages are not published yet.** `@hekana/apps-sdk`, `hekana-sdk` and `create-hekana-app` are not on npm, so there is nothing to install: call the API over HTTP as in the App and API tabs above. See [Getting started](https://hekana.dev/apps/quickstart). The Sneferu CLI (`sneferu`) is on npm.
