Anas Jafir
anasjafir.me

Backend & AI integration · Casablanca Backend & intégration IA · Casablanca

Anas Jafir

I build backends that let a language model do useful work without anyone having to trust it. Je construis des backends où un modèle de langage fait un travail utile sans qu'on ait besoin de lui faire confiance.

Python, FastAPI and PostgreSQL, with LLMs held in place by deterministic tests. Sole engineer of a documentary platform now serving 1,049 published records. Medical training before software — which is why accessibility and measurement are habits, not features. Python, FastAPI et PostgreSQL, avec des LLM tenus par des tests déterministes. Seul ingénieur d'une plateforme documentaire qui sert aujourd'hui 1 049 fiches publiées. Formation médicale avant l'ingénierie : l'accessibilité et la mesure sont des réflexes, pas des options.

Also available in French. Également disponible en anglais.

In productionEn production

0
records published across 201 topicsfiches publiées sur 201 thèmes
0 + 0
tests and verifiers gating every committests et vérificateurs à chaque commit
0
documents converted in one pass, zero failuresfiches converties en une passe, sans échec

Every number here is measured on the repository or in production.Chaque chiffre est mesuré sur le dépôt ou en production.

01

Selected workProjets

CerDoc — economic research databaseCerDoc — base documentaire économique

Sole architect and engineer · independent research centre · 2026 → present Seul concepteur et développeur · centre de recherche indépendant · 2026 → aujourd'hui

LIVE

Twenty years of inconsistent Word files, turned into a structured, searchable body of work — and a reader application its single user can actually use. That user is non-technical and visually impaired, cannot debug, cannot work around a defect, and will never call support. The whole architecture follows from that. Vingt ans de fichiers Word hétérogènes, transformés en un corpus structuré et consultable — et une application de lecture que son unique utilisateur peut réellement utiliser. Cet utilisateur n'est pas technique, il est malvoyant, il ne peut ni déboguer, ni contourner un défaut, et n'appellera jamais un support. Toute l'architecture découle de là.

Conversion pipelineChaîne de conversion

Format detected from content, never from the extension. Continuous numbering that is never reassigned. Original formatting preserved.Format détecté sur le contenu, jamais sur l'extension. Numérotation continue et jamais réattribuée. Mise en forme d'origine préservée.

Ingestion platformPlateforme d'ingestion

FastAPI on DigitalOcean. Upload, assisted extraction, WYSIWYG editing, duplicate control, audit log.FastAPI sur DigitalOcean. Dépôt de fichier, extraction assistée, édition WYSIWYG, contrôle de doublons, journalisation.

Reader applicationApplication de lecture

React Native / Expo on Vercel. Topic browsing, search, faithful tables and figures, a computed legibility floor.React Native / Expo sur Vercel. Consultation par thème, recherche, rendu fidèle des tableaux et visuels, plancher de lisibilité calculé.

PythonFastAPIPostgreSQL / Supabase React NativeTypeScriptCloudinaryVercel

Do I Need A Doctor

Personal project · in productionProjet personnel · en production

Symptom analysis driven by a language model, for people deciding whether a visit is warranted. Built on an AI-assisted cycle and shipped.Analyse de symptômes pilotée par un modèle de langage, pour aider à décider si une consultation s'impose. Développée en cycle assisté par IA, et livrée.

Next.js · React

Oralease

Dental practice management · MVP shippedGestion de cabinet dentaire · MVP livré

Data model, backend APIs and the security layer for a clinic management tool — role-based access and encryption from the first commit.Modèle de données, APIs backend et couche de sécurité d'un outil de gestion de cabinet — contrôle d'accès par rôles et chiffrement dès le premier commit.

SQLAlchemy · PostgreSQL · RBAC

Agent-run domain deskDomaining piloté par agents

Independent venture · running since 2026Activité indépendante · en service depuis 2026

A small commercial operation run end to end by scheduled AI agents: inbox triage, weekly prospecting, an automated CRM and drafted negotiation mail I approve before it goes out.Une petite activité commerciale menée de bout en bout par des agents IA planifiés : veille email, prospection hebdomadaire, CRM automatisé et emails de négociation rédigés que je valide avant envoi.

Claude · MCP · Gmail API

02

How I work with AIMa façon de travailler avec l'IA

“I use AI to code” is worth nothing in 2026 — everyone writes it. What is worth something is the system that makes an agent's work safe to ship. « J'utilise l'IA pour coder » ne vaut rien en 2026 : tout le monde l'écrit. Ce qui vaut, c'est le système qui rend le travail d'un agent sûr à livrer.

01 — SeparationSéparation

Judgement to the model, arithmetic to codeLe jugement au modèle, le calcul au code

Any question whose answer is the same twice leaves the model and is frozen into tested code.Toute question dont la réponse est la même deux fois sort du modèle et se fige dans du code testé.

02 — ConstraintContrainte

Gates, not code reviewDes contrôles, pas de la relecture

804 tests and 32 verifiers block every commit. The agent produces fast; the checks decide what ships.804 tests et 32 vérificateurs bloquent chaque commit. L'agent produit vite ; les contrôles décident de ce qui passe.

03 — Sabotage

A test that never failed proves nothingUn test qui n'a jamais échoué ne prouve rien

Every new check is deliberately broken on write. That habit has caught checks passing green over a feature that was dead.Chaque nouveau contrôle est délibérément cassé à l'écriture. Ce réflexe a démasqué des tests au vert alors que la fonction qu'ils gardaient était morte.

And its limitEt sa limite

An automated check once confirmed that no figure in a summary note had been altered. True — and the note was still wrong: an exact percentage had quietly changed subject. Automated verification bounds the risk; it does not remove it. That is where a human who knows the domain still earns their place. Un contrôle automatique a confirmé un jour qu'aucun chiffre n'avait été modifié dans une note de synthèse. C'était vrai — et la note était fausse quand même : un pourcentage exact avait changé de sujet. La vérification automatique borne le risque, elle ne le supprime pas. C'est là que l'expert métier garde toute sa place.

03

What I work withCe avec quoi je travaille

Backend

Python, FastAPI, Flask, REST API design, SQLAlchemy, Pandas, service-oriented architecturePython, FastAPI, Flask, conception d'APIs REST, SQLAlchemy, Pandas, architecture orientée services

DataDonnées

PostgreSQL, Supabase (JSONB, row-level security), MySQL, SQLite, migrations and backfillPostgreSQL, Supabase (JSONB, sécurité RLS), MySQL, SQLite, migrations et backfill

AI in productionIA en production

LLM integration behind vendor-independent contracts (Claude, OpenAI, Gemini), scheduled agents over MCP, evals and deterministic gate testsIntégration de LLM derrière des contrats indépendants du fournisseur (Claude, OpenAI, Gemini), agents planifiés via MCP, evals et gate tests déterministes

DeliveryLivraison

Docker, CI/CD, Git, Nginx, Gunicorn, DigitalOcean, Vercel; authentication, RBAC, encryption, SSL/TLSDocker, CI/CD, Git, Nginx, Gunicorn, DigitalOcean, Vercel ; authentification, RBAC, chiffrement, SSL/TLS

Frontend

React, Next.js, React Native / Expo, TypeScript

04

BackgroundParcours

2026 →

Freelance software engineer — CerDocIngénieur logiciel freelance — CerDoc

Sole technical contributor for an independent economic research centre.Seul intervenant technique pour un centre de recherche économique indépendant.

2025

Backend developer, AI health application — AvynaDéveloppeur backend, application IA santé — Avyna

AI-powered health recommendations and symptom tracking.Recommandations de santé propulsées par IA et suivi de symptômes.

2025

Stanford Medicine — Deep Data Research Center

Data science for precision medicine and cloud computing; data-driven precision medicine for diabetes.Data science pour la médecine de précision et le cloud ; médecine de précision data-driven appliquée au diabète.

2025

AI trainer, code quality review — OutlierAI trainer, revue de qualité de code — Outlier

Reviewing AI-generated Python for correctness and robustness.Revue de code Python généré par IA : correction et robustesse.

2023–2025

ALX Software Engineering Programme — graduate, backendALX Software Engineering Programme — diplômé, spécialisation backend

Backend systems and production APIs; AI for Developers; AI Starter Kit.Systèmes backend et APIs de production ; AI for Developers ; AI Starter Kit.

BeforeAvant

Dental medicine — Hassan II University, CasablancaMédecine dentaire — Université Hassan II, Casablanca

A deliberate move into engineering. The clinical habits — measure first, never trust an instrument you have not checked — came along.Une réorientation assumée vers l'ingénierie. Les réflexes cliniques — mesurer d'abord, ne jamais faire confiance à un instrument non vérifié — ont suivi.

Open to backend and AI-integration rolesOuvert aux postes backend et intégration IA

Remote, or relocation — Canada, Europe, Morocco. Also happy to hear about volunteering work where research, health or documentation needs an engineer.À distance ou avec mobilité — Canada, Europe, Maroc et Golf. Également ouvert au volontariat là où la recherche, la santé ou la documentation ont besoin d'un ingénieur.