Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.12 KB

README.md

File metadata and controls

72 lines (48 loc) · 1.12 KB

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