← All projects
Platform2025·Full Stack Developer

Draft to Brand

A multi-tenant agency operating system with a public site and an admin dashboard: organizations, granular RBAC, a CRM pipeline, and email marketing automation.

Outcome
Multi-tenantorgs, RBAC, CRM and email automation

The problem

Agencies need one system to run multiple client organizations with isolated data, fine-grained permissions, a sales pipeline, and outbound email, instead of stitching together separate tools.

The approach

Built a public marketing site and an admin dashboard over a single Postgres schema. Modeled organizations, branches, departments, teams, and members with a full role and permission system, plus a CRM and an email marketing engine with campaigns and drip sequences.

Architecture

Next.js App Router for both the public client and the admin dashboard. Prisma over Postgres (Neon serverless adapter), Better Auth for sessions and accounts, Resend for transactional and campaign email, TanStack Table, react-hook-form, and Zod. Granular RBAC via Role, Permission, RolePermission, and per-user overrides, with audit logging.

Key features

  • Multi-tenant organizations with branches, departments, teams, and members
  • Granular role and permission system with per-user overrides and audit logs
  • CRM with companies, contacts, tags, pipelines, stages, leads, and lead activity
  • Email marketing with campaigns, recipients, events, and multi-step drip sequences
  • Suppression list and email delivery logging
  • Invitations and email verification via Resend

Tech stack

Next.jsTypeScriptPrismaPostgreSQLNeonBetter AuthResendTanStack TableReact Hook FormZodFramer MotionTailwind CSS

The result

A single platform runs multiple agency organizations with isolated data, fine-grained access control, a CRM pipeline, and automated email sequences.

Let's talk

Let's build
SOMETHING REAL.

Have a system that needs to think, scale, or just finally get shipped? Let's make it happen.

Based in Dhaka, Bangladesh · Available worldwide