# Why I Built Moharrik, a CRM and Shared Inbox on ToGO

> Clients wrote to me on WhatsApp, email and my site chat, and I kept losing context. Here is why I built Moharrik on ToGO and what I chose.

*2026-10-19T12:49:04Z*

# Why I Built Moharrik, a CRM and Shared Inbox on ToGO

Most of my clients talk to me on WhatsApp. Some write by email, and some use the chat on my sites. I kept losing context between the three, and my CRM knew none of it.

That is the whole reason Moharrik exists. I wanted the contacts, the deals and those conversations in one workspace, in Arabic and English.

## The part I use most

Every capability in Moharrik is an MCP tool. I can ask Claude to triage the inbox or draft replies. The `reply` tool sends through the real channel, so I keep my client's per-tool approval on and confirm before anything goes out.

## What I chose, and what it cost

- **Go on ToGO, with Next.js in the same container.** The backend imports the ToGO framework and its auth, cache, Postgres, i18n, queue, rate-limit, realtime and storage plugins.
- **Isolation in the database.** Each workspace's rows are protected by Postgres row-level security, and the app connects as a role with no superuser and no BYPASSRLS. The cost: the ORM holds a concrete `*sql.DB`, so I wrapped the connection to set the workspace on every statement.
- **Scopes on every tool.** A CI test fails the build if an MCP tool has no scope. The cost is a little friction each time I add a tool.
- **Open source from the start of the public repo.** It is AGPL-3.0, so you can read all of it.

The first commit is dated 2026-09-19. Four weeks later the repo has 445 commits and launched on Product Hunt on 17 October.

## The details

I wrote the technical version separately: how the plugins fit together, the two connection pools, the real code and what was hard. Read it here: [Multi-tenant Postgres RLS in Go: Moharrik on ToGO](https://to-go.dev/en/blog/moharrik-togo-case-study).

If you want to know what the inbox does and how to run it, start with [One Shared Inbox for WhatsApp, Email and Website Chat](https://moharrik.com/en/blog/shared-inbox-whatsapp-email-website-chat).

## FAQ

**Why ToGO?** It is the framework I maintain, and Moharrik's go.mod imports it. The case study names each plugin and what it does.

**Is it open source?** Yes, AGPL-3.0.

## Next steps

- [Moharrik on Product Hunt](https://www.producthunt.com/products/moharrik)
- [GitHub](https://github.com/fadymondy/moharrik) and [Discord](https://discord.gg/BMERkavdVq)
- [ToGO showcase](https://to-go.dev/en/showcase)

---

Source: https://fadymondy.com/en/blog/why-i-built-moharrik
