
An editorial e-commerce storefront for botanical hair care — with an AI hair chatbot, an "Angel" loyalty portal, and a live two-way inventory sync to the private engine.
View the product pageThe problem
Sell physical botanicals direct-to-consumer in ZAR with trustworthy local fulfilment, while keeping stock counts truthful against a single source-of-truth ops system — so the storefront never oversells.
Architecture
The full order→inventory loop is documented as a sequence diagram on the handbook home. JarvisOS is ghosted: a separate, isolated project reached only over signed webhooks.
2
signed webhooks (loop)
5 min
replay-guard window
≤60s
stock sync lag (ISR)
11
tables
Stack
AI
An Anthropic Claude chatbot — Haiku for tips and classifications, Sonnet for full consultations — with ephemeral prompt caching on the static system prompt.
Data model
11 tables
Key decisions
The hard parts, solved
Two webhooks with mismatched auth schemes, a replay guard, and graceful degradation — documented end-to-end on the /docs home page as the flagship integration flow.
The chatbot streams via a ReadableStream with the ≥4096-token system prompt marked ephemeral for cache hits.
Sourced from sanyubotanicals — SUPPLY_CHAIN, constants/products.ts, repo code.
.jpg&w=3840&q=75)