Hi, I'm

Abdelrahman Hafez

Backend Engineer

I build reliable backend systems and contribute to open source. Core maintainer of Mongoose, the most popular MongoDB ODM for Node.js. Based in Amsterdam.

9+ years
214 merged PRs to Mongoose
27.5k stars

Open Source

Mongoose

Core Maintainer

27.5k 5.6M/week

The most popular MongoDB object modeling tool for Node.js.

2,000+ commits ยท 214 merged PRs

  • - Maintain core ODM: schema system, query engine, middleware pipeline
  • - Drive TypeScript type definitions serving 5.6M weekly downloads
  • - Review community PRs, triage issues, shape project direction

Kareem

Contributor

85 5.1M/week

The hooks/middleware engine that powers Mongoose.

  • - Added filter option to hook execution for selective middleware

Homebrew

Contributor

48.3k

The missing package manager for macOS.

  • - Fixed autoremove deleting Brewfile packages during cleanup
  • - Refactored Brewfile reading logic in bundle command

claude-code-plus

Creator

24

Enhancements for the Claude Code CLI: smart auto-approval for piped commands and 850+ pre-configured safe permissions.

  • - Auto-approval hooks for piped Bash commands
  • - Pre-configured safe permissions for common dev tools

mongoose-cast-aggregation

Creator

26

A Mongoose plugin that automatically casts aggregation pipeline stages.

  • - Automatic type casting for MongoDB aggregation pipelines

x-cli

Creator

A CLI tool to view X (Twitter) posts and replies in the terminal.

  • - Guest mode, thread context, JSON and pretty-print output
  • - Shell completions for bash, zsh, and fish

Node.js Best Practices

Contributor

105k

The largest Node.js best practices list. A top resource for Node developers.

  • - Early contributor: proposed new sections, contributed to performance and testing strategy
  • - Worked on error handling, proposed batch operations for performance best practices

Recent Writing

Self-Hosting Shottr Screenshots on Your Own Domain with Cloudflare

How I replaced Shottr's cloud uploads with a Cloudflare Worker and R2 so screenshots live on my own domain behind unguessable URLs. Full build, with every gotcha.

#cloudflare#shottr#self-hosting#workers#screenshots

This New Mongoose Feature Can Improve Your MongoDB Write Operations Up to 2.6x

How Model.bulkSave() leverages MongoDB's bulkWrite to reduce network roundtrips and significantly improve write performance.

#mongodb#javascript#performance#codequality

Software Performance: A Pragmatic Guide

A practical approach to performance optimization. Focus your energy where it matters: I/O bottlenecks, not micro-optimizations.

#performance#codequality#productivity
All posts →