Start
Getting started
Three steps to your first response: get the SDK, point it at the mock API, call a storefront route.
1. Get the SDK
The SDK is a typed client generated from the same contracts as the API reference. It ships as a package file you install directly — no registry account needed.
Install from the file
# from the folder of your storefront project
npm install ./munim-sdk-0.3.1.tgz
# or
pnpm add ./munim-sdk-0.3.1.tgzThe SDK ships TypeScript source. In a Next.js site add transpilePackages: ["@munim/sdk"] to next.config. API ids made by your client (command_id, order_id, …) must be UUIDv7; the getting-started guide has a helper to copy.
2. Create a client
A storefront authenticates with its storefront key only. Customer sign-in is optional and adds a customer token; see Authentication.
storefront.ts
import { createMunimClient } from "@munim/sdk";
const munim = createMunimClient({
baseUrl: "https://<this-site>/mock", // the real API URL comes later
storefrontKey: process.env.MUNIM_STOREFRONT_KEY!, // a mock key (see the Mock API page)
});
const { data, error } = await munim.GET("/v1/storefront/outlets");
if (error) throw new Error(error.error.code); // e.g. "not_found" for a bad key
console.log(data);3. Or call it over plain HTTP
Every SDK method is one HTTP request. JSON in, JSON out.
curl
curl -s https://<this-site>/mock/v1/storefront/outlets \
-H "X-Munim-Storefront-Key: $MUNIM_STOREFRONT_KEY"Next
- 00 · Getting started — Munim is an operating system for restaurant groups and small shops. Munim Core is the system of record: orders, menus, prices, stock, kitchen tickets, ledgers and a public /v1 HTTP API. Munim Intellig
- 10 · Auth, idempotency, errors, money and time — Read this once before either site spec. Everything here is from the frozen /v1 contract.
- 20 · Storefront build spec: Spice Route (India, 3 outlets, INR) — Read 00 and 10 first. Mock key: sfk_mock_spice_route_7f3a91c2. All people, businesses and amounts are synthetic. Locale en-IN, currency INR, zone Asia/Kolkata.
- 21 · Storefront build spec: Laneway Cafe (Australia, 1 outlet, AUD) — Read 00, 10 and 20 first. Laneway is the same API flow as Spice Route with one outlet, a coffee-first morning menu, AUD, GST that is included in prices, and the Australia/Melbourne zone. This doc list
- 30 · The AI contract (for completeness) — Your storefronts do not call any AI route. There is no AI on the customer ordering path: the menu, prices, totals, tax and tracking are plain database reads. This page exists so you recognise AI outpu
- Gaps: what the storefront contract does not give you yet — Each item says what you can do today. None of these are invented in the other docs; where a doc relies on a workaround it links here. IDs are stable (G-01…); closed items are listed at the end with th
- 90 · Changelog — /v1 is frozen as of 13 Oct 2026 for the storefront surface and the Munim Cares public routes. From this date: