xpipe/README.md

134 lines
7.3 KiB
Markdown
Raw Normal View History

2023-01-27 15:34:46 +13:00
<img src="https://user-images.githubusercontent.com/72509152/213873342-7638e830-8a95-4b5d-ad3e-5a9a0b4bf538.png" alt="drawing" width="300"/>
2022-08-13 19:29:26 +12:00
2023-02-03 01:47:23 +13:00
### Next level remote data workflows for everyone
2022-03-10 10:51:04 +13:00
2023-02-27 18:35:16 +13:00
X-Pipe is a connection manager, remote file explorer, and more in an early alpha.
The core approach is to utilize and integrate well with other tools and workflows,
2023-02-03 01:47:23 +13:00
focusing on augmenting them rather than replacing them.
2023-02-11 06:40:03 +13:00
X-Pipe is built around existing tools and tries to outsource tasks to them,
such that you can always use your favorite tools to work with X-Pipe, e.g.
text/code editors, terminals, shells, command-line tools and more.
The X-Pipe platform is open source and designed to be extensible, allowing anyone
2023-02-27 18:35:16 +13:00
to implement custom functionality through custom extensions.
2023-01-27 15:34:46 +13:00
2023-02-27 18:35:16 +13:00
### Flexible Connector
2023-01-27 15:34:46 +13:00
- Can connect to standard servers, database servers, and more
- Supports established protocols (e.g. SSH and more) plus any custom connection methods that work through the command-line
- Is able to integrate any kind of proxies into the connection process, even ones with different protocols
2023-02-27 18:35:16 +13:00
### Instant launch for remote shells and commands
2023-01-27 15:34:46 +13:00
- Automatically login into a shell in your favourite terminal with one click (no need to fill password prompts, etc.)
- Works for all kinds of shells. This includes command shells (e.g. bash, PowerShell, cmd, etc.) and database shells (e.g. PSQL Shell)
2023-02-08 10:54:59 +13:00
- Comes with integrations for all commonly used terminals for all operating systems
2023-01-27 15:34:46 +13:00
- Exclusively uses established CLI tools and therefore works out of the box on most systems and doesn't require any additional setup
2023-02-03 01:47:23 +13:00
- Allows you to customize the launched shell's init environment
- Launch connections from the GUI or commandline
2023-01-27 15:34:46 +13:00
2023-02-27 18:35:16 +13:00
### All your connections in one place
2023-01-27 15:34:46 +13:00
2023-02-04 00:10:08 +13:00
- Easily create and manage all kinds of remote connections at one location
2023-01-27 15:34:46 +13:00
- Securely stores all information exclusively on your computer and encrypts all secret information
2023-02-08 10:54:59 +13:00
- Share connection configurations to any other trusted party through shareable URLs
- Create desktop shortcuts to open your connections
2023-01-27 15:34:46 +13:00
<img src="https://user-images.githubusercontent.com/72509152/218159305-64e2ac2c-2d01-4087-89d2-907f2e3a6bed.png" alt="drawing" height="450"/>
2023-01-27 15:34:46 +13:00
2023-02-27 18:35:16 +13:00
### Remote File Explorer
2023-01-27 15:34:46 +13:00
2023-02-27 18:35:16 +13:00
- Access files on any remote system
- Quickly open a terminal into any directory
- Run commands from the explorer interface
- Utilize your local tools to open and edit remote files
2023-01-27 15:34:46 +13:00
2023-02-27 18:35:16 +13:00
### Integrate X-Pipe with your favorite tools and workflows
2023-01-27 15:34:46 +13:00
- Easily import and export all kinds of data formats and technologies
2023-02-03 01:47:23 +13:00
- Access data sources from the command-line with the X-Pipe CLI or
your favorite programming languages using the X-Pipe APIs
2023-01-27 15:34:46 +13:00
- Connect select third party applications directly to X-Pipe through extensions
2023-02-12 03:48:29 +13:00
## Demo
2023-02-12 03:58:09 +13:00
https://user-images.githubusercontent.com/72509152/218265431-27bf34ad-03f8-43b7-a8a8-2a4d16eff90a.mp4
2023-02-12 03:48:29 +13:00
2023-01-27 15:34:46 +13:00
## Repository Structure
The following for modules make up the X-Pipe API and a licensed under the MIT license:
- [core](core) - Shared core classes of the X-Pipe Java API, X-Pipe extensions, and the X-Pipe daemon implementation
- [beacon](beacon) - The X-Pipe beacon component is responsible for handling all communications between the X-Pipe daemon
2022-03-10 10:51:04 +13:00
and the client applications, for example the various programming language APIs and the CLI
2023-01-27 15:34:46 +13:00
The other modules make up the X-Pipe implementation and are licensed under GPL:
2023-02-20 22:49:10 +13:00
- [app](app) - Contains the X-Pipe daemon implementation, the X-Pipe desktop application, and an
API to create all different kinds of extensions for the X-Pipe platform
2023-01-27 15:34:46 +13:00
- [dist](dist) - Tools to create a distributable package of X-Pipe
2023-02-09 10:34:19 +13:00
- [ext](ext) - Available X-Pipe extensions. Essentially every feature is implemented as an extension
### Open source model
X-Pipe utilizes an open core model, which essentially means that
2023-02-27 18:35:16 +13:00
the main application is open source while certain other components are not.
Some tests and especially test environments and that run on private servers
2023-02-09 10:34:19 +13:00
are also not included in this repository (Don't want to leak server information).
Finally, scripts and workflows to create signed executables and installers
are also not included to prevent attackers from easily impersonating the shipping the X-Pipe application malware.
The license model is chosen in such a way that you are
able to use and integrate X-Pipe within your application through the MIT-licensed API.
2022-06-18 10:29:41 +12:00
2023-01-27 15:34:46 +13:00
## Development
2022-06-18 10:29:41 +12:00
2023-01-27 15:34:46 +13:00
Any contribution is welcomed!
There are no real formal contribution guidelines right now, they will maybe come later.
2022-06-18 10:29:41 +12:00
2023-01-27 15:34:46 +13:00
### Modularity
2022-03-10 10:51:04 +13:00
2023-01-27 15:34:46 +13:00
All X-Pipe components target [JDK 19](https://openjdk.java.net/projects/jdk/19/) and make full use of the Java Module System (JPMS).
2022-03-10 10:51:04 +13:00
All components are modularized, including all their dependencies.
In case a dependency is (sadly) not modularized yet, module information is manually added using [moditect](https://github.com/moditect/moditect-gradle-plugin).
2023-01-27 15:34:46 +13:00
Further, note that as this is a pretty complicated Java project that fully utilizes modularity,
many IDEs still have problems building this project properly.
For example, you can't build this project in eclipse or vscode as it will complain about missing modules.
The tested and recommended IDE is intellij.
2023-02-20 22:49:10 +13:00
### Setup
You need to have an up-to-date version of X-Pipe installed on your local system in order to properly
run X-Pipe in a development environment.
This is due to the fact that some components are only included in the release version and not in this repository.
2023-02-27 18:35:16 +13:00
X-Pipe is able to automatically detect your installation and fetch the required
2023-02-20 22:49:10 +13:00
components from it when it is run in a development environment.
2023-01-27 15:34:46 +13:00
### Building and Running
You can use the gradle wrapper to build and run the project:
- `gradlew app:run` will run the desktop application. You can set various useful properties in `app/build.gradle`
- `gradlew dist` will create a distributable production version in `dist/build/dist/base`.
2023-02-11 03:36:15 +13:00
- `gradlew <project>:test` will run the tests of the specified project.
2023-01-27 15:34:46 +13:00
You are also able to properly debug the built production application through two different methods:
- The `app/scripts/xpiped_debug` script will launch the application in debug mode and with a console attached to it
- The `app/scripts/xpiped_debug_attach` script attaches a debugger with the help of [AttachMe](https://plugins.jetbrains.com/plugin/13263-attachme).
Just make sure that the attachme process is running within IntelliJ, and the debugger should launch automatically once you start up the application.
Note that when any unit test is run using a debugger, the X-Pipe daemon process that is started will also attempt
to connect to that debugger through [AttachMe](https://plugins.jetbrains.com/plugin/13263-attachme) as well.
2023-01-29 22:49:58 +13:00
### Development FAQ
##### Why are there no GitHub actions workflows or other continuous integration pipelines set up for this repository?
There are several test workflows run in a private environment as they use private test connections
such as remote server connections and database connections.
Other private workflows are responsible for packaging, signing, and distributing the releases.
So you can assume that the code is tested!
2023-02-11 08:39:23 +13:00
## Community
There are several ways to reach out in case you encounter any issues or questions:
2023-02-12 05:11:59 +13:00
- The [X-Pipe Discord Server](https://discord.gg/8y89vS8cRb)
- The [X-Pipe Slack Server](https://join.slack.com/t/x-pipe/shared_invite/zt-1awjq0t5j-5i4UjNJfNe1VN4b_auu6Cg)