jcubic / git

GIT Web Terminal
https://git-terminal.js.org/
MIT License
90 stars 47 forks source link

Refactor in a modular way #16

Open xu4wang opened 2 years ago

xu4wang commented 2 years ago

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

jcubic commented 2 years ago

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 commented 2 years ago

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.

xu4wang commented 2 years ago

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.