I’m Mário Mabande
a
Software Engineer
ML Enthusiast
MSc in Computer Science
I design and develop software solutions, from modern web applications to enterprise systems and API integrations. My work combines software engineering, research, and a commitment to building reliable, accessible, and meaningful technology.
My Expertise
App Development & Maintenance
I build reliable, scalable applications for web and mobile — using modern frameworks and proven best practices. Every solution is fast, user-friendly, and easy to maintain, with security built in from the ground up.
Website Design & Optimization
I create fast, responsive websites that turn visitors into customers. Each site is optimized for Core Web Vitals and SEO, delivering standout performance and a seamless experience on every device.
Digital Marketing & SEO
I grow your online presence through smart SEO and targeted ad campaigns across Google, Meta, and beyond — driving more traffic, stronger engagement, and qualified leads that translate into real results.
Featured Projects
Designed and developed the website for Candy Land, a bakery in Maputo specialising in themed cakes, cupcakes, desserts and savoury snacks. The site works as the brand’s digital storefront: customers browse the menu with prices and options, learn the brand story, and place orders directly through WhatsApp with a pre-filled message, with no account or checkout needed.
Its highlight is a step-by-step cake configurator (size, flavour, filling, cream colour and decoration) that shows an estimated price in real time and turns the customer’s choices into a ready-to-send WhatsApp order. The project is mobile-first, lightweight and built with accessibility in mind (skip links, pausable carousels, readable contrast), and it also includes an FAQ, a testimonials flow, opening hours and a privacy page. Built as a fast static website
- Link: https://candylandmz.shop/
- Year Created: 2026
- Tools Used: HTML5, CSS3, JavaScript, WhatsApp Click-to-Chat, Open Graph/SEO meta tags and others.
Companhia Gungu — Cultural Media Hub
Designed and built the official website for Companhia Gungu, one of Mozambique’s leading cultural companies, named after the traditional Gungu drum. The site brings five brands under one identity: Gungu Teatro, Gungu Cinemas, Gungu Televisão, GunguFlix (streaming) and Jornal Dicca (news). Visitors can follow what is on stage and on screen, buy tickets through the online box office, read weekly news, browse the gallery and discover the company’s partners. The main challenge was organising a large, varied offer into a clear navigation that serves both theatregoers and media partners.
- Link:https://gungu.co.mz/
- Year Created: 2025
- Tools Used: WordPress, Elementor, Contact Form 7, All in One SEO and others.
Malesta ERP (In Development)
Malesta ERP is a modular and scalable ERP platform designed for small and medium enterprises (SMEs) in Mozambique, built on the open-source Odoo Community platform. The system is tailored to local business requirements, ensuring fiscal compliance, and provides pre-configured industry-specific packages for fast and cost-effective deployment.
The platform will feature specialized modules and packages:
- Retail Package – Sales & Point of Sale (PoS) management, inventory and stock control, and simplified financial and sales reporting.
- Office Services Package – Human Resources (HR) management, invoicing and accounting, Customer Relationship Management (CRM) to track client interactions and business opportunities.
- Restaurant Package – PoS management tailored for restaurants, stock control for ingredients and products, and digital menu integration for enhanced customer experience.
Core Functionalities (Planned):
- Centralized Management – integrate all critical business operations into a single platform.
- Automated Compliance – ensure fiscal compliance for invoicing, reporting, and legal requirements.
- Customizable Workflows – adaptable processes for different business types.
- User Training & Support – initial onboarding and ongoing support to optimize operations.
Technologies: Odoo Community, Python, PostgreSQL, JavaScript and others.
Impact (Expected): Streamline SME operations, enhance efficiency, ensure legal compliance, and provide actionable insights to support growth.
WebNews — WordPress Theme
WebNews Premium Theme is a responsive and feature-rich WordPress theme suitable for blogs, news sites, and magazines. It offers multiple homepage layouts, integration with a custom plugin (M3Toolbox), and attention to usability and responsive design.
- Link: https://github.com/mariomthree/webnews-premium-theme-wp
- Technologies: WordPress, PHP, CSS, JavaScript, jQuery
- Impact: First professional WordPress project, demonstrating front-end and PHP skills.



WIM Industrial Services Website
Built the bilingual (Portuguese/English) website for WIM – Industrial Maintenance Welding & Service, a Maputo company specialising in TIG and MIG/MAG welding, preventive and corrective maintenance, heavy machinery repair and the supply of electrical and mechanical equipment. The site turns a long list of technical services into a clear catalogue, builds trust through client testimonials, and makes it easy for industrial clients to request a quote or get in touch.
- Link: https://wim.co.mz/
- Year Created: 2023
- Tools Used: WordPress, Elementor, Contact Form 7, Yoast SEO and others.
SysStock
SysStock is an inventory and sales management system for small to medium businesses. It allows product and supplier management, sales tracking, quotations, and report generation with a user-friendly desktop interface.
Technologies: Java (Swing), SQL
Impact: Streamlined inventory and sales management processes, increasing operational efficiency.
Clients I've Worked With
Engineering Notes
Quando a Microsoft cai, a tua empresa pára? A dependência invisível das empresas, incluindo as moçambicanas
Introdução
Na tarde de 12 de Novembro de 2026, o Microsoft 365 caiu em todo o mundo. Durante cerca de 24 horas, o Outlook, o Teams, o SharePoint e o Copilot ficaram inacessíveis ou intermitentes, e a maioria dos utilizadores nem conseguia abrir o email (Microsoft, 2026). Em menos de uma hora, chegaram relatos de problemas de 74 países e territórios (The World Data, 2026). Não foi um ataque: foi uma falha em cadeia na própria rede da Microsoft, e mesmo depois de corrigida a causa, a recuperação foi gradual (Greiner, 2026). No fundo, foi mais um lembrete do risco da dependência de serviços externos.
Basta olhar para os endereços de e-mail que recebemos todos os dias: muitas empresas moçambicanas, trabalham sobre o Microsoft 365 ou o Google Workspace. Facturas, pedidos de aprovação e comprovativos de pagamento chegam por e-mail.
Quando o email pára, a operação pára com ele. Como notou a Dawan Africa a propósito desta falha, as organizações africanas podem ter boa ligação à internet e equipamentos modernos e, mesmo assim, depender de um punhado de fornecedores globais para serviços essenciais (Dawan Africa, 2026).
Um cenário possível
Imagina este cenário, que pode acontecer em qualquer empresa. Hoje é o último dia para pagar a um fornecedor, ou para cumprir uma obrigação fiscal. Mas a autorização do pagamento chega por email, ou o sistema que o processa corre num serviço externo que está em baixo. O dia termina, o prazo passa e chegam a multa, os juros ou um contrato em risco. E aos olhos do cliente ou do fornecedor, quem falhou não foi a Microsoft: foi a tua empresa.

Há uma pergunta que qualquer direcção devia fazer à sua equipa técnica, de preferência antes da próxima falha: “Se o email, a cloud ou a internet caírem amanhã às 9h, como continuamos a trabalhar, e quanto tempo levamos a voltar ao normal?”
Índice
- Não é só a Microsoft: seis grandes falhas em cinco anos
- O mapa da dependência de serviços externos
- O custo real de ficar parado
- Como as grandes empresas se preparam
- O que uma PME pode fazer já
- O papel das equipas técnicas
- Conclusão
- Referências
1. Não é só a Microsoft: seis grandes falhas em cinco anos
Nos últimos cinco anos, pelo menos seis grandes falhas mostraram o mesmo padrão da dependência de serviços externos: um fornecedor gigante falha e milhares de empresas que nada têm a ver com o problema ficam paradas. Só a da CrowdStrike, em 2024, custou cerca de 5,4 mil milhões de dólares às 500 maiores empresas americanas, segundo a seguradora Parametrix (Parametrix, 2024).

| Data | O que falhou | Duração | Impacto |
|---|---|---|---|
| 12–13 Nov 2026 | Microsoft 365 (Outlook, Teams, SharePoint, Copilot e outros) | ~24 horas (Microsoft, 2026) | Relatos de 74 países e territórios na primeira hora (The World Data, 2026); ainda sem estimativa pública de perdas |
| 18 Nov 2025 | Cloudflare (rede que transporta cerca de um quinto do tráfego mundial da internet) | ~3 horas de falha grave; normalidade total ao fim de ~6 horas (Prince, 2025) | A Forrester estima 250 a 300 milhões de dólares em perdas directas e indirectas (Deslandes, 2025) |
| 20 Out 2025 | AWS, região us-east-1 | Cerca de 15 horas (Rogers, 2025) | ~70 000 organizações afectadas; perdas seguradas estimadas entre 38 e 581 milhões de dólares (R&I Editorial Team, 2025). Em África, chegou a afectar aplicações e serviços online na África do Sul (TechCabal, 2025) |
| 19 Jul 2024 | CrowdStrike (actualização defeituosa em computadores Windows) | Horas (falha) a vários dias (recuperação manual de máquinas Windows) | ~5,4 mil milhões de dólares só nas empresas Fortune 500; o sector da saúde foi o mais afectado, com ~1,94 mil milhões (Parametrix, 2024) |
| 12 Mai 2024 | Cabos submarinos EASSy e Seacom, ao largo de KwaZulu-Natal (provável âncora de navio) | ~3 semanas até à reparação completa (Internet Society, 2024) | Quedas de tráfego de 30% a 75% na Tanzânia, Malawi, Moçambique e Madagáscar (123NET, 2024) |
| 4 Out 2021 | Facebook, WhatsApp e Instagram | ~6 horas | ~99,5 milhões de dólares de receita perdida pela Meta. Uma vendedora de sapatos em Nairobi perdeu cerca de 77 dólares em vendas (The EastAfrican, 2021) |
O que os números não mostram
As estimativas usam métodos diferentes e muitas só contam grandes empresas. No entanto, os pequenos negócios quase nunca aparecem nestes números, mas são muitas vezes os que têm menos margem para aguentar um dia parado.
Repara também na quinta linha. Nem toda a dependência é de software: quando os cabos submarinos se partem, Moçambique perde boa parte da ligação ao mundo, e com ela o acesso a todos os serviços da lista.
2. O mapa da dependência de serviços externos
Na prática, a dependência de serviços externos de uma empresa organiza-se em cinco camadas, e muitas empresas não sabem quais são as suas. Basta uma delas falhar para o resto deixar de servir.

| Camada | Exemplos | O que pára quando cai |
|---|---|---|
| Comunicação | Outlook/Microsoft 365, Gmail, Teams, WhatsApp Business | Emails de aprovação, facturas, atendimento ao cliente, vendas por mensagem |
| Infraestrutura | AWS, Azure, Google Cloud, Cloudflare (DNS, CDN, protecção) | Sites, aplicações móveis, APIs, lojas online |
| Identidade | Contas Microsoft (Entra ID), contas Google, logins únicos | O acesso dos funcionários a todos os outros sistemas ao mesmo tempo |
| Operações | ERP e software de gestão na nuvem, gateways de pagamento, ferramentas de assinatura digital | Facturação, pagamentos, contratos, relatórios |
| Conectividade local | Cabos submarinos (EASSy, Seacom, 2Africa), operadoras, energia eléctrica | Tudo o que está acima, de uma só vez |
Entre todas, a camada de identidade é a mais traiçoeira. Se os funcionários entram em todos os sistemas com a mesma conta Microsoft ou Google, uma falha nesse login bloqueia sistemas que, em si, estão a funcionar perfeitamente.
Além disso, a última camada é a mais moçambicana. Podemos ter os melhores fornecedores do mundo, mas se o cabo submarino ou a energia falham, nenhum deles nos chega.
3. O custo real de ficar parado
Quando a dependência de serviços externos não é gerida, uma hora parada custa muito mais do que a venda que não se fez. O custo vem em quatro partes:
- Receita perdida: vendas, pagamentos e transacções que não acontecem.
- Pessoas paradas: funcionários pagos sem conseguirem trabalhar.
- Prazos falhados: multas, juros e penalizações contratuais, como no cenário do pagamento que vencia hoje.
- Confiança perdida: o cliente que não foi atendido pode não voltar, e esse custo não aparece em nenhuma factura.
4. Como as grandes empresas se preparam
Para gerir a dependência de serviços externos, as grandes empresas não partem do princípio de que os fornecedores nunca falham. Partem do princípio contrário, e planeiam para isso.
- Redundância: correm os sistemas em mais do que uma região ou em mais do que um fornecedor de cloud. Usam um DNS secundário para o site não desaparecer se o principal cair.
- Plano de continuidade (BCP) e plano de recuperação (DRP): documentos que dizem, passo a passo, o que cada equipa faz quando um sistema crítico pára e como o recuperar.
- RTO e RPO: o RTO é quanto tempo a empresa aguenta parada; o RPO é quantos dados pode perder. Exemplo: “o sistema de pagamentos tem de voltar em 1 hora e não pode perder mais do que 5 minutos de transacções”. Estes dois números decidem quanto se investe.
- Simulacros: desligam sistemas de propósito, em ambiente controlado, para ver se o plano funciona. Um plano que nunca foi testado é só uma esperança.
- Monitorização própria: não esperam que o fornecedor anuncie a falha. Têm alertas que detectam quando um serviço externo deixa de responder.
- Contratos e seguros: leem os SLAs com atenção e sabem que a compensação do fornecedor raramente cobre o prejuízo real. No caso da CrowdStrike, a Parametrix estimou que os seguros cobririam apenas cerca de 10 a 20% das perdas. É uma estimativa, não um limite, mas mostra que o seguro ajuda e não substitui um plano (Parametrix, 2024).
A opção da cloud local
Por outro lado, há uma opção que antes não existia: a cloud local. Em 2026, a Bubble Cloud anunciou que passa a operar em Moçambique com duas zonas de disponibilidade, em Maputo e em Beluluane (Rafael, 2026). Desde 2024, o país conta também com o Raxio MZ1, no Parque Industrial de Beluluane, o primeiro centro de dados com certificação Tier III em Moçambique (Gilbert, 2024). E em Agosto de 2026, a Universidade Eduardo Mondlane inaugurou o seu centro de dados. Funciona com a rede eléctrica, mas também com painéis solares ou gerador, e vai ajudar a garantir o funcionamento do domínio .mz e do MozIX, o ponto nacional de troca de tráfego de internet (Vicente, 2026). O Governo quer que venha a alojar serviços de outras universidades e instituições públicas (Onyeagoro, 2026). Combinar serviços globais com infraestrutura local pode reduzir a dependência de um único ponto de falha no estrangeiro.
5. O que uma PME pode fazer já
Não é preciso o orçamento de uma grande empresa para reduzir os riscos da dependência de serviços externos. Estes passos custam sobretudo tempo e organização:
- Fazer o inventário. Listar os serviços externos de que a empresa depende (email, site, sistema de facturação, pagamentos, WhatsApp) e responder, para cada um: o que acontece se cair durante um dia?
- Ter um plano B para as operações críticas. Se as aprovações de pagamento chegam por email, definir um canal alternativo: telefone ou um formulário em papel assinado, com regras claras de quem pode aprovar.
- Guardar uma cópia local do essencial. Contactos de clientes e fornecedores, contratos e facturas em aberto, num sítio que não dependa da internet.
- Ter um segundo canal de comunicação. Um email noutro fornecedor ou um número de telefone fixo que os clientes conheçam.
- Acompanhar as páginas de estado dos fornecedores. A Microsoft, a Google, a AWS e a Cloudflare publicam o estado dos serviços em tempo real. Saber logo que o problema é deles poupa horas a procurar a falha dentro de casa.
- Avisar os clientes cedo. Uma mensagem a dizer “estamos com uma falha de um fornecedor, os prazos de hoje serão respeitados” vale mais do que o silêncio.
- Fazer um simulacro por ano. Escolher um dia e trabalhar uma hora sem o serviço principal. Os buracos no plano aparecem logo.
- Ter uma segunda ligação à internet. Um router 4G/5G de outra operadora pode manter a empresa ligada quando a ligação principal falha.

6. O papel das equipas técnicas
Gerir a dependência de serviços externos não é responsabilidade só de quem escreve código. É de toda a área técnica: developers, DevOps, administradores de sistemas, redes, segurança e suporte. São estas equipas que conhecem as dependências por dentro. Por isso, devem ser as primeiras a pensar no que acontece quando algo falha, e a levar o tema à mesa de discussão antes que a próxima falha o faça por elas.
O que cada equipa pode fazer
Cada área tem a sua parte:
- Desenvolvimento: desenhar os sistemas para a falha. Isso inclui timeouts e retries com intervalos crescentes, filas que guardam os pedidos até o serviço voltar, circuit breakers que deixam de chamar um serviço que falha repetidamente, e um modo degradado que continua a fazer o essencial. Por exemplo, um sistema de aprovações pode permitir aprovar dentro da própria aplicação, sem depender do email. As mesmas ideias aplicam-se ao desenho de APIs, tema que explorei em GraphQL vs REST.
- DevOps e infraestrutura: evitar pontos únicos de falha, distribuir os sistemas por mais de uma região ou fornecedor quando o risco o justifica, e automatizar backups e testar a recuperação. Usar padrões abertos ajuda a que trocar de fornecedor seja possível, mesmo que nunca seja preciso.
- Redes: garantir mais de uma ligação à internet, de operadoras diferentes, e um DNS secundário. Quando um cabo submarino falha, a rota alternativa faz a diferença.
- Segurança e identidade: ter contas de acesso de emergência que não dependam do login principal, para que uma falha na identidade não deixe a equipa trancada fora dos próprios sistemas.
- Suporte: ter o procedimento de contingência escrito e saber comunicar depressa com utilizadores e clientes.
- Todos: monitorizar não só os próprios sistemas, mas também os serviços externos de que eles dependem.
Levar o tema à direcção
E há um papel que vai além da técnica: explicar estes riscos à direcção em linguagem de negócio. Um director não precisa de saber o que é um circuit breaker. Precisa de saber quanto custa uma hora parada e quanto custa evitá-la.
7. Conclusão
A pergunta não é se o serviço vai cair. É o que fazemos quando cair.
Usar a Microsoft, a Google, a AWS ou a Cloudflare não é um erro. São serviços excelentes, e para a maioria das empresas moçambicanas seria impossível construir algo igual. O erro é ignorar a dependência de serviços externos e confiar neles sem plano B, como se nunca fossem falhar. As seis falhas deste artigo mostram que falham, e que quem paga a conta são muitas vezes os mais pequenos.
Obrigado por ler!
8. Referências
123NET. (2024, 13 de Maio). Submarine cable faults cause internet connectivity issues in South Africa and East Africa. https://123net.co.za/submarine-cable-faults-impact-internet-connectivity-south-africa-east-africa/
Dawan Africa. (2026, 13 de Novembro). Global Microsoft outage exposes Africa’s reliance on foreign cloud platforms. https://www.dawan.africa/news/global-microsoft-outage-exposes-africas-reliance-on-foreign-cloud-platforms
Deslandes, N. (2025, 20 de Novembro). Cloudflare outage exposes the hidden fragility of the internet. TechInformed. https://techinformed.com/cloudflare-outage-exposes-fragility-of-internet/
Gilbert, P. (2024, 28 de Maio). Raxio launches data center in Mozambique. Connecting Africa. https://connectingafrica.com/data-centers/connectivity-raxio-launches-data-center-in-mozambique
Greiner, L. (2026, 13 de Novembro). M365 services slowly come back online after global outage. CIO. https://www.cio.com/article/4248596/m365-services-slowly-come-back-online-after-global-outage-2.html
Internet Society. (2024, 23 de Julho). 2024 East Africa submarine cable outage report. https://www.internetsociety.org/resources/doc/2024/2024-east-africa-submarine-cable-outage-report/
Microsoft. (2026, 15 de Novembro). Preliminary post incident report for Microsoft 365 [Relatório preliminar]. https://next.ink/wp-content/uploads/2026/11/PostIncidentReport.pdf
Onyeagoro, J. (2026, 6 de Agosto). Mozambique inaugurates UEM data center to advance digital transformation. TechAfrica News. https://techafricanews.com/2026/08/06/mozambique-inaugurates-uem-data-center-to-advance-digital-transformation/
Parametrix. (2024, 24 de Julho). CrowdStrike to cost Fortune 500 $5.4b; insured loss range of $0.54b – $1.08b. https://parametrixinsurance.com/in-the-news/crowdstrike-to-cost-fortune-500-5-4-billion-insured-loss-range-of-540-million-to-1-08-billion
Prince, M. (2025, 18 de Novembro). Cloudflare outage on November 18, 2025. The Cloudflare Blog. https://blog.cloudflare.com/18-november-2025-outage/
R&I Editorial Team. (2025, 28 de Outubro). AWS outage loss estimates range from $38M to $581M as cyber insurers face moderate impact. Risk & Insurance. https://riskandinsurance.com/aws-outage-loss-estimates-range-from-38m-to-581m-as-cyber-insurers-face-moderate-impact/
Rafael, M. (2026, 22 de Julho). Bubble reforça serviços com dois centros de dados em Moçambique. AIM. https://aimnews.org/2026/07/22/bubble-reforca-servicos-com-dois-centros-de-dados-em-mocambique/
Rogers, O. (2025, Outubro). AWS outage: What are the lessons for enterprises? Uptime Institute. https://intelligence.uptimeinstitute.com/resource/aws-outage-what-are-lessons-enterprises
TechCabal. (2025, 20 de Outubro). From Canva to Standard Bank: How the AWS outage hit South Africa. https://techcabal.com/2025/10/20/from-canva-to-standard-bank-how-the-aws-outage-hit-south-africa/
The EastAfrican. (2021, 5 de Outubro). How Facebook lost $99.5m revenue during downtime. https://www.theeastafrican.co.ke/tea/news/world/how-facebook-lost-99-5m-revenue-during-downtime-3573510
The World Data. (2026, 13 de Novembro). Microsoft 365 outage statistics 2026. https://theworlddata.com/microsoft-365-outage-statistics/
Vicente, N. (2026, 3 de Agosto). UEM opens data center to strengthen digital transformation and scientific research. 360 Mozambique. https://360mozambique.com/innovation/uem-opens-data-center-to-strengthen-digital-transformation-and-scientific-research/
Building an Accessible Scientific Journal Platform with a Virtual Assistant: My Bachelor’s Thesis
Introduction
Hello, dear readers!
Today I want to share the research behind my bachelor’s thesis in Informatics at Universidade Eduardo Mondlane (UEM), completed in May 2022.
The idea was born in the Biblioteca Brazão Mazula, at UEM. There I noticed something I could not forget. Students with visual impairments depended almost completely on other people to study. A colleague, a lecturer, or a library staff member would guide them to the library, find the books for them, and often read those books aloud.
The digital world should have been the way out. Scientific articles are now published online, available 24 hours a day. But most websites are built for people who can see the screen. So the same barrier that existed on the library shelf moved to the browser.
That question became my thesis: can we build a platform for publishing and reading scientific articles that a visually impaired person can actually use?
The answer was O Conhecimento, a scientific journal platform, together with Malesta, a virtual assistant that describes the website to the visitor by voice or text.

Index
- The Problem: An Internet That Is Not Built for Everyone
- Listening First: What the Interviews Taught Me
- The Rulebook: WCAG 2.1 in Four Principles
- The Solution: O Conhecimento
- Meet Malesta, the Virtual Assistant
- Under the Hood: Stack and Methodology
- Testing: What the Users Said
- Looking Back from 2026: Limitations and Malesta 2.0
- Conclusion
- Acknowledgements
- Read the Full Thesis
- References
1. The Problem: An Internet That Is Not Built for Everyone
Numbers first, because they show the size of the problem.
According to the 2017 census of Mozambique’s Instituto Nacional de Estatística (INE), the country had around 90,000 people with visual impairments. Some of them are students. In the same census, around 91,049 people had attended higher education (INE, 2017). University students build their work on articles, theses, and dissertations, and almost all of these now live online.
Now look at the websites they would need to use. In February 2021, the Fórum das Associações Moçambicanas de Pessoas com Deficiência (FAMOD) and Data4Change audited 90 Mozambican websites, including government, shopping, and news sites. They found more than 700,000 accessibility violations, an average of 38 violations per unique page (FAMOD & Data4Change, 2021).
What does a “violation” mean in practice? An image with no description, so the screen reader says nothing. A button that only works with a mouse. A page with no headings, so a blind user cannot jump between sections. For someone using a screen reader, each one of these is a closed door.
There is a second, quieter problem. Even when a site is technically readable, a visually impaired visitor cannot see its layout. Where is the menu? How many pages exist? What is on this page before I start reading it line by line? A sighted user answers these questions in two seconds with a glance. A blind user has to discover them slowly, element by element.
This second problem is the one my virtual assistant was designed to solve.
2. Listening First: What the Interviews Taught Me
Before writing a single line of code, I needed to understand two worlds: how scientific articles are published, and how a visually impaired person actually uses a computer. So I ran two semi-structured interviews.
2.1 How a scientific journal works
I interviewed Prof. Doutora Aidate Mussagy, Editor-in-Chief of the Unidade Editorial da Revista Científica da UEM. She explained the full journey of an article, from submission to publication:
- The author submits the article.
- The editor receives it first and sends it to the reviewers.
- The reviewers check whether the topic is current, whether it follows the journal’s standards, and whether the quality is sufficient, using a review form.
- If the review is positive, the editor-in-chief makes the final decision. The editor then handles proofreading and electronic layout before publication.
At the time, the UEM journal managed this process with Open Journal Systems (OJS). On inclusion, she pointed to the Braille room at the Biblioteca Central Brazão Mazula, which supports people with special needs. This interview gave me the actors of my system: author, editor, editor-in-chief, and reader.

2.2 How a blind user experiences the web
The second interview was the most important one for me. I spoke with Prof. José Chilaule, a member of the Associação dos Cegos e Amblíopes de Moçambique, who is himself visually impaired.
His requirements were simple and very clear. Paraphrasing his words:
- Keep it simple. The platform must not be difficult to navigate.
- Make it keyboard-friendly. A user must be able to move around with the arrow keys.
- Let the platform explain itself. It should describe how to navigate it, what it is about, and how it is structured.
That third point changed my project. Following accessibility rules was necessary but not enough. The platform also needed a guide: something the visitor could ask. That is how Malesta was born.
3. The Rulebook: WCAG 2.1 in Four Principles
Web accessibility has an official rulebook: the Web Content Accessibility Guidelines (WCAG) 2.1, published by the World Wide Web Consortium (W3C). The W3C describes web accessibility as making the web usable by people with disabilities: they must be able to perceive, understand, navigate, and interact with it, and also contribute content to it (W3C, 2018).
WCAG covers many kinds of disability: visual, auditory, physical, speech, cognitive, language, learning, and neurological. All its guidelines are organised under four principles, easy to remember by the acronym POUR:
| Principle | What it means | Example in O Conhecimento |
|---|---|---|
| Perceivable | Users must be able to perceive the information presented | Malesta can read page descriptions aloud, not only show them |
| Operable | Users must be able to operate the interface | Keyboard shortcuts open the assistant without a mouse |
| Understandable | Information and operation must be understandable | Every page follows the same simple layout: header, content, assistant |
| Robust | Content must work with many user agents, including assistive technologies | Standard HTML that screen readers can interpret |
If any of these four fails, a person with a disability simply cannot use the site. O Conhecimento was developed with these four principles as a requirement, not as a decoration added at the end.
4. The Solution: O Conhecimento
The proposed system has two parts that work together:
- O Conhecimento, a web platform to publish and read scientific articles.
- Malesta, a virtual assistant built as a separate API, which knows the structure of the website and describes it to visitors.
Why separate them? Because the assistant is not specific to scientific journals. Any website (sports, entertainment, health) can register its pages in the API and give its visitors the same help. Keeping it independent made it reusable.

4.1 Who uses the platform
| Actor | What they can do |
|---|---|
| Reader | Search articles by voice or text, browse journals and editions, download articles as PDF, use the assistant |
| Author | Register keywords, submit articles, edit submissions, follow their status |
| Editor | Create journals and editions, approve or reject articles, publish editions |
| Editor-in-chief | Everything the editor does, plus manage users and configure the assistant |
The reader is the centre of the project. The reader may or may not be visually impaired, and the platform must serve both equally.
4.2 How the content is organised
The platform follows the real structure of a scientific journal:
- A journal (for example, “Meio ambiente e biodiversidade”) has many editions.
- Each edition has a volume, number, year, and title, and can be opened or closed for submissions.
- Each article belongs to one edition and carries its title, subtitle, abstract, references, file, and status: pending, approved, or rejected.
- Keywords are registered per journal and attached to articles at submission.
A journal only appears on the public website after at least one of its editions is published. This keeps empty journals away from readers.

4.3 One layout for every page
Every page of the website follows the same three-part structure. This consistency matters a lot: once a blind user learns one page, they know them all.
- Header at the top: the site name on the left, the navigation menu on the right (Home, About, Regulations, Contact, Sign in, Register).
- Main content in the middle, which changes from page to page.
- The assistant in the bottom-right corner, always in the same place.

5. Meet Malesta, the Virtual Assistant
Malesta is the heart of the project. Her job is to give a visually impaired visitor the “glance” that a sighted visitor gets for free: what the site is, which pages it has, and how each page is organised.
5.1 Starting a conversation
Malesta lives in the bottom-right corner of every page. You can open her with the mouse or, more importantly, with the keyboard:
- CTRL + 1 starts a conversation by voice
- CTRL + 2 starts a conversation by text
When she opens, she greets the visitor and suggests sending “Ajuda” (Help) or “Malesta” to learn what she can do.

5.2 What you can ask her
The questions follow the order in which a person discovers a new place:
- What is this site about? Malesta reads the site description.
- How many pages does the site have?
- List the available pages. She answers with links to each page.
- Open the page name. She takes you there.
- What is the description of the page name? Its purpose.
- What is the structure of the page name? How it is laid out.
- Help. The list of everything above.

5.3 A real conversation
Here is an example taken from the thesis screenshots, on the Contact page:
Visitor: List the available pages.
Malesta: Available pages: Home, About, Regulations, Contact.
Visitor: Open the contact page.
Malesta: Page address: Contact. (The page opens.)
Visitor: What is the structure of the contact page?
Malesta: It has two sections. The first contains three blocks with information about suggestions, FAQ, and support. The second contains a contact form with the fields name, email, subject, and message.
With that last answer, a blind visitor knows exactly what is on the page and where the form is, before reading a single line. That was the goal.

5.4 Who teaches Malesta?
Malesta does not guess. The editors register the information in the control panel, in a section called Malesta:
- Blog: the site’s name, description, and address.
- Pages: for each page, its title, description, structure, and address.
The API then serves these answers to the chat. Because the knowledge lives in the API and not in the website code, the same assistant can be plugged into any other website.

6. Under the Hood: Stack and Methodology
Here is how the platform was built.
6.1 The stack
| Part | Technology | Why |
|---|---|---|
| Platform (back end) | PHP with Laravel (MVC) | Mature, open-source framework for web applications |
| Platform (front end) | JavaScript | Validation before sending data, instant feedback, keyboard interaction |
| Virtual assistant API | Python with Django (MTV) | Clean, separate API that other websites can reuse |
| Database | MySQL | Free, portable relational database supported by both frameworks |
| Voice input and output | webkitSpeechRecognition (Web Speech API) | Runs in the browser, with no paid service |
Two frameworks in two languages, on purpose: the platform consumes the assistant through an API, so each side can evolve on its own.
Why the web, and not a mobile or desktop app? Because a web platform works on any device with a browser and internet access. There is nothing to install, updates happen once on the server, and the user does not need special hardware.
6.2 How the research was done
- Approach: qualitative research, focused on understanding the people involved rather than measuring large samples.
- Data collection: semi-structured interviews (section 2) and bibliographic research, including previous UEM theses on accessibility.
- Modelling: UML in Astah (class, use case, and sequence diagrams) and architecture diagrams in Lucidchart.
- Development: Extreme Programming (XP), an agile method with small frequent releases, continuous feedback, and constant refactoring.

7. Testing: What the Users Said
The platform was tested by five participants in two phases, using a questionnaire. Each participant needed a device with internet access, a microphone, and speakers.
7.1 Phase 1: Publishing, submitting, and reviewing
This phase covered the editorial side: editor-in-chief, editor, and author.
| Question | Result |
|---|---|
| Difficulty managing journals (create, edit, list, delete)? | 40% yes |
| Difficulty managing editions (create, edit, list, delete, publish)? | 20% yes |
| Difficulty reviewing articles (approve or reject)? | 0% yes |
| Difficulty submitting an article? | 40% yes |
| Would recommend the system to a scientific journal? | 80% yes |
Reviewing was the easiest task: nobody had difficulty. Journal management and article submission were harder, with two of the five participants reporting some difficulty. The submission form asks for many fields (journal, edition, title, subtitle, abstract, references, file, keywords), and keywords must be registered beforehand. That is a clear point to simplify.
7.2 Phase 2: Reading and talking to Malesta
This phase covered readers, with or without visual impairment.
| Question | Result |
|---|---|
| Difficulty searching articles by voice or text? | 20% yes |
| Does the assistant give a visually impaired person the help needed to navigate? | 80% yes |
| Did the assistant answer every question you sent? | 80% yes |
| Voice-to-text transcription quality | 40% excellent, 40% very good, 20% good |
| Would recommend the assistant for other websites? | 100% yes |
The result I am proudest of is the last one: all five participants would recommend Malesta for other websites, such as sports, entertainment, or health sites. The transcription, even using a free browser feature, was rated “good” or better by everyone.

8. Looking Back from 2026: Limitations and Malesta 2.0
Good results feel nice, but an honest article must also show the weak points. Here they are.
8.1 Limitations I recognised in the thesis
- The platform was not yet tested with visually impaired users. I wrote this in the conclusion of the thesis itself: a test with people who have visual impairments was the essential next step, to discover the barriers that only they would find.
- Five participants is a small sample. The results show a direction, not a statistical proof.
- Browser support for voice. webkitSpeechRecognition does not work in every browser. When it is not available, the voice buttons are disabled and only text works. In the thesis I recommended moving to a cross-browser speech service, such as the speech services from Google Cloud or IBM Watson.

8.2 What I would do differently today
Four years and many projects later, this is what I would change:
- Test with screen-reader users from the first prototype. Not at the end. A short session with a blind user using a real screen reader teaches more than any checklist.
- Generate Malesta’s knowledge instead of typing it. Today, editors register each page’s description and structure by hand, and that text can become outdated when a page changes. A modern version could read the page’s own HTML structure and describe it automatically.
- Start from semantic HTML and ARIA landmarks. Malesta describes the layout, but the HTML itself should also announce it, so the screen reader and the assistant tell the same story.
- Simplify the submission flow. The test results showed that submitting an article was one of the harder tasks. Fewer steps, keywords created during submission, and clearer field labels would help every author, not only those with disabilities.
The core idea still stands: a website should be able to explain itself. Accessibility rules make content readable; a guide like Malesta makes the whole place understandable.
8.3 Malesta 2.0: the assistant I would build today
In 2022, Malesta answered seven fixed questions from text that editors typed by hand. That was enough to prove the idea. With the tools we have in 2026, the same idea can become a real research companion. This is the design I would build today.
1. Understand any page automatically
Instead of a manual “Pages” form, Malesta would read the page itself: its HTML landmarks (header, nav, main, footer), headings, links, forms, and buttons. From that structure it would build a description on the fly. When an editor changes a page, the description changes with it. No more outdated text.
2. Talk naturally, not with fixed commands
The seven commands would be replaced by a language model that understands free questions in Portuguese or English, such as “Where do I send my article?” or “Take me to the latest edition about the environment”. Through tool calling, the model would not invent actions; it would call real functions in our back end:
search_articles(query, journal, year)
open_page(name)
describe_page()
read_section(article_id, section)
download_pdf(article_id)
The model decides which tool to use; our code decides what is allowed to happen.
3. Know the articles, not only the website
This is the big jump. Using Retrieval-Augmented Generation (RAG), every published article would be split into chunks, converted into embeddings, and stored in PostgreSQL with the pgvector extension. A reader could then ask:
- “Find articles about cassava profitability in Mozambique.” Semantic search, not just keyword matching.
- “Summarise the methodology of this article.”
- “What did the authors conclude?”
Every answer would cite the article and section it came from. If the answer is not in the articles, Malesta would say so instead of guessing. For a research platform, that rule is not optional.
4. Turn PDFs into something a screen reader can navigate
PDFs are one of the hardest formats for blind readers: broken reading order, figures with no description, tables read as a soup of numbers. On upload, the platform would convert each article into structured, navigable HTML with real headings, so a user can say “jump to the results”. It would also generate draft descriptions for figures and tables, which editors review and approve before publication.
5. Voice that works in every browser
The browser-only webkitSpeechRecognition would be replaced by server-side speech-to-text using an open-source Whisper-class model, so voice works in any browser and better understands Mozambican Portuguese accents. Answers would be spoken with neural text-to-speech, with adjustable speed, because experienced screen-reader users often listen much faster than the default.
6. Work with screen readers, not against them
Answers would be announced through ARIA live regions, so NVDA, JAWS, VoiceOver, or TalkBack read them automatically. Keyboard shortcuts would be configurable, so they never clash with the user’s screen-reader commands.
7. Designed for our reality
Mobile data in Mozambique is expensive and networks are not always stable. Answers would be streamed and text-first, with small payloads. A phone or WhatsApp channel would also let someone search articles and hear a summary without opening a browser at all.
8. Measured, not assumed
Accessibility checks (with tools like axe-core) would run automatically in the CI pipeline on every deploy. And the real test would happen with blind and low-vision users from the first prototype, measuring task success: can you find an article, open it, and reach its conclusion without help?
Proposed stack: Django or Laravel for the platform, PostgreSQL + pgvector for search, Redis queues for PDF processing and embeddings, a language model with tool calling, Whisper-class speech-to-text, all running in Docker.
Coming soon on this blog: Rebuilding O Conhecimento and Malesta. We will not stop at the theory. In a new series, we will rebuild the platform and the assistant from scratch, step by step, with code you can run on your own machine. The plan:
- The new platform: journals, editions, and articles with accessible HTML from day one
- Turning PDFs into navigable, accessible articles
- Semantic search with embeddings and pgvector
- Malesta 2.0: a language model with tool calling
- Giving Malesta a voice: speech-to-text and text-to-speech
- Testing with real screen-reader users
Which part are you most curious about? Tell me in the comments, and that is where we will start.
9. Conclusion
This thesis started with a scene in a university library and ended with a working platform: O Conhecimento, where scientific articles are published and read, and Malesta, an assistant that describes the website by voice or text to anyone who asks.
Along the way I learned how scientific publishing really works, what WCAG asks of us as developers, and, above all, that accessibility starts with listening to the people who need it. The tests were encouraging: 80% of participants said Malesta gives a visually impaired person the help needed to navigate, and 100% would recommend it for other websites.
In the thesis I also left a recommendation for the Unidade Editorial da Revista Científica da UEM: to include Braille editions of its articles in the future, so that inclusion does not depend on technology alone.
This project is also the root of something you may have noticed on this website: my interest in inclusive technology. Soon we will return to it in code, rebuilding O Conhecimento and Malesta 2.0 together in a new series.
Have you ever tested your own website with a screen reader? Try it today; the result may surprise you. Share your experience in the comments. Your feedback matters and helps make these articles better!
Thank you for reading!
10. Acknowledgements
This work was not built alone. My sincere thanks go to:
- João Metambo, MSc, my supervisor at the Department of Mathematics and Informatics of UEM, for his guidance, patience, and support throughout the project.
- Prof. Doutora Aidate Mussagy and the Unidade Editorial da Revista Científica da UEM, for giving their time to explain how scientific articles are published.
- Prof. José Chilaule, for sharing how a visually impaired person really uses the web. His words shaped Malesta.
- My colleagues and friends who tested the system and gave honest suggestions.
- My family, for their constant support during this journey.
11. Read the Full Thesis
The complete thesis, with all the UML diagrams, the interview guides, the test questionnaire, and the user manual, is available in the UEM institutional repository:
Mabande, M. M. (2022). Plataforma de publicação e consulta de artigos científicos acessível a deficientes visuais — Read the full thesis in the UEM repository
(The thesis is written in Portuguese.)
12. References
ABNT. (2003). NBR 6022: Informação e documentação — Artigo em publicação periódica científica impressa — Apresentação. Associação Brasileira de Normas Técnicas.
Cruz, L. T., Alencar, A. J., & Schmitz, E. A. (2018). Assistentes virtuais inteligentes e chatbots. Brasport.
FAMOD & Data4Change. (2021). Investigação baseada em dados: Quão acessíveis são os websites chaves em Moçambique? https://a11y.co.mz/pt/how-we-exclude/
Instituto Nacional de Estatística. (2017). IV Recenseamento Geral da População e Habitação 2017: Resultados definitivos. http://www.ine.gov.mz/iv-rgph-2017/mocambique
Lakatos, E. M., & Marconi, M. A. (2017). Fundamentos de metodologia científica (8th ed.). Atlas.
Mabande, M. M. (2022). Plataforma de publicação e consulta de artigos científicos acessível a deficientes visuais [Bachelor’s thesis, Universidade Eduardo Mondlane].
Sommerville, I. (2011). Engenharia de software (9th ed.). Pearson Prentice Hall.
W3C. (2018). Web Content Accessibility Guidelines (WCAG) 2.1. World Wide Web Consortium. https://www.w3.org/TR/WCAG21/
World Health Organization. (2019). World report on vision. World Health Organization.
Building a GraphQL API with Python: A Practical Tutorial
Hello, dear readers!
Do you remember our task management API from the article Building a RESTful API with Python? Well, today we are going to rebuild it — but this time speaking a completely different language: GraphQL.
And yes, we will be using Python, our programming language friend, together with Django and a library called Graphene.
In the recent article GraphQL vs REST: When to Choose Each, we covered all the theory: why Facebook created GraphQL, the over-fetching problem, the famous single endpoint. Now it is time to get our hands dirty and see all of that working on our own machine.
By the end of this tutorial, you will have a working GraphQL API with Python where the client asks for exactly the data it wants — and you will be able to compare it, file by file, with the REST version we built before. Same project, two philosophies. Sounds fun? Let’s go!
Index
- What We Are Building
- Setting Up the Environment
- Creating the Task Model
- The Heart of GraphQL: The Schema
- One Endpoint to Rule Them All
- Playing with GraphiQL
- Testing Our API (Like Professionals)
- REST vs GraphQL: Same Project, Side by Side
- Conclusion
- References
1. What We Are Building
The Task Management API. Each task has a title, a description, and a status that can be PENDING, IN_PROGRESS, or DONE.
But here is the twist. In the REST version, we needed serializers, views, and routers spread across multiple files, plus one URL per resource. In the GraphQL version, we will have:
- One single endpoint:
/graphql/ - One schema file where everything lives
- Queries to read tasks (with the client choosing the fields!)
- Mutations to create, update, and delete tasks
- A free interactive playground called GraphiQL
2. Setting Up the Environment
As always, let’s keep things organized with a virtual environment. Open your terminal and type:
mkdir taskmanager_graphql && cd taskmanager_graphql
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Now, let’s install our ingredients:
pip install django graphene-django
Graphene-Django is the bridge between Django and GraphQL. It knows how to transform our Django models into GraphQL types almost magically — you will see.
Create the project and the app:
django-admin startproject taskmanager_graphql .
python manage.py startapp tasks
Then register both in taskmanager_graphql/settings.py:
INSTALLED_APPS = [
# ... default Django apps ...
'django.contrib.staticfiles',
'graphene_django', # our new friend
'tasks', # our app
]
# Tell Graphene where our schema will live (we will create it soon)
GRAPHENE = {
"SCHEMA": "tasks.schema.schema",
}
3. Creating the Task Model
Open tasks/models.py. If you followed the REST tutorial, this will look very familiar — and that is exactly the point. Same model, so we can compare both worlds fairly:
from django.db import models
class Task(models.Model):
"""Task model — same structure as our REST tutorial,
so you can compare both approaches directly."""
class Status(models.TextChoices):
PENDING = "PENDING", "Pending"
IN_PROGRESS = "IN_PROGRESS", "In Progress"
DONE = "DONE", "Done"
title = models.CharField(max_length=200)
description = models.TextField(blank=True)
status = models.CharField(
max_length=20,
choices=Status.choices,
default=Status.PENDING,
)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
ordering = ["-created_at"]
def __str__(self):
return self.title
Run the migrations:
python manage.py makemigrations tasks
python manage.py migrate
Our database is ready. Now comes the interesting part.
4. The Heart of GraphQL: The Schema
Here is where GraphQL really differs from REST. Remember that in the REST tutorial we created serializers.py, then views.py, then registered routes? In GraphQL, all of that lives in one file: the schema.
Create tasks/schema.py. I will build it piece by piece, and for each piece I will tell you its REST “cousin”, so nothing feels alien.
4.1 The Type (cousin of the Serializer)
import graphene
from graphene_django import DjangoObjectType
from .models import Task
class TaskType(DjangoObjectType):
class Meta:
model = Task
fields = ("id", "title", "description", "status", "created_at", "updated_at")
That’s it. DjangoObjectType looks at our model and generates the GraphQL type automatically. In the REST version, our serializer did a similar job — but here we get a strongly typed contract for free.
4.2 Queries (cousins of the list/retrieve views)
class Query(graphene.ObjectType):
all_tasks = graphene.List(
TaskType,
status=graphene.String(required=False),
description="Retrieve all tasks, optionally filtered by status.",
)
task_by_id = graphene.Field(
TaskType,
id=graphene.ID(required=True),
description="Retrieve a single task by its ID.",
)
def resolve_all_tasks(root, info, status=None):
queryset = Task.objects.all()
if status:
queryset = queryset.filter(status=status.upper())
return queryset
def resolve_task_by_id(root, info, id):
try:
return Task.objects.get(pk=id)
except Task.DoesNotExist:
return None
Each field has a resolver — a function that knows how to fetch that data. Notice the small kindness to our users: status.upper() means they can write “pending” or “PENDING”, and both work. Small details make friendly APIs.
4.3 Mutations (cousins of create/update/destroy)
class CreateTask(graphene.Mutation):
class Arguments:
title = graphene.String(required=True)
description = graphene.String(required=False)
task = graphene.Field(TaskType)
ok = graphene.Boolean()
def mutate(root, info, title, description=""):
task = Task.objects.create(title=title, description=description)
return CreateTask(task=task, ok=True)
class UpdateTaskStatus(graphene.Mutation):
class Arguments:
id = graphene.ID(required=True)
status = graphene.String(required=True)
task = graphene.Field(TaskType)
ok = graphene.Boolean()
message = graphene.String()
def mutate(root, info, id, status):
status = status.upper()
valid = [choice[0] for choice in Task.Status.choices]
if status not in valid:
return UpdateTaskStatus(
task=None, ok=False,
message=f"Invalid status. Valid options: {', '.join(valid)}",
)
try:
task = Task.objects.get(pk=id)
except Task.DoesNotExist:
return UpdateTaskStatus(task=None, ok=False, message="Task not found.")
task.status = status
task.save()
return UpdateTaskStatus(task=task, ok=True, message="Status updated.")
class DeleteTask(graphene.Mutation):
class Arguments:
id = graphene.ID(required=True)
ok = graphene.Boolean()
message = graphene.String()
def mutate(root, info, id):
deleted, _ = Task.objects.filter(pk=id).delete()
if deleted:
return DeleteTask(ok=True, message="Task deleted.")
return DeleteTask(ok=False, message="Task not found.")
class Mutation(graphene.ObjectType):
create_task = CreateTask.Field()
update_task_status = UpdateTaskStatus.Field()
delete_task = DeleteTask.Field()
Notice the pattern ok + message in our mutations. Instead of throwing scary errors, our API answers politely: “Invalid status. Valid options: PENDING, IN_PROGRESS, DONE”. Your future front-end colleagues will thank you for this. Trust me.
4.4 The Schema (gluing everything together)
At the end of the file:
schema = graphene.Schema(query=Query, mutation=Mutation)
Four concepts: Type → Query → Mutation → Schema. That is the whole GraphQL mental model.
5. One Endpoint to Rule Them All
In the REST tutorial, we registered several routes. Today, open taskmanager_graphql/urls.py and behold:
from django.contrib import admin
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from graphene_django.views import GraphQLView
urlpatterns = [
path("admin/", admin.site.urls),
# ONE single endpoint — this is GraphQL's philosophy in practice
path("graphql/", csrf_exempt(GraphQLView.as_view(graphiql=True))),
]
One route. That’s all. Everything — reads, writes, deletes — goes through /graphql/. Remember the theory article? This is that “single endpoint” idea, now living in your urls.py.
The graphiql=True parameter gives us a free interactive playground. Let’s meet it.
⚠️ Heads-up:
csrf_exemptandgraphiql=Trueare here to keep the tutorial simple. In production, add authentication, handle CSRF properly, and turn GraphiQL off (or restrict it).
6. Playing with GraphiQL
Start the server:
python manage.py runserver
Now open http://127.0.0.1:8000/graphql/ in your browser and say hello to GraphiQL — an interactive editor with auto-completion and documentation, generated automatically from our schema.

6.1 Creating our first task
Paste this in the left panel and press the play button:
mutation {
createTask(title: "Learn GraphQL", description: "Following the mariomthree tutorial") {
ok
task {
id
title
status
}
}
}

The response confirms: our task was born with status PENDING. Create two or three more — we will need them.
6.2 The magic moment: asking only for what we need
Now, the query that justifies this whole tutorial:
query {
allTasks {
title
status
}
}
Look carefully at the response. Where is the description? Where is createdAt? They are not there — because we did not ask for them.

This is the over-fetching problem from our theory article, solved in front of your eyes. In the REST version, GET /api/tasks/ always returned every field of every task. Here, the client is in control. Try adding id to the query and watch the response change instantly.
6.3 Updating and filtering
Change a task status:
mutation {
updateTaskStatus(id: 1, status: "in_progress") {
ok
message
task { title status }
}
}
And now try to break it (breaking things is how we learn 😄):
mutation {
updateTaskStatus(id: 1, status: "flying") {
ok
message
}
}

Our API answers with ok: false and a helpful message listing the valid options. This is the ok + message pattern earning its keep.
Finally, filter tasks by status:
query {
allTasks(status: "pending") {
title
status
}
}
7. Testing Our API (Like Professionals)
A tutorial that ends without tests is only half a tutorial. Create tasks/tests.py:
import json
from django.test import TestCase, Client
from .models import Task
class GraphQLTaskAPITest(TestCase):
def setUp(self):
self.client = Client()
self.task = Task.objects.create(title="Test task", description="A test")
def query(self, q):
response = self.client.post(
"/graphql/", data=json.dumps({"query": q}),
content_type="application/json",
)
return json.loads(response.content)
def test_query_all_tasks(self):
data = self.query("{ allTasks { title status } }")
self.assertEqual(data["data"]["allTasks"][0]["title"], "Test task")
def test_create_task_mutation(self):
data = self.query('''
mutation { createTask(title: "New task") { ok task { title } } }
''')
self.assertTrue(data["data"]["createTask"]["ok"])
self.assertEqual(Task.objects.count(), 2)
def test_invalid_status_returns_error_message(self):
data = self.query(f'''
mutation {{ updateTaskStatus(id: {self.task.id}, status: "flying") {{ ok message }} }}
''')
self.assertFalse(data["data"]["updateTaskStatus"]["ok"])
self.assertIn("Invalid status", data["data"]["updateTaskStatus"]["message"])
def test_client_chooses_fields(self):
"""The core GraphQL promise: response contains ONLY requested fields."""
data = self.query("{ allTasks { title } }")
task = data["data"]["allTasks"][0]
self.assertIn("title", task)
self.assertNotIn("description", task)
My favorite is the last one: test_client_chooses_fields. It literally proves, in code, the promise that brought us here. Run everything:
python manage.py test

All pass. Beautiful.
(The code above has 4 tests. In the GitHub repository you will find the complete test suite with 7 tests, including updates, deletes, and filtering — so if you run the repository, you will see 7.)
8. REST vs GraphQL: Same Project, Side by Side
Since we built the exact same project twice, we earned the right to a fair comparison:
| Aspect | REST version (DRF) | GraphQL version (Graphene) |
|---|---|---|
| Endpoints | /api/tasks/, /api/tasks/<id>/ | /graphql/ only |
| Code organization | serializers.py + views.py + urls.py | One schema.py |
| Response shape | Fixed (all fields, always) | Client chooses the fields |
| Interactive docs | Swagger (needed setup) | GraphiQL (came for free) |
| Testing tool | Postman / Swagger | GraphiQL in the browser |
| Learning curve | Familiar territory | New concepts (types, resolvers, mutations) |
My honest opinion after building both? For a small CRUD like this one, REST is simpler and perfectly fine — exactly as we concluded in the theory article. But now you have felt the difference in your fingers, and when a project with multiple clients and interconnected data appears in your life, you will know precisely which tool to reach for.
9. Conclusion
Today we rebuilt our task management API in GraphQL and, along the way, we saw the theory from the previous article come alive: the single endpoint, the client choosing fields, the auto-generated documentation, and friendly error handling with the ok + message pattern.
The complete project, with all 7 tests, is on my GitHub: https://github.com/mariomthree/task-management-graphql-api
Feel free to clone it, break it, improve it — and leave a star if it helped you! ⭐
Your thoughts matter! Did you prefer building this in REST or in GraphQL? Share your experience in the comments — and if something did not work on your machine, tell me and we will debug it together.
Thank you for reading, and see you in the next article! 👋
10. References
Django Software Foundation. (2026). Django documentation. https://docs.djangoproject.com/
Graphene Community. (2026). Graphene-Django documentation. https://docs.graphene-python.org/projects/django/
GraphQL Foundation. (2024). GraphQL documentation. https://graphql.org/
Mabande, M. M. (2025, September 9). Building a RESTful API with Python: Creating a simple task management. MarioM3. https://mariomthree.com/building-a-restful-api-with-python-creating-a-simple-task-management/
Mabande, M. M. (2026, July 20). GraphQL vs REST: When to choose each one. MarioM3. https://mariomthree.com/graphql-vs-rest/





