Skip to content

excalidraw/excalidraw-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f9270d9 · Apr 28, 2023

History

50 Commits
Nov 8, 2021
Nov 8, 2021
Nov 6, 2021
Nov 28, 2021
Nov 6, 2021
Nov 6, 2021
Apr 28, 2023
Nov 6, 2021
Nov 28, 2021
Nov 8, 2021
Nov 8, 2021
Apr 28, 2023
Dec 31, 2021
Nov 6, 2021
Dec 31, 2021

Repository files navigation

this repo replaces a previous implementation in https://github.com/excalidraw/excalidraw-json

Excalidraw Store

The server that stores all the encrypted sharable drawings from Excalidraw on Google Storage.

Development

Get the service key as JSON and store it under keys directory with the name of the project ID.

Commands

yarn dev
yarn start
yarn build
yarn deploy
yarn deploy:dev
yarn fix
yarn test

Protocol

POST

Example endpoint URL

https://json.excalidraw.com/api/v2/post/

Binary payload

Example of binary payload

1234567890

Response

{
  "id": "5633286537740288",
  "data": "https://json.excalidraw.com/api/v2/5633286537740288"
}

GET

Example endpoint URL

https://json.excalidraw.com/api/v2/5633286537740288

Response

Example of binary response. If the id is found it will return the data. Otherwise 404.

1234567890

Tips

Check how many files are on Google Storage

gsutil du gs://excalidraw-json.appspot.com | wc -l