Enterprise-grade multi-product monorepo for 17Suit, designed for scaling from day one to 10-20+ products with strict domain isolation and shared platform primitives.
- Node
24.13.1(mínimo>=24.0.0 <25) pnpmworkspaces (10.30.3)- Turborepo
- TypeScript everywhere
- Next.js 16 for web surfaces
- Expo SDK 54 + React Native 0.81.5 for mobile surfaces
- Shared ESLint + TypeScript + Prettier configuration packages
- Husky + lint-staged pre-commit enforcement
apps/
landing/ # 17suit.com (marketing only)
admin/ # admin.17suit.com
seven-rc-web/ # seven-rc.17suit.com
seven-rc-mobile/
six-sp-web/ # sixsense.17suit.com
six-sp-mobile/
five-bg-web/ # barber.17suit.com
five-bg-mobile/
nine-nr-web/ # nurse.17suit.com
nine-nr-mobile/
two-sb-web/ # split.17suit.com
two-sb-mobile/
one-pt-web/ # travel.17suit.com
one-pt-mobile/
four-yc-web/ # closet.17suit.com
four-yc-mobile/
eight-dd-web/ # dishes.17suit.com
eight-dd-mobile/
fifteen-ac-web/ # cash-pulse.17suit.com
fifteen-ac-mobile/
packages/
core/ # API client, auth, env, logging, analytics, flags
ui/ # cross-platform UI primitives (web/native conditional exports)
modules/
seven-reservations-club/
six-sense-proof/
five-barber-go/
nine-to-nine-nurse/
two-split-bill/
one-plan-trip/
four-you-closet/
eight-dream-dishes/
fifteen-all-check/
typescript-config/ # shared TS configs
eslint-config/ # shared ESLint configs
tailwind-config/ # shared Tailwind baseline (optional per app)
tooling/
generators/create-product.mjs # rapid product bootstrap
monorepo-tools/ # workspace entrypoint for generators
- Marketing pages:
17suit.comand17suit.com/<product-slug> - Product web apps:
<product>.17suit.com - Admin app:
admin.17suit.com
Marketing and product surfaces are intentionally separated to avoid coupling release lifecycles and runtime concerns.
packages/corecontains horizontal platform concerns used by all apps.packages/modules/<product>owns each product domain model, validators, and domain feature-flag keys.packages/uicentralizes shared design primitives across Next.js and Expo apps.- Apps are thin composition layers that wire UI + platform + domain packages.
- Product apps import only:
@17suit/core@17suit/ui- their own
@17suit/module-<product>package
- No product module depends on another product module.
- Shared logic moves to
coreorui, never copied between apps.
Use app-level .env files with shared keys:
APP_ENV=local|staging|productionAPI_BASE_URL=...FEATURE_FLAG_PROVIDER=memory|launchdarkly|...NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYNEXT_PUBLIC_ALLOWED_REDIRECT_ORIGINS(optional, previews only)NEXT_PUBLIC_SITE_ORIGIN_<KEY>(optional escape hatch, e.g...._SEVEN_RC; previews resolve branch aliases on their own)
Site origins (landing, products, admin) are not env vars: they live in
packages/core/src/site-origins.ts. Add a product there once; auth redirects,
the redirect allow-list and landing links all read it.
EXPO_PUBLIC_CLERK_PUBLISHABLE_KEYEXPO_PUBLIC_CLERK_JWT_TEMPLATEEXPO_PUBLIC_API_BASE_URLEXPO_PUBLIC_API_BASE_URL_FALLBACKS
Examples are provided:
.env.example.env.staging.example.env.production.example
- This repo is pinned to
pnpm@10.30.3viapackageManagerin rootpackage.json. - pnpm 10 blocks dependency lifecycle scripts by default unless explicitly allowed.
- Allowed native build dependencies are declared in
pnpm-workspace.yamlunderonlyBuiltDependencies:@swc/coreesbuildsharpunrs-resolver
- Web apps use Next.js 16 (including
proxy.tsconvention replacing deprecatedmiddleware.ts). - Mobile apps use Expo SDK 54 and React Native 0.81.5.
turbo.json defines package-level tasks for cacheable parallel execution:
builddepends on^buildand caches outputslintandtypecheckrun across graphdevis persistent and uncached
In CI, changed-package runs are enabled with:
pnpm turbo run lint typecheck --affectedpnpm turbo run build --affected
- Install dependencies:
pnpm install- Run everything in parallel:
pnpm dev2.5. Run only one product (web + mobile tunnel) with Turbo filters:
pnpm run dev:product --product=seven-rc
# or
pnpm run dev:product --seven-rc- Run a single app:
pnpm --filter @17suit/landing dev
pnpm --filter @17suit/admin dev
pnpm --filter @17suit/seven-rc-web dev
pnpm --filter @17suit/seven-rc-mobile devpnpm --filter @17suit/two-sb-mobile devstarts Expo (standard mode).
- Quality gates:
pnpm lint
pnpm typecheck
pnpm build- Create base directories:
pnpm --filter @17suit/tooling product:new <product-slug> <subdomain>- Clone an existing trio and adapt it:
apps/<product>-webapps/<product>-mobilepackages/modules/<product>
- Update:
- app package names
- module package name (
@17suit/module-<product>) - domain schemas/services/validators
- DNS/subdomain + deployment project mapping
- marketing route entry in
apps/landing
- Deploy only affected packages/apps via Turborepo in CI.
Finance cockpit product docs live in docs/fifteen-all-check.md.
- Auth landing forms now use consistent shared input/button styling, semantic form structure, compact inline errors, and fixed submit button behavior.
- Shared UI typography no longer applies oversized base line-height values; affected web components now use unitless intended ratios.
- Web apps load shared design-system Tailwind sources explicitly.
- Product auth redirects preserve intended product destinations after Google login.
AppProductFooteris a UI shell: app-level implementations pass NextLinkand auth controls, and footer actions now respond to session state.- Fifteen All Check email ingestion UI now uses RHF + Zod + nuqs for discovery params, compact inbox-style raw email rows, shared
Separator, fixed workspace background, and content-scoped footer layout. - Web toast notifications use Sonner through shared abstraction:
@17suit/ui-webownssonner.@17suit/ui/feedback/toastexposesToastProviderandnotify.AppProvidersmounts one global web toaster.
- Client onboarding docs now match the real baseline: Node 24, pnpm 10.30.3, Expo 54, and React Native 0.81.5.
- Shared env examples include product redirect URLs, allowed redirect origins, Expo API base URLs, and Clerk JWT template config.
seven-rc-mobiledebug navigation/submission logs were removed after confirming app lint and typecheck.@17suit/toolingquality gates now syntax-check monorepo scripts instead of returning no-op success.- Frontend testing gap is documented; next implementation target is a Vitest-based unit test layer for landing auth redirect sanitization.
- The
fix/auth-redirect-loopbranch was updated withmain; conflicts were resolved by keeping the sharedapps/landing/app/lib/auth-redirect.tshelper instead of reintroducing inline redirect sanitizers.
- Product preview branches are documented in docs/deployment-branches.md.
- Create them locally with
pnpm preview:branches:create. - For Vercel monorepo projects, configure the Ignored Build Step with
tooling/scripts/vercel-ignored-build.mjsso each app only builds on its own preview branch ormain, and only when relevant files changed. - Deployed web apps also expose this from code through per-app
vercel.mjswrappers that import shared logic fromtooling/vercel/shared.mjs.
This scaffold is intentionally enterprise-oriented and ready for further hardening:
- plug in real auth provider in
packages/core - wire external feature-flag provider in
packages/core - add observability exporters in
packages/core/logger - add integration/unit test layers per package/app
- map each app to isolated deployment targets
Frontend test rollout guidance lives in docs/frontend-testing-plan.md.