Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ogstudio/local-host-access
Local Host Access (LHA) is a cross-platform HTTP server for client side JS to access local host
https://github.com/ogstudio/local-host-access
browser cross-platform filesystem kotlin linux localhost macos shell web windows
Last synced: 28 days ago
JSON representation
Local Host Access (LHA) is a cross-platform HTTP server for client side JS to access local host
- Host: GitHub
- URL: https://github.com/ogstudio/local-host-access
- Owner: OGStudio
- License: mit
- Created: 2024-10-15T19:31:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-02T19:10:16.000Z (about 1 month ago)
- Last Synced: 2024-12-02T20:19:48.284Z (about 1 month ago)
- Topics: browser, cross-platform, filesystem, kotlin, linux, localhost, macos, shell, web, windows
- Language: Kotlin
- Homepage:
- Size: 285 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Local Host Access (**LHA**) is a cross-platform HTTP server
for client side JS to access local host## Java host
Build stand-alone JAR file:
$ `./gradlew jar`
Run stand-alone JAR file:
$ `./run/run-java`
## macOS host
Build native desktop binary:
$ `./gradlew nativeBinaries`
Run native desktop binary:
$ `./run/run-native`
## Current availability of functions
| № | Function | JVM | Linux | macOS | Windows | Android | iOS |
|---|--- |--- |--- |--- |--- |--- |--- |
| 1 | `GET /path` | √ | X | √ | √ | X | X |
| 2 | `POST /list` | √ | X | √ | X | X | X |
| 3 | `POST /read` | √ | X | √ | X | X | X |
| 4 | `POST /write` | √ | X | √ | X | X | X |## Notes
* [Linux, macOS] LHA uses `stat -L` command to detect if symbolic link points to a regular file or directory
* In case of build problems try to leave only one subproject included in `settings.gradle.kts` like this:```
//include("jvm")
include("nt")
```## Test
1. Launch LHA with `test/test-dir` directory as `.`
![launch-lha][launch-lha]
2. Run `curl-test` or `web-test.html` to validate each function
![web-test][web-test]
[launch-lha]: img/01.launch-lha.jpg
[web-test]: img/02.web-test.jpg