Beatriz Santana

/01B2B SaaS · ERP · Applied AI

Onety

Multi-tenant SaaS platform that brings together the operations of accounting firms and franchise networks.

Context
Contabhub product, built by a team
My role
Full-stack developer
Period
2026 — present
Team
Contabhub engineering team
Status
Live
Onety home page: “Your company under control — in one place”, with the list of modules.
01

Executive summary

Multi-tenant SaaS ERP that centralizes sales, customer service, contracts, finance, tax, HR and strategic management for accounting firms and franchise networks.

Quick read
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
02

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.

03

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.

  1. 01Take the customer from lead to cash without switching systems.
  2. 02Isolate data per company and control access per module.
  3. 03Automate recurring routines with jobs, integrations and AI.
  4. 04Give management indicators, goals and a network-wide view.
04

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.

05

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
06

Architecture

Clients03
  • Web appNext.js · React · Tailwind · Radix UI
  • WhatsAppSupport and AI interviews
  • AI assistantsMCP clients
Clients ↔ Platform
  • HTTPS · REST
  • WebSocket
  • MCP
  • Webhooks
Platform07
  • API RESTNode.js · Express
  • Tenancy & permissionsPer-company, per-module middleware
  • Real timeSocket.io
  • MCP serverOAuth
  • Queues & workersBull · Redis
  • Jobs & cronsScheduled routines
  • MeetingsLiveKit
Platform ↔ Data
  • SQL
  • Files
Data02
  • MySQLMulti-tenant database
  • Object storageS3 · Hetzner
Platform ↔ Integrations
  • APIs
  • Webhooks
  • Scheduled jobs
Integrations04
  • FinancePluggy · Banco Inter · Stripe
  • Tax & payrollPlugNotas (NFS-e) · eSocial
  • Messaging & contractsTwilio · Autentique
  • AI modelsOpenAI · Anthropic · Mistral · Vision
Simplified view of the main components and flows. It does not reproduce code or internal details.
  • 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.
07

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
08

Challenges and technical decisions

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
10

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.
See the project livecfonety.com.br (opens in a new tab)