Self-host your comments data while using Velt’s components. Keep comment storage on your infrastructure with minimal metadata stored on Velt servers.
setDocuments
method.identify
method.Velt supports self-hosting your comments and related data:
CommentAnnotationDataProvider
to handle storage and retrievalget
, save
, and delete
methods to interact with your databaseHere are the methods that you need to implement on the data provider:
Method to fetch comments from your database. On error we will retry.
GetCommentResolverRequest
Promise<ResolverResponse<Record<string, PartialCommentAnnotation>>>
Save comments to your database. Return a success or error response. On error we will retry.
SaveCommentResolverRequest
SaveCommentResolverRequest
object, you will receive the event name that triggered the save.Promise<ResolverResponse<T>>
If you are using REST API to add or update comments, ensure that you set isCommentResolverUsed
and isCommentTextAvailable
fields in the request object. Learn more
Delete comments from your database. Return a success or error response. On error we will retry.
DeleteCommentResolverRequest
Promise<ResolverResponse<T>>
Configuration for the comment data provider.
ResolverConfig