Developer Paths
Use this page to quickly pick the right MDAN integration path for your situation.
Path A: Hosted App + Default UI
Use:
@mdanai/sdk/server@mdanai/sdk/web@mdanai/sdk/elements
This is the best path when you want a working product quickly with the official UI.
See:
Path B: Hosted App + Custom UI
Use:
@mdanai/sdk/server@mdanai/sdk/web- your own UI framework
This is the best path when you want your own design system while keeping MDAN runtime behavior.
See:
Path C: Existing Backend Integration
Use:
createMdanServer()orcreateHostedApp()- your own framework adapter around
server.handle()
This is the best path when you already have an Express, Hono, or Next backend and need controlled integration.
See:
Path D: Protocol Utilities Only
Use:
@mdanai/sdk/core
This is the best path when you only need parse, validate, and serialize utilities.
See:
Decision Checklist
- Need the fastest launch with the official UI: choose Path A
- Need a custom visual system with the same MDAN behavior: choose Path B
- Need deep backend integration: choose Path C
- Need parser and serializer utilities only: choose Path D
Anti-Pattern To Avoid
Do not duplicate MDAN logic inside frontend framework code. Keep spec handling and routing behavior in the server and runtime layers, then let the UI render from current state.