SaaS · Full-stack · AI In development

MonCFO

Finance and tax management for Moroccan freelancers, in one platform.

Role
Founder and sole engineer — product, backend, frontend, AI, deployment
Period
2026 — present
Type
Own product

01 — Overview

MonCFO is a personal finance and tax-planning platform built for Morocco’s self-employed — freelancers, consultants and auto-entrepreneurs. It brings income, expenses, tax estimation, invoicing, clients and financial goals into one place, and it is designed around one rule: what you see must always reconcile with your bank.

02 — Problem and objectives

A freelancer in Morocco juggles scattered pieces: bank statements delivered as PDFs, paper receipts, and a tax system with several regimes — auto-entrepreneur, progressive income tax, corporate tax — each with its own rules, rates and deadlines. Generic finance tools ignore all of it, and spreadsheets do not reconcile with anything.

The objectives:

  • One place for money in and money out, reconciled with the bank.
  • Tax figures the user can trust, and trace back to an official source.
  • Invoices that meet Moroccan legal requirements, without a separate tool.
  • AI that does work inside the app, cheaply and predictably.

03 — My role

Founder and sole engineer. I define the product, design the architecture and build every layer — backend, frontend, AI features, tests and deployment. Several features, such as bank reconciliation, started from needs my accountant raised in day-to-day practice.

04 — Architecture

React SPA · PWA FR · EN · AR (right to left) Django REST API transactions · invoices clients · tax · subscriptions PostgreSQL every figure computed from itAround the core — behind the same API PDF generator Bank-statement importer OCR service AI interpreter
Architecture
  • A Django REST API holds the domain: transactions, invoices, clients, tax and subscriptions.
  • PostgreSQL stores the data. Every figure shown is computed from it — nothing is typed in twice.
  • A React single-page app, installable as a PWA, in French, English and Arabic with right-to-left support.
  • Around the core: a PDF generator, a bank-statement importer, an OCR service and an AI interpreter — all behind the same API.

05 — Engineering decisions

A tax engine made of data, not code

Tax rules change every year with the finance law, and they differ by regime. So the rules live in versioned regime definitions — one per year and per regime — loaded into the database. The engine reads them; it contains no rates. Adding a year, a regime or a country is a change of data, not of code. Every rate is checked against its official source before it ships.

Actuals and forecasts never mix

Current figures are computed from real transactions only. Forecasts combine recurring and actual transactions, and are always labelled as forecasts. The number at the top of the dashboard reconciles with the bank — by construction.

An AI copilot that acts, with a closed toolset

The copilot is not a chatbot. A small language model does one job: read the user’s sentence and return an intent with its arguments, as JSON. The backend then runs one action from a short whitelist — add a transaction, compute a tax reserve, look up a client’s tax situation, summarise a month — and answers from a template. The model never writes free-form text and never touches money; it runs behind the same permissions and quotas as the rest of the app. The result is deterministic, testable, and costs a fraction of a free-form chat setup.

Invoices that hold up

Invoicing follows what a Moroccan invoice must contain: sequential numbers that are never reused, client details and exchange rates frozen at issue, the mandatory mentions for each VAT regime, the total written out in words, and an advanced electronic signature drawn in the app. PDFs are generated in French, Arabic or English — including right-to-left layout.

Imports that match how things really work

Moroccan banks deliver statements as PDFs, so the importer reads PDFs as well as CSV. A scanned receipt goes through OCR and comes back as a draft — never as a saved transaction — so the user stays in control. A reconciliation engine links bank lines to invoices, so the same payment is never counted twice.

Cost-aware by design

Anything that costs money per use — AI actions, OCR — has a finite monthly quota, enforced in the API layer and not only in the interface. Features that cost nothing to serve are unlimited.

06 — What works today, what is planned

Works today Planned
Dashboard and tax reserve Public launch
Transactions and recurring entries Double-entry journal export
Bank import (PDF and CSV) Unified AI credits wallet
Receipt OCR (returns a draft) —
Clients, quotes, invoices, credit notes and payments —
PDF invoices in French, Arabic or English, total in words —
Advanced electronic signature, drawn in the app —
Tax estimation per regime and declaration help —
Social-contributions settings and family charges —
Bank reconciliation —
Financial goals and documents —
Analytics —
Accountant access —
Action-based AI copilot —
French, English and Arabic (right to left) —
Progressive web app (PWA) —
Plans and billing —

07 — Results and status

In development, before public launch. The platform already covers a complete journey — from a bank statement to a tax estimate and a valid invoice — and is in real use, including for invoicing clients. Hosting and public release are the current phase.

Technologies

  • Python
  • Django
  • Django REST Framework
  • PostgreSQL
  • React
  • TypeScript
  • Tailwind CSS
  • Docker
  • Playwright