AnarMarket
A wholesale supplier of food and household goods for restaurants, cafés and private buyers in Bishkek
- Industry
- Wholesale trade / HoReCa
- Format
- PWA storefront, staff panel and a Microinvest sync agent
- Year
- 2026
- Stack
- NestJS 11 · React 19 · PostgreSQL (Neon) · Prisma 7
22
staff panel sections
51
data models
196
API routes
380
automated tests
Admin panel
The back office behind the storefront
Customers see the site; the team runs the business here — orders, catalog, people and numbers in one place.



Review
An order intake system for a wholesale supplier of food and household goods: a PWA storefront for restaurants and private buyers, a staff panel, a courier app and a WhatsApp/Telegram bot. Orders reach the client's Microinvest accounting system through an agent, and the final amount follows the actual weight from the warehouse.
A TypeScript monorepo: rules for money, discounts, debts and weight tolerance live in a separate tested package, the server is NestJS with PostgreSQL, and the storefront, staff panel and courier app are one React PWA. An agent on the client's PC connects out to the server over a versioned protocol and opens no inbound ports; it writes each order into Microinvest as a customer order per department. Microinvest stays the source of truth for goods, stock and weight, while buyers, orders and debts are kept on our side.
Weight was the hardest part: the warehouse never packs exactly what was ordered, so the total comes from the Microinvest sale, the invoice is recalculated and overweight beyond tolerance is flagged to the manager. Debts follow each buyer's payment terms, with reconciliation acts and opening balances carried over from Microinvest. AI parses lists from WhatsApp and Telegram and photos of supplier invoices, products are matched by code, and if the model is unavailable the list is parsed by rules.
- NestJS
- React 19
- PostgreSQL
- NestJS 11
- PostgreSQL (Neon)
- Prisma 7
- TypeScript
- pnpm monorepo
- Vite 6
- PWA (Workbox)
- Web Push (VAPID)
- zod 4
- Leaflet / OpenStreetMap
- ExcelJS
- PDFKit
- Node SEA agent (.exe)
- MS SQL (Microinvest)
- OpenRouter + Gemini
- WhatsApp Cloud API
- Telegram Bot API
- Vitest
- Jest
- Vercel
Techniques
- 01
Per-department orders in Microinvest
An order is split by department database; the agent writes a customer order for each and brings back the weight from the sale, and overweight beyond tolerance is shown to the manager.
- 02
AI parsing of lists and invoices
A list from a messenger becomes a draft order and an invoice photo becomes a supplier request; products are matched by code, and rules take over when the AI fails.
- 03
Debts, payment terms and reconciliation
Each buyer has their own payment term and discount; the panel shows overdue invoices, takes partial payments and exports reconciliation acts to PDF and Excel.
Palette
#F7F6F2#2A1A1D#6B1A26#4F7A2F
Similar project?
20 minutes — we'll discuss your task and give an honest assessment. No strings attached.

