FrigadeHQ / remote-storage

remoteStorage is a simple library that combines the localStorage API with a remote server to persist data across sessions, devices, and browsers. It works as a simple key value database store and backend with support for React, Next.js, Vue, Node, or any Javascript stack
https://remote.storage
MIT License
1.21k stars 27 forks source link

Feature request: Ability to swap out the backend for something on-prem #14

Closed Whoaa512 closed 8 months ago

Whoaa512 commented 8 months ago

Would be lovely to configure the remote host to be something other than the public API

Ideally with a spec that the backend must conform to.

Thanks!

christianmat commented 8 months ago

Hey there! The Remote host can be set to anything using the serverAddress param in the config as such:

const remoteStorage = new RemoteStorage({
  serverAddress: 'https://api.remote.storage'
})

Furthermore, the spec for the backend is available through OpenAPI/Swagger here: https://github.com/FrigadeHQ/remote-storage/blob/main/apps/remote-storage-server/swagger-spec.json

We'll soon publish a website that has a more user-friendly spec on the API.