@mocanvas/editor · function
declare function createInMemoryAssetStore(): AssetStore & {
readonly size: number;
}The store used when an app supplies none: files become data: URLs held in
memory for the life of the page.
Good enough for demos and tests, wrong for anything synced — a data URL is carried inside the document, so a few images will bloat every snapshot sent over the wire. Real apps implement AssetStore against their own storage.
Mentioned here
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.