Fantasktic logo

Fantasktic

Live

Enterprise SaaS Management Platform · Stupendastic Films (Fos a Blanc SL)

About the project

Multi-tenant Monday.com-style platform developed at Stupendastic Films (audiovisual production company) with commercialization goal. Started as a freelance consultant (code audit, 25 bugs, 15 features, auth migration) and continued as developer. With 307 of 1033 commits (~109K lines), I designed and implemented core architecture: multi-tenancy with subdomains, cross-domain authentication, canvas performance with virtualization, and CI/CD with Docker. Built complete modules for HR, time tracking, expenses, Google Calendar sync, real-time chat, notifications, automations, digital signatures and admin dashboard. Stack: Next.js 14, TypeScript, PostgreSQL (~150 tables), Redis, Docker, Coolify.

Technologies

Next.jsTypeScriptPostgreSQLRedisDockerCoolifyDrizzle ORMSSEMulti-tenant

Features

  • 307 commits (of ~1033 in ~6 dev team) · ~109K lines added · 30+ modules
  • Multi-tenant architecture with subdomains, cross-domain OAuth and secure cookies
  • Virtualized canvas with thousands of items, sticky headers and requestAnimationFrame
  • Google Calendar Sync: dual OAuth, multi-column DATE sync, rate limiting
  • Complete Time Clock system: calendar, geolocation, breaks, visual timeline
  • HR Module: interactive org chart, Gantt absence calendar, digital signatures
  • Real-time chat, SSE notifications with Redis pub/sub, automations
  • Expense system with mobile capture, PDF/image viewer and recurring entries
  • Junior developer mentoring in project patterns and code review

Technical challenges

  • Designing secure multi-tenant architecture with ~150 PostgreSQL tables
  • Resolving complex NextAuth issues in production (JWT, cross-domain cookies)
  • Performance optimization in virtualized tables with thousands of items
  • Implementing bidirectional Google Calendar sync with duplicate detection
  • Race conditions in bulk creation and infinite re-render loops
  • CI/CD with multi-stage Docker, pnpm 9-10 migration, env variables in builds

Learnings

  • Large-scale multi-tenant architecture in production
  • Advanced security: RLS, HR field encryption, timing-safe comparisons
  • Real-time systems with SSE and Redis pub/sub
  • Technical leadership and mentoring in development team
  • Self-hosted infrastructure: multi-stage Docker, Coolify, 36 cron jobs

Developer at Stupendastic Films / Fos a Blanc SL (audiovisual production company).