git icon indicating copy to clipboard operation
git copied to clipboard

Refactor in a modular way

Open xu4wang opened this issue 3 years ago • 3 comments

Hello @jcubic ,

Thanks for this wonderful software. I am excited when trying the features of this git in browser framework. I do have suggestions from a user and an app developer perspective.

I'm planning to use this project as a framework for my note taking app. Using git to keep notes, and sync among devices.

It will be easier for me to use a modular system. Say the base system is only with browserfs, and a limited set of basic commands to install other apps.

  1. vi and emacs can be different apps, expose some API and commands.
  2. git can be another app, expose API and commands.
  3. people can use the framework to develop other apps, as long as there is a spec on how to use the commands exposed by other apps.

Thanks again for your effort on building the software and supporting me exploring it.

BR,Austin

xu4wang avatar Jul 05 '22 15:07 xu4wang

Actually, this project is no more than a demo. I've created something like this what you talk about in Leash Shell where there are apps, but there is no git there because it's a server shell. I plan to create Fake Linux system that will be an implementation of Unix in the browser, and it will have apps. I plan to make it have the same architecture as Unix.

But you should ask yourself if you want to create a Terminal with Git commands or synchronize your application with a remote git repository. If the answer is the second then you should use Isomorphic-git that this project is using. BTW: I'm the maintainer of this project when the main author steps aside.

jcubic avatar Jul 05 '22 16:07 jcubic

But if you really want to use the git browser terminal I can think about making it modular but I don't know if I will have time. But if you want to contribute and make it more modular and allow you to create apps you can create a PR. We will need to figure out the API for apps, but you can propose something and we will start a discussion.

jcubic avatar Jul 05 '22 16:07 jcubic

Thanks for sharing the information and suggestions.

I like the idea of Fake Linux system. For my app, I will start with Isomorphic-git and LightningFS first. Will watch the progress on Fake Linux system and see if I can contribute when I get some experience on this later.

xu4wang avatar Jul 06 '22 02:07 xu4wang