Skip to content

Add a New Module

Create src/modules/YourModule/ with a clear entry point (index.tsx or module.tsx + index.ts).

Add module metadata and lazy import in src/utils/moduleRegistry.ts.

Ensure backend/user module payload can include your new ModuleKey.

  • /app should still load normally.
  • /app/[module] should render your module when accessible.
  • Inaccessible module should return 404 behavior via Handle.

Create or update:

  • docs/modules/<module>.md
  • architecture notes if navigation or provider behavior changes
  • reference docs if new shared primitives were introduced