← Alle Integrationen
Tier 2 — Full Deakee partner

Starter Kit

Brand-new Next.js + Node.js DTC store

For brands launching a new DTC store from scratch. Clone, configure .env, deploy. Full storefront, customer accounts, centralized loyalty tables, and bridge endpoints are ready. Swap the in-memory store for your DB before going to production.

Download
git clone + pnpm dev
Quellcode auf GitHub anzeigen →

Zwei Integrationsmodi

Derselbe Plugin-Code unterstützt beide Modi. Starte heute im OAuth2-Modus; ergänze die Brücke später per Config-Flip — keine Datenmigration.

OAuth2-Modus
geplant

Zentralisierte Loyalty in deiner DB, mit Deakee via OAuth2 synchronisiert. Keine Chain, keine Exchange — aber Kunden sehen Salden in Deakee und du kannst Deakee-Voucher akzeptieren.

  • Funktioniert mit dem aktuellen deakee.com/api/oauth/* Backend.
  • Keine Token, keine rechtliche Belastung als Emittent.
  • Upgrade auf Brückenmodus per Config-Flip.
Brückenmodus
geplant

Stelle einen ERC-8063-Vertrag bereit; Kunden können zentralisiertes Guthaben in On-Chain-Token verwandeln und auf der Deakee-Exchange handeln.

  • Bringt Exchange-Listing und Cross-Brand-Einlösung.
  • Benötigt den Deakee-Relayer (noch nicht live).
  • Gleicher Plugin-Code wie OAuth2-Modus — aktivierbar wenn bereit.

Installieren

  1. git clone https://github.com/deakee/loyalty
  2. cd loyalty/plugins/starter && cp .env.example .env
  3. pnpm install && pnpm dev
  4. Sign in as alice@example.com / password and buy a demo product.
  5. Swap the in-memory store for your real DB before production.

Wie Deakee sich mit deinem Plugin verbindet

Dein Partner-API-Key authentifiziert Aufrufe an den Deakee-Relayer. Die OAuth2-authorize/token-URLs werden einmal pro Kunde verwendet, um die Wallet-Adresse zu holen (Scope: nur identity).

authorize_urlhttps://deakee.com/oauth2/authorize (scope=identity)
token_urlhttps://deakee.com/oauth2/token
api_base_urlhttps://deakee.com/api/relayer/v1

Konformität prüfen

Vor dem Livegang den offiziellen Konformitäts-Verifier ausführen. Prüft das zentralisierte Ledger, den Identity-OAuth-Flow, das Mint/Burn-Wiring der Brücke und Idempotenz.

npx @deakee/loyalty-verifier \
  --partner-api-key   <your key> \
  --plugin-url        <your plugin URL> \
  --contract-address  <your ERC-8063 contract> \
  --test-user-email   test@example.com

Festgefahren? Lies die vollständige README oder öffne ein Issue unter github.com/deakee/loyalty/issues.