Repository navigation
Refactor Golem Desktop #181
Description
Golem Desktop currently interacts with the Golem REST API, allowing users to upload and manage components and workers in a Golem installation.
We are going to change the way that Golem Desktop works, and in the process, change the feature set associated with Golem Desktop.
This ticket describes the main idea together with some of the implications of the refactoring.
Overview
Golem Desktop will be refactored to no longer use the REST API for any functionality. Instead, the functionality of Golem Desktop will be implemented purely in terms of the following:
- Golem Manifest Files. Many features of Golem Desktop will work directly on local Golem Manifest files, which provide a source of truth about the user's application and the components that comprise it. Golem Desktop will be able to parse, validate, and edit Golem Manifest files, without losing any information contained inside of them, and in a way that permits concurrent editing through other local tooling that a developer may be using, such as their IDE or Golem CLI.
- Golem CLI. The remaining features of Golem Desktop will be implemented in terms of Golem CLI. For example, deploying applications, including their PIs, enumerating workers, managing workers, managing deployed components, etc.
This refactoring will necessitate that Golem Desktop gain the ability to edit YAML files (since application manifest files use YAML) and run Golem CLI, including feeding it input and parsing its output.
These changes will mean that Golem Desktop can work with locally deployed Golem (Golem Server), a remotely deployed Golem, or even Golem Cloud, because golem CLI can work with all three.
Every current feature of Golem Desktop must be rethought for the refactor. Although many features will survive without modification, how they are implemented will be changed, because they will no longer be directly implemented on top of the REST API.
The following section outlines some of the major changes required by the refactor.
Major Changes
- Apps. Desktop has no notion of "application", which can be viewed as a collection of components. The
golem-clitool allows manifest files to have a single component, or many components. The idea is that a higher-level directory can contain a manifest file which bundles up all the individual manifest files of child directories. This allows modularization of the Golem application. The new Golem Desktop must have direct support for "hierarchical" manifest files in the same fashion thatgolem-clicurrently supports them (see thegolem appversusgolem componentcommands). - Components. Desktop currently allows "uploading" components. However, after the refactor, the user will only be able to "create new" components. These will use the Golem CLI facility for creating new components (locally), based on a given language and template. There won't be any way to "upload" components anymore.
- The user can add and remove "initial files" on a per-component basis
- The user can add and remove environment variables on a per-component basis
- The user can "deploy" components, which makes them live on the Golem server (including their APIs)
- APIs. Desktop allows maintenance of APIs. This will continue, however, the APIs will be defined in the manifest files.
Activity
gagan771 commentedon Apr 7, 2025
We need to implement these functionalities and enhance the UI/UX of the desktop interface too?
jdegoes commentedon May 6, 2025
/bounty $7500
This is an exclusive bounty is for @Myestery.
algora-pbc commentedon May 6, 2025
💎 $7,500 bounty • Golem Cloud
Steps to solve:
/attempt #181with your implementation plan/claim #181in the PR body to claim the bounty❗ Important guidelines:
Thank you for contributing to golemcloud/golem-cli!
aadarsh-nagrath commentedon Jun 7, 2025
any update ?
webbdays commentedon Jul 5, 2025
Hi
@jdegoes @Myestery
What is the status of this ticket?
Thanks.
israelrotimi commentedon Jul 10, 2025
Has @Myestery PR been accepted. If the issue has been it should be closed so as not to confuse others
satvik2131 commentedon Jul 13, 2025
is this closed or open @jdegoes
Aditya-PS-05 commentedon Jul 30, 2025
Can I work on this? @jdegoes
algora-pbc commentedon Jul 30, 2025
🎉🎈 @Myestery has been awarded $7,500 by Golem Cloud! 🎈🎊