GereMais
Managing well generates more.
Cloud ERP for small and mid-sized businesses
Visit geremais.com ↗ (opens in a new tab)
The problem
Small and mid-sized businesses in Brazil run on spreadsheets, notebooks and gut feeling: stock that never quite matches, company cash mixed with personal accounts, invoices issued by hand.
The idea
One cloud system where point of sale, inventory, purchasing, finance and invoicing share the same data in real time — set up in minutes, without a technician.
What I did
Conceived the product and designed its architecture end to end: tenant isolation, module boundaries, asynchronous pipelines, fiscal integration and the infrastructure that runs it in production. I work directly with clients and users on requirements, delivery and support.
01The backstory
GereMais began with a pattern that repeats across small businesses in Brazil: sales in one place, stock in another, cash in a spreadsheet, invoices issued by hand. Each tool works on its own. The business doesn't, because none of them agree on what actually happened.
The product had to be something an owner can start using in minutes, without a technician — and something I could keep evolving as the number of companies grew, without every new customer making the system harder to reason about.
02The challenge
Let very different businesses — retail, services, wholesale — share one system without ever sharing their data, while sales, stock, finance and invoicing stay consistent with each other in real time.
03Decisions (and why)
What I chose, why I chose it — and what it costs.
One database per company
Why
A master database knows which companies exist, their plans and their billing. Each company's operational data lives in its own tenant database. Isolation becomes a property of the structure, not a WHERE clause that every query has to remember.
What it costs
Migrations run twice — once for the master, once across every tenant — and reporting across companies needs deliberate work. I accept that: the one failure I never want is a company seeing another's data.
Slow and fragile work leaves the request
Why
Report generation, invoice issuing and tax-authority calls run on queues and dedicated workers instead of while someone waits at the counter. The cashier gets an answer immediately; the heavy part happens right after.
What it costs
Those corners of the system are eventually consistent. Every job has to be safe to retry, and its state has to be visible to the person who started it.
Fiscal integration as a module, not a screen
Why
Issuing an NFS-e is part of the finance flow. The integration with Focus NFe has its own jobs — registering the company, emitting the document, fetching its files — so a failure at the tax authority never blocks a sale.
What it costs
More states to model (pending, authorised, rejected) and an interface that has to explain them in plain language.
Realtime and AI as separate pieces
Why
WebSockets run in their own process, and the AI and vector-search services run as dedicated components fed by the queue. Neither can slow the main API down, and each one scales on its own.
What it costs
More moving parts to deploy and watch — which is why metrics and dashboards are part of the stack from the beginning, not an afterthought.
04How it works
- 01
At the counter
The sale is registered in the POS against an open cash session.
- 02
Stock follows
Inventory is updated in the right warehouse as part of the same operation.
- 03
Finance records it
The sale lands in finance and, for services, an NFS-e is queued for issuing.
- 04
Reports and realtime
Dashboards update live; heavier reports are generated in the background and delivered as PDF or Excel.
05Under the hood
Services running in production, confirmed in the product's own repositories.
Interfaces
- React · TypeScript
- Next.js (public site)
Application
- Nginx
- Laravel · PHP 8.3
Messaging & realtime
- RabbitMQ
- Queue workers
- Reverb · WebSockets
Data
- MySQL · master + tenant databases
- Redis
- Qdrant
Intelligence
- AI service
- Vector search service
Infrastructure & observability
- Docker
- Prometheus
- Grafana
06What it does

On a phone
- 01Point of sale with cash-session control
- 02Real-time, multi-warehouse inventory
- 03Configurable order workflows
- 04Finance with automatic NFS-e issuing
- 05Customers, CRM and loyalty
- 06PDF and Excel reports generated asynchronously
- 07Granular multi-user permissions
07What this says about me
GereMais shows how I build: isolation, background work and observability are designed in from the first migration — not added when the first customer complains.