A
ANKA Docs

Backend

NestJS + Fastify + Drizzle + Better-Auth backend overview.

Backend

The backend runs on NestJS with the Fastify adapter.

Modules

ModulePathDescription
Authsrc/auth/Better-Auth integration, guard, RBAC
Accountssrc/modules/accounts/Users, roles, audit logs
Filessrc/modules/files/S3 presigned upload flow
Notificationssrc/modules/notifications/In-app notifications
Settingssrc/modules/settings/App settings + user prefs
Webhookssrc/modules/webhooks/Outgoing webhooks
Healthsrc/modules/health/Health check endpoint

Auth & RBAC

  • All routes protected by default via global guard
  • Use @AllowAnonymous() for public routes
  • Use @UserHasPermission({ permission: { resource: ['action'] } }) for RBAC

On this page