Mauro Venticinque
Copied

A-17

Comercia

Business management for Argentine retailers: sales, stock, customer accounts and ARCA e-invoicing, plus a WhatsApp bot. In development, with a first client.

Specification
ClientFirst client · lumber yard · Tucumán
Typefreelance
PlatformNext.js · Hono
Year2026
RoleProduct and development, end to end
StackTypeScript · Next.js · React · Drizzle · PostgreSQL · Hono · Chatwoot · Turborepo · Vitest · Testcontainers
Tests890 tests · approx., it/test blocks in 106 files
Modules21 modules · ls apps/erp/src/app/(app)
Client catalog2,108 products · imported with 0 errors · docs/07-proximos-pasos.md

Context

A mid-sized store invoices through ARCA, keeps stock across several warehouses, manages customer accounts with checks and also sells over WhatsApp. Handling that with separate tools means someone has to copy data from one to the other.

Options

A generic ERP covers management and leaves WhatsApp out. A generic bot answers but does not know the stock or the customer’s balance. Integrating two third-party products means paying two subscriptions and maintaining the glue.

Decision

One system: the ERP in Next.js with Drizzle on Postgres, a Hono service that receives messages through Chatwoot, and an in-house package for ARCA e-invoicing. The bot classifies each message with rules first and a language model second, and answers with data from the system, not with hand-written text.

Each line of business is configured with presets, so the second client is not a fork of the first.

Verification

About 890 tests in 106 files, with integration tests against real Postgres in Testcontainers. E-invoicing was tested against an ARCA simulator, not yet against the real service.

Consequences

It is in development, not in production. The first client’s real catalog is already loaded, and the launch depends on their schedule.

← Archive