benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.8k stars 2.73k forks source link

Self hosted StackEdit that operates on local files? #192

Closed GregPK closed 11 years ago

GregPK commented 11 years ago

Would it be hard to setup StackEdit to work only on the files on the machine that it's been installed?

The use case is that I have a private server to which I want to have access from various places, without the use it third party services like Google or Dropbox.

So basically instead of choosing files to sync from external services, they would be chosen from the hard drive of the server.

PS. Great job on StackEdit!

benweet commented 11 years ago

That isn't possible in a browser. However, there is an open request regarding support for owncloud (import/export/synchronization): #122

GregPK commented 11 years ago

Hah! My bad - I saw the fileMgr in the developer section and assumed it was a server-side node component rather that a client side localStorage wrapper.

Just for the record - am I right to imagine that in a self-hosted version one could write such a module? Only it would probably kind of not be in the spirit of StackEdit...

benweet commented 11 years ago

In fact you can implement a synchronization provider in StackEdit that connects to a local service. But you will have to implement download, upload, check changes, and optionally html file chooser... things that are implemented by Google Drive and Dropbox.

GregPK commented 11 years ago

That's what I thought :). Having my curiosity satisfied, I'll close the issue. Thanks for the information.

stefnotch commented 6 years ago

@benweet How would one implement a custom WebDAV synchronization provider? Is implementing a custom provider and adding it to syncSvc.js enough? I assume that it's not, since CouchDB's provider and stuff involves more code than that.

gliviu commented 4 years ago

The new Native File System proposal looks to be a good fit for this request. Currently supported on Chrome, it allows transparent synchronization with local files. Blog: https://web.dev/native-file-system/ Specs: https://wicg.github.io/native-file-system/ Sample: https://googlechromelabs.github.io/text-editor/

schlichtanders commented 3 years ago

The new Native File System proposal looks to be a good fit for this request. Currently supported on Chrome, it allows transparent synchronization with local files. Blog: https://web.dev/native-file-system/ Specs: https://wicg.github.io/native-file-system/ Sample: https://googlechromelabs.github.io/text-editor/

That sounds like a perfect addition to StackEdit. @gliviu would you mind opening a new more concrete issue which asks for support for such native file system in chrome?