~/adnan-ahmed
Adnan Ahmed
All projects

Qelem (ቀለም)

Live

Developer devlog & 'learn in public' publishing platform for African software engineers, with hybrid fan-out caching in Valkey and rich markdown composing.

ReactTanStack QueryNode.jsValkeyMongoDBPWA

Live Application: qelem-sandy.vercel.app
Compose View: qelem-sandy.vercel.app/compose
Source Repository: github.com/PROFESSOR-ADNAN/qelem

The problem

Trainees in intensive software engineering programs (such as A2SV and ALX) learn at an extraordinary pace, but often lack a dedicated space tailored for technical writing and daily devlogging. Generic blogging platforms (Medium, Substack) are bloated with paywalls and poor syntax highlighting, while Twitter/X enforces character limits unsuitable for code snippets and algorithmic explanations.

The solution

Qelem (ቀለም, meaning "ink" in Amharic) is a developer-first micro-publishing platform and collaborative learning community. It allows engineers to maintain public devlogs, document problem-solving epiphanies, format syntax-highlighted code snippets, and build verifiable public engineering track records.

Engineering highlights

  • Hybrid fan-out feed architecture: High-volume feed reads are optimized using Valkey 8.0 (high-performance Redis alternative). The system employs a hybrid fan-out model: write-time timeline pushing for active peer networks, combined with read-time materialized cache retrieval for trending feeds, maintaining sub-25ms response latencies under heavy read pressure.
  • Rich markdown composer & syntax highlighting: Built an interactive composition editor supporting live side-by-side Markdown rendering, multi-language syntax highlighting, code block copy shortcuts, and automated local draft auto-saving.
  • TanStack Query optimistic UI: User interactions (claps, bookmarks, comments) trigger optimistic UI updates that reflect immediately on screen while background API synchronizations proceed, rolling back cleanly if a network error occurs.
  • Progressive Web App (PWA) offline reading: Equipped with custom service worker caching (registerSW.js) allowing developers on slow cellular networks to read previously cached devlogs and technical articles offline.

Review & architectural takeaways

Optimizing for developer experience means minimizing composition friction and ensuring instantaneous feed rendering. Combining Valkey caching with TanStack Query's optimistic client state yielded an ultra-responsive publishing experience tailored for developers writing code and learning in public.