/01B2B SaaS · ERP · Applied AI
Onety
Multi-tenant SaaS platform that brings together the operations of accounting firms and franchise networks.
Executive summary
Multi-tenant SaaS ERP that centralizes sales, customer service, contracts, finance, tax, HR and strategic management for accounting firms and franchise networks.
- Problem
- Accounting firms and franchises often run sales, customer service, contracts, finance and tax obligations on separate tools — with duplicated data and little visibility across them.
- Solution
- A single multi-tenant platform with integrated modules and per-module permissions that follows the customer from lead to cash.
- My role
- Full-stack development of modules and features, production maintenance and involvement in managing development.
- Stack
- Next.js · Node.js/Express · MySQL · Socket.io · Bull · LLMs
Context and problem
Onety brings the operations of accounting firms and franchise networks into a single system. Sales, customer service, contracts, finance, payroll and tax obligations tend to live in different tools and spreadsheets, with the same information typed in more than once.
Because it serves franchise networks, the product hosts many companies in the same database, with data isolated per company, granular permissions and consolidated views for the franchisor — and it has to talk to banks, invoice providers, government services and messaging channels.
Solution goal
Provide a platform where each area of the company has its own module, while all of them share the same records, history and rules.
- 01Take the customer from lead to cash without switching systems.
- 02Isolate data per company and control access per module.
- 03Automate recurring routines with jobs, integrations and AI.
- 04Give management indicators, goals and a network-wide view.
My contribution
About the product
Onety is a Contabhub product built by a team of developers. The features and integrations described in this case study belong to the product as a whole — they are not my individual deliverables.
Product architecture and technology
The multi-tenant architecture, queues, real-time layer, integrations and MCP server result from collective decisions made as the system evolved. They appear here as the technical context I work in.
My individual contributionMy contribution
Based on the repository history, these are the areas I worked on directly:
- Processes module (accounting operations): tasks and obligations, parameter logic when creating tasks, bulk assignment of owners, action auditing and the unified agenda that combines tasks, obligations and strategic tasks.
- Tax screens integrated with SERPRO, recalculation and download of DAS tax slips, and a consistent layout across those pages.
- Partners (“Anjos”) module: pricing dashboard, contract terminations and satisfaction surveys with pre-feedback.
- First version of the Insurance module and service orders in the Fleet module.
- Finance: client import and export, reconciliation adjustments and a refactor to use a single transactions repository as the source of status and line items.
- Customer service: editing, deleting and replying to messages, and bulk messaging through Z-API in addition to the official Meta API.
- Customer success and management: client onboarding, health score, satisfaction surveys, Technology Center dashboards and the management TV display.
- Internal tooling: a bot that notifies the team about pull requests on Discord.
- Maintenance: fixing production defects, timezone adjustments in agendas and optimizing queries that drove CPU usage up.
Development managementMy contribution
I took part in managing the software project, leading the consolidation of previously independent systems into integrated platform modules.
Collaboration
I work with other developers in a shared monorepo using branches and pull requests. Many deliverables cross modules owned by colleagues — such as the contracts–finance integration — and depend on constant alignment on business rules.
Features
Sales and customer service
- CRM and sales funnels
- Omnichannel customer service
- Internal chat and real-time communication
- Gamification
Contracts and finance
- Contract management and e-signatures
- Finance, bank reconciliation and Open Finance
- Service invoice (NFS-e) issuing
Accounting and people
- Tax obligations and accounting operations
- Payroll and human resources
- eSocial integrations
- Recruiting with AI-driven interviews on WhatsApp
Management and growth
- KPIs, goals and strategic management
- Franchise network management
- Insurance and fleet management modules
Architecture
- Web appNext.js · React · Tailwind · Radix UI
- WhatsAppSupport and AI interviews
- AI assistantsMCP clients
- HTTPS · REST
- WebSocket
- MCP
- Webhooks
- API RESTNode.js · Express
- Tenancy & permissionsPer-company, per-module middleware
- Real timeSocket.io
- MCP serverOAuth
- Queues & workersBull · Redis
- Jobs & cronsScheduled routines
- MeetingsLiveKit
- SQL
- Files
- MySQLMulti-tenant database
- Object storageS3 · Hetzner
- APIs
- Webhooks
- Scheduled jobs
- FinancePluggy · Banco Inter · Stripe
- Tax & payrollPlugNotas (NFS-e) · eSocial
- Messaging & contractsTwilio · Autentique
- AI modelsOpenAI · Anthropic · Mistral · Vision
- Per-company isolation is enforced in middleware and in queries; access is checked per module.
- Long-running work — OCR, synchronizations and batch processing — leaves the request cycle and goes to queues.
- The MCP server exposes system queries to AI assistants authenticated through OAuth.
Tech stack
- Frontend
- Next.js
- React
- Tailwind CSS
- Radix UI
- Backend
- Node.js
- Express
- Socket.io
- Bull
- LiveKit
- Data
- MySQL
- Redis
- S3 / Hetzner
- AI
- OpenAI
- Anthropic
- Mistral
- Google Vision
- MCP + OAuth
- Integrations
- Pluggy (Open Finance)
- Banco Inter
- Stripe
- PlugNotas
- eSocial
- Twilio
- Autentique
- Infra
- Docker
- Vercel
- GitHub Actions
Challenges and technical decisions
- 01
Multi-tenancy on a shared database
- Problem
- Serve many companies and franchise units without multiplying infrastructure, while keeping each one’s data isolated.
- Decision
- A shared MySQL database, with the company scope enforced in middleware and in queries, and permissions checked per module.
- Why
- It simplifies operations, migrations and the consolidated views a franchisor needs.
- Trade-off
- Every new query must respect the company scope — a constant concern in code and in review.
- 02
Heavy work outside the request
- Problem
- OCR, synchronizations and batch processing do not fit in the lifetime of an HTTP request.
- Decision
- Bull queues backed by Redis, dedicated workers and scheduled jobs for recurring routines.
- Why
- The interface stays responsive and failures can be retried.
- Trade-off
- More states to monitor: pending, failed and retried jobs.
- 03
Real time where operations need it
- Problem
- Internal chat, customer service and notifications lose their value if they depend on reloading the page.
- Decision
- Socket.io for application events and LiveKit for audio and video meetings.
- Why
- Each kind of communication uses the right tool without overloading the REST API.
- 04
AI applied to concrete tasks
- Problem
- Use AI where there is a well-defined task: recruiting interviews on WhatsApp, document reading and queries made by assistants.
- Decision
- Integration with more than one provider (OpenAI, Anthropic and Mistral), Google Vision for OCR and an OAuth-protected MCP server exposing system queries.
- Why
- The model can be chosen per task, and data stays accessible only to people with permission.
- 05
A unified agenda without losing performanceMy contribution
- Problem
- Combine tasks, obligations and strategic tasks from different sources into one agenda, with correct times and fast loading.
- Decision
- Consolidation in the backend, a lean endpoint for listings, persisted filters and explicit time handling to avoid shifted dates.
- Why
- The team plans the day in one place instead of opening every module.
- Trade-off
- More backend logic to build the consolidated view and keep each source’s rules.
- 06
Limits of public integrationsMy contribution
- Problem
- The tax screens depend on SERPRO, which enforces request limits and can be unavailable.
- Decision
- Adjusted consumption to respect the limit and added clear notices in the interface when the service does not respond.
- Why
- Users understand what is happening instead of seeing an empty screen or a generic error.
Gallery

Results
Verifiable facts
- Live at cfonety.com.br, with the customer service, sales, contracts, finance, processes, audit, onboarding, HR and strategic management modules presented publicly.
- The main case study in this portfolio: the experience of maintaining and evolving a large system used daily and maintained by several people.
Commercial system · Delivery · Full Stack








