Designer, library and host

Embed the designer, use the headless editor and library, run a host. Code examples in the DocStudio developer reference.

Embed the designer

Headless editor

The editor works without React. Every change is a command that is validated before it is applied, and undo restores the previous state exactly.

Component library

Plan a publish, then execute it. Versions are immutable and the first publish with a minor bump is 1.0.0.

Host with storage and an authorizer

The handler checks your authorize function before every /api route. createMemoryStorage keeps data in the process. Use createFileStorage for files on disk or implement the three storage ports for a database.