EmofyEmofy Developers
Architecture

Tech Stack

Every technology in the Emofy Platform and what it is used for.

A single reference for what runs where. For how the pieces connect, see the Architecture overview.

Languages & runtime

TechnologyUsed for
TypeScriptEverything — strict mode; prefer unknown over any.
Node.js 22Runtime for the backend and Next.js apps.
pnpm 10 + TurborepoMonorepo package management and cached builds.

Backend

TechnologyUsed for
NestJS 11The REST API framework; modules, guards, interceptors, DI.
Drizzle ORMType-safe Postgres access; schema SSOT in @emofy/db.
PostgreSQLPrimary datastore — dual database (auth + core) + partitioned audit.
RedisCache and rate-limit buckets; backing store for queues.
BullMQDurable background jobs (notifications, email, webhooks).
ConvexReal-time backend for messaging and presence.
MeilisearchFull-text search across feed, messages, and tasks.
Passport (JWT)JWT verification strategy in front of Better Auth tokens.

Frontend

TechnologyUsed for
Next.js 16The web apps (account, admin, consumer, docs, marketing, landing).
ReactUI layer across web and (via React Native) native.
Expo 54 / React NativeThe mobile app (native), currently demo-stage.
Tailwind CSSStyling, driven by design tokens.
FumadocsThis documentation site.
ScalarInteractive OpenAPI reference rendering.

Auth & identity

TechnologyUsed for
Better Auth 1.6.xSessions, RS256 JWT, 2FA, magic link, organization plugin.
JWKS (RS256)Public-key JWT verification; consumed by backend and Convex.

Design system

PackageUsed for
@emofy/tokensColor / spacing / typography / motion token SSOT.
@emofy/rdsLow-level UI primitives (Ramarkable Design System).
@emofy/ramarkableHigh-level components, the EMA shell, page templates.

Storage & assets

TechnologyUsed for
Cloudflare R2Immutable EMA bundle hosting + email/brand assets.
S3Organization file uploads.

Infrastructure & delivery

TechnologyUsed for
RailwayBackend hosting (GHCR Docker image; environments dev / staging / main).
VercelFrontend hosting (account, admin, consumer, docs, marketing).
OpenTofuInfrastructure as code — Railway + Vercel project wiring.
InfisicalSecret SSOT; synced to deploy targets.
GitHub ActionsCI (typecheck, lint, test) and deploy.yml image build/push.
SentryError tracking (5xx capture).
PinoStructured logging.

Email & i18n

PackageUsed for
@emofy/email (React Email + Resend)Transactional email templates (EN / TR).

Where to look next

On this page