Intry

Intry Admin

Express proxy, Clerk gateway, and admin SPA for property managers.

Overview

tools/intry-admin is the property-manager and platform-admin dashboard. It is an Express 4 server that:

  1. Proxies /api/admin/* to Railway Core backends with X-Admin-Env routing.
  2. Serves static HTML/JS templates for the admin UI.
  3. Integrates Clerk (@clerk/express) for the modern login gateway.

IN-103 target

The Next.js App Router PM Command Center (shadcn/ui, PlanGate, server components) is the IN-103 target design. The current Express + static SPA is what runs in production today.

Environment routing

X-Admin-Env: DEV | TEST | STAGING | PROD

The proxy selects the matching Core base URL per environment. Never call production Core from staging scripts without explicit intent.

Auth flows

FlowMechanism
Legacy adminWorkOS SSO → wos-session cookie → Core requireAdmin()
Modern gatewayClerk Organizations → session → Core admin routes
AutomationUnkey keys (bypass UI; call Core directly or via proxy)

Key env vars (admin host)

VariablePurpose
INTRY_CORE_*_URLPer-environment Core base URLs
CLERK_*Clerk keys for gateway
INTRY_ADMIN_SUPPORT_DOCS_URLLink to help center (default help.gointry.com)
INTRY_ADMIN_RESIDENT_DOCS_URLResident docs link

Deployment

  • Host: Fly.io (intry-admin)
  • Start: node server.js

Last verified: 2026-06-21 (commit 293c4a7)

On this page