Skip to main content
LIP is an open loyalty protocol and reference platform. It ships everything needed to go from zero to a working loyalty integration: a normative protocol spec, a deterministic reference engine, an HTTP API, a TypeScript SDK, a local Admin dashboard, a SQLite sandbox, a Docker runtime, runnable examples, and black-box conformance tests.

Quick start

Then open http://127.0.0.1:3210/admin/ and sign in with the key printed in the startup log (lip-dev-key by default).
Installed and running? Read Essentials next — it covers the six things every new integrator needs: the order lifecycle, idempotency, the Admin dashboard, the CLI, reset and seed controls, and conformance checks.

Where to go next

Quickstart

From clean clone to a working loyalty request in five minutes.

TypeScript SDK

The idiomatic client: typed errors, exact money, and the order builder.

API Reference

Every endpoint, generated from the checked-in OpenAPI 3.1 contract.

Webhooks

Signed CloudEvents after every successful mutation.

Reference Platform

Server, Admin dashboard, storage, and implementation boundaries.

Protocol Spec

The normative contract: lifecycle rules, profiles, and conformance.

What the protocol covers

  • Complete loyalty lifecycle — member lookup, enrollment, balances, ledger history, order evaluation before checkout, accrual after payment, and redemption reserve, capture, reverse, and refund-safe adjustment flows.
  • Foodservice-first order model — items, modifiers, discounts, fees, taxes, tips, tenders, and totals, with channel-aware rules for counter, drive-thru, kiosk, web, mobile, pickup, delivery, and catering.
  • Retry-safe by design — idempotency keys, request context, RFC 9457 problem details, and partial refund, void, reversal, and duplicate-check semantics.
  • Multiple program models — points (executable today), visits and stamps, wallet credit, paid membership, and hybrid rewards as configuration templates.