# Nativ · נתיב

A Hebrew, phone-first CRM demo built to win an importer as a client. It follows every container from a Chinese factory to the Israeli customer, translates WhatsApp with Chinese suppliers live in both directions, makes payment links in shekels, dollars or euros, and explains how to take international payments in Israel. Tugi, a little tugboat chatbot, shows her around and introduces my work.

**Status:** Live · Websites · 2026

- **Local checkout:** `/Users/simon/Developer/imports-crm` (branch `main`, last commit 6e63949, 2026-10-29 — Nativ: Hebrew import CRM demo with live WhatsApp translation and the Tugi sales guide)
- **Repository:** https://github.com/ShimonNavon/imports-crm
- **On another machine:** `git clone https://github.com/ShimonNavon/imports-crm` — the paths below are Simon's Mac
- **Live:** https://imports-crm.navonsimon.com/
- **Where it runs:** namespace imports-crm · NodePort 30107

## Stack

Hebrew RTL HTML/CSS/JS (Hallmark Coral theme), Node 22, no dependencies (WebSocket), Claude Sonnet 5.5 via OpenRouter, nginx, Kubernetes

## Start here

- `site/index.html, site/app.js, site/data.js` — the app shell, the five screens and their router, and the demo data (dates are offsets from today)
- `site/chat.js` — the Tugi chatbot UI: streaming, tool actions, safe Markdown
- `api/server.mjs` — WebSocket /api/ws: live supplier translation and the Tugi harness (system prompt, tools, budgets)
- `api/knowledge/` — what Tugi knows: simon.md, offer.md, crm.md, payments.md, projects.json
- `tools/build_knowledge.py` — projects.json from this site's context.json, public fields only
- `deploy/` — k8s manifest, in-pod nginx, edge nginx conf, deploy.sh

## Commands

- **Run backend:** `set -a; . ./.env; set +a; PORT=8780 node api/server.mjs`
- **Run page:** `cd site && python3 -m http.server 8765`
- **Deploy:** `./deploy/deploy.sh`
- **Deploy + edge conf:** `./deploy/deploy.sh edge`

## Deploy and where it runs

- Namespace imports-crm, NodePort 30107: one pod with nginx (site ConfigMap) and node:22-alpine (api ConfigMap + Secret imports-crm-env).
- Public https://imports-crm.navonsimon.com/ via ubuntu01 edge nginx (conf.d/imports-crm.conf) + Cloudflare tunnel ubuntu01; noindex.

## Current state

Live demo for a prospective client (an importer of snacks and office supplies from China). Offer on the site: ₪350/month hosting, maintenance and support. Demo data only, stored in the visitor's browser.

## Watch out

- The page talks to the backend only over the WebSocket: Cloudflare's WAF on navonsimon.com blocks POST.
- Locally the page on :8765 connects to ws://localhost:8780; ORIGINS in the backend must list the page's origin.
- Tugi only states facts from api/knowledge; rebuild projects.json (deploy does it) when the portfolio changes.
- Spend guards: 600k tokens/day for the service, 150k per IP, 6 chats/min, 30 translations/hour per IP.

## Secrets — locations only, never print values

- OPENROUTER_API_KEY in .env (gitignored), applied as Secret imports-crm-env; currently the same key as the portfolio agent.

## Links

- [Open demo](https://imports-crm.navonsimon.com/)

## Tags

Hebrew RTL, Claude Sonnet 5.5, WebSocket, Hallmark, Kubernetes

---

Brief generated 2026-11-08 from `~/Developer/my-projects/context/`. Canonical URL: https://projects.navonsimon.com/context/imports-crm.md
