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
219 merged PRs to Mongoose
27.5k stars

Open Source

Mongoose

Core Maintainer

27.5k 6M/week

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

2,000+ commits ยท 219 merged PRs

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

Kareem

Contributor

85 5.6M/week

The hooks/middleware engine that powers Mongoose.

  • - Added filter option to hook execution for selective middleware

Homebrew

Contributor

48.6k

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

Getting Obsidian Off iCloud: Self-Hosted, Encrypted Sync with Cloudflare R2

iCloud sync for my Obsidian vault left Windows out, broke on my work laptop when personal iCloud was blocked, and eventually made the app take 50 seconds to launch. Here is the self-hosted, end-to-end-encrypted replacement on Cloudflare R2, and how to build the same thing.

#obsidian#cloudflare#r2#self-hosting#sync#remotely-save

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
All posts →