An inventory and operations platform for small retail businesses in Morocco. Multi-tenant SaaS, built alone, running in production.
StockCRM is where small Moroccan shops run their stock, sales, customers, and money — all in one place. It started as a stock tracker and grew into a small SaaS: multi-tenant, role-based, with its own billing. The interesting parts are not the CRUD. They are the AI order agent, the auto-generated landing pages, the public storefront API for partner shops, and a billing model that fits how Moroccan businesses really pay.

A partner sends a message — or a photo of a handwritten daily ledger — and the AI drafts the order. Nothing is saved until a human confirms it.
The agent reads the message, searches products, matches the customer, and returns a draft. The draft is signed — no database write yet.
A human approves. The server checks the signature, then writes the order. If anything was changed in between, it gets rejected.
AI-made orders get an AGNT- tag, the loop has a hard cap, and refused replies are rephrased and retried automatically.

Bun · TypeScript · Express 5 · PostgreSQL · Drizzle ORM · Zod · Redis · JWT · Groq · Cloudinary · R2