Skip to content

API reference / @docmentis/udoc-server

@docmentis/udoc-server ​

Self-hosted document server for remote access, rendering, and collaboration.

Classes ​

ClassDescription
DirectoryDocumentStoreA DocumentStore over a directory: one directory per document, named by its id, holding its original, its checkpoints and its edit log.

Interfaces ​

InterfaceDescription
DocumentStoreWhere the server keeps each document, by id.
KeptDocumentWhat is kept of one document when it is imported.
OriginalA document's upload, as it arrived, and the format it was imported as.
PackageDescriptionWhat a client opening a package needs to know of it.
UDocServer-
UDocServerOptions-

Type Aliases ​

Type AliasDescription
FrontierA CRDT frontier as the engine writes it: [peer, counter] pairs, each a u64. A peer is random, past what a JS number holds exactly, so each is a bigint.

Functions ​

FunctionDescription
createUDocServerBuild the server over options.store: its routes are the document routes (see documentRoutes), beneath options.basePath.