Skip to main content

ZenEdge

ZenEdge (zs-mrd-backend) is the device and edge bridge for SpaceOS. It connects the virtual booking world (ZenCore) to the physical device world (IoT Adapter).

What ZenEdge Owns

DomainDescription
Physical SpacesReal-world rooms with device attachments
AdaptersIoT device bridges (locks, Wi-Fi, fans, lights)
Device ManagementRegistration, health monitoring, capability discovery
Magic LinksTime-bound auth links for booking access
Meeting Room DisplaysDisplay provisioning and pairing
WebhooksDevice event forwarding

Tech Stack

  • Runtime: Node.js + TypeScript
  • Framework: NestJS
  • Database: PostgreSQL via TypeORM
  • API Base: https://api-zenedge.zenspace.io

Key Modules

ModuleResponsibility
adapterAdapter protocol implementation and management
physical-spacePhysical space CRUD and device mapping
deviceDevice registration and health monitoring
displayMeeting room display management
magic-linkTime-bound access link generation
iot-deviceIoT device management
iot-gatewayGateway registration and status
webhookEvent forwarding and logging
authAPI key and display token authentication
storageFile storage for screenshots and assets

Authentication

MethodUse Case
x-api-keySystem integration (ZenCore → ZenEdge)
x-org-api-keyOrganization-scoped external access
Display JWTMeeting room display authentication
Magic Link TokenTime-bound booking access

Next Steps