{"id":50276561,"url":"https://github.com/telegraphic-dev/juv","last_synced_at":"2026-05-27T21:00:46.399Z","repository":{"id":360625335,"uuid":"1250640771","full_name":"telegraphic-dev/juv","owner":"telegraphic-dev","description":"uv for Java","archived":false,"fork":false,"pushed_at":"2026-05-27T08:07:05.000Z","size":171,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T08:21:20.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telegraphic-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-26T20:41:40.000Z","updated_at":"2026-05-27T06:35:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/telegraphic-dev/juv","commit_stats":null,"previous_names":["telegraphic-dev/juv"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/telegraphic-dev/juv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telegraphic-dev%2Fjuv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telegraphic-dev%2Fjuv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telegraphic-dev%2Fjuv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telegraphic-dev%2Fjuv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telegraphic-dev","download_url":"https://codeload.github.com/telegraphic-dev/juv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telegraphic-dev%2Fjuv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33583399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-27T21:00:34.152Z","updated_at":"2026-05-27T21:00:46.371Z","avatar_url":"https://github.com/telegraphic-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# juv\n\n`juv` is a Rust-native port of JBang, starting with the execution path.\n\nThis repository is intentionally aiming for JBang compatibility rather than inventing a new script format.\n\n## Current slice\n\nImplemented now:\n\n- `juv run \u003cscript.java\u003e [args...]`\n- `juv build \u003cscript.java\u003e`\n- `juv init \u003cscript.java\u003e` built-in Java template generation\n- `juv template list [--json]` list built-in and imported catalog init templates\n- `juv cache clear`\n- `juv cache path [--cache-dir ...]`\n- `juv cache list [--json] [--cache-dir ...]`\n- `juv trust add|remove|list|clear` for remote script trust entries\n- `juv run --trust \u003chttp(s)://.../script.java\u003e` / `juv build --trust \u003chttp(s)://.../script.java\u003e`\n- `juv app install \u003cscript.java\u003e` install a script as a PATH command\n- `juv app uninstall \u003cname\u003e` remove an installed command\n- `juv app list` list installed script commands\n- `juv alias list [--json]` list aliases from the nearest `jbang-catalog.json`\n- `juv alias add \u003cscript.java|url\u003e [args...]` add a local catalog alias\n- `juv alias remove \u003cname\u003e` remove a local catalog alias\n- `juv catalog add \u003cname\u003e \u003ccatalog-path-or-url\u003e [--import]` register an external catalog\n- `juv catalog list [--json]` list external catalogs from the nearest `jbang-catalog.json`\n- `juv run \u003calias\u003e` / `juv \u003calias\u003e` run local catalog aliases\n- `juv export local \u003cscript.java|alias\u003e [-o app.jar]` export a runnable JAR with local manifest classpath\n- `juv export portable \u003cscript.java|alias\u003e [-o app.jar]` export a runnable JAR plus `lib/` dependencies\n- `juv export native \u003cscript.java|alias\u003e [-o app]` export a native executable via GraalVM `native-image`\n- `juv info classpath \u003cscript.java\u003e`\n- `juv info tools \u003cscript.java\u003e` with `--select`\n- `juv info docs \u003cscript.java\u003e`\n- `juv info cache [--cache-dir ...]`\n- `juv info main|java|description|gav|module \u003cscript.java\u003e`\n- `juv info deps|repos|sources|files \u003cscript.java\u003e`\n- `juv info compile-options|runtime-options|native-options|javaagents|manifest \u003cscript.java\u003e`\n- `juv \u003cscript.java\u003e [args...]` JBang-style shorthand\n- directive parsing for:\n  - `//JAVA`\n  - `//DEPS`\n  - `//REPOS`\n  - `//SOURCES`\n  - `//FILES`\n  - `//PREVIEW`\n  - `//JAVAC_OPTIONS` / `//COMPILE_OPTIONS`\n  - `//RUNTIME_OPTIONS` / `//JAVA_OPTIONS`\n  - `//MAIN`\n  - `//DESCRIPTION`\n  - `//GAV`\n  - `//MODULE`\n  - `//DOCS`\n  - `//MANIFEST`\n  - `//JAVAAGENT`\n  - `//NATIVE_OPTIONS`\n  - `//CDS`\n  - `//NOINTEGRATIONS`\n- compile/run cache under the OS cache directory\n- `juv build` compiles scripts into cache without running them\n- `juv init` creates Java 25+ unnamed-class scripts from built-in or imported catalog templates (`hello`/`java`, `compact`, `cli`, `agent`, plus catalog `templates` entries), supports `--deps`, `--java`, `--template`, and `--force`\n- `juv template list` lists built-in and imported catalog init templates and supports `--json`\n- `juv cache clear` clears the compiled-script cache\n- `juv cache path` prints the effective compiled-script cache directory\n- `juv cache list` lists cached script entries with their classes/cache directories and supports `--json`\n- `juv trust add \u003curl\u003e` stores the current remote script content hash\n- `juv trust list`, `remove`, and `clear` manage trusted remote script entries\n- remote `http://` and `https://` scripts are downloaded into cache and require matching trust before build/run unless `--trust` is passed\n- remote relative `//SOURCES`, source-like `//DEPS`, and `//FILES` resources are downloaded next to the cached remote script\n- remote trust hashes cover those downloaded resources; legacy trust entries still work for scripts that do not declare relative resources\n- `juv info classpath` prints the script runtime classpath, with `--deps-only`\n- `juv info tools` prints JSON metadata for tooling and supports selecting a single field\n- `juv info docs` prints description and documentation references\n- `juv info main`, `java`, `description`, `gav`, and `module` print single metadata values\n- `juv info deps`, `repos`, `sources`, and `files` print directive collections one-per-line\n- `juv info compile-options`, `runtime-options`, `native-options`, `javaagents`, and `manifest` print advanced directive collections\n- `juv info cache` prints the effective cache directory\n- CLI overrides for `--deps`, `--repo`, `--source`, `--files`, `--java`, `--main`, `--compile-option`, `--java-option`, and `--javaagent`\n- local and imported catalog aliases from `jbang-catalog.json` / `.jbang/jbang-catalog.json`, including `alias add/remove`, `catalog add/list`, `base-ref`, `script-ref`, `catalog-ref`, `import`, `arguments`, `dependencies`, `repositories`, `sources`, `files`, classpaths, Java/runtime/compile options, agents, Java version, and main-class metadata\n- imported catalog templates with `file-refs` and default `properties`, usable via `juv init --template \u003cname\u003e`\n- `juv export local` creates runnable JARs whose manifest classpath points at local dependency paths\n- `juv export portable` creates runnable JARs and copies file-based dependency classpath entries into sibling `lib/`\n- `juv export native` compiles scripts then invokes GraalVM `native-image`, passing `//NATIVE_OPTIONS` plus `--native-option` values\n- Java package-aware main-class inference\n- `//FILES` resources copied onto the runtime classpath\n- non-coordinate `//DEPS` treated as source dependencies\n- `//PREVIEW` compile/runtime flag handling\n- `juv resolve \u003ccoordinates...\u003e` resolve Maven coordinates to dependency list\n- `juv resolve --classpath \u003ccoordinates...\u003e` resolve to classpath\n- `juv fetch \u003ccoordinates...\u003e` fetch artifacts and print classpath\n- `juv fetch --deps-only \u003ccoordinates...\u003e` print coordinates instead of paths\n- `juvx \u003cGAV\u003e -- [args...]` run an executable JAR resolved from Maven coordinates\n- `juvx --main \u003cclass\u003e \u003cGAV\u003e -- [args...]` run a main class with the resolved classpath\n- `juv jdk list` list discovered/cached JDKs\n- `juv jdk home [version]` print the JDK home for a version (default: 25)\n- `juv jdk install \u003cversion\u003e` download a Temurin JDK from Adoptium\n- native Maven dependency resolver (no Coursier required)\n- reuses existing Maven (`~/.m2/repository`), Gradle (`~/.gradle/caches`), and Coursier (`~/.cache/coursier`) caches via symlinks\n- discovers existing JDKs from `JAVA_HOME`, `PATH`, JBang (`~/.jbang/jdks`), SDKMAN (`~/.sdkman/candidates/java`), mise (`~/.local/share/mise/installs`), Gradle (`~/.gradle/jdks`), and system JVM directories\n- caches discovered JDKs under `~/.cache/juv/jdks/\u003cmajor\u003e` via symlinks so future runs do not rescan everything\n- auto-provisions missing JDKs from Adoptium/Eclipse Temurin with SHA-256 archive verification\n\nNot yet implemented: catalog remove for nested catalogs, multi-file template expansion, template property CLI overrides, export mavenrepo/jlink/project variants, edit integration, and the rest of JBang's lovely edge-case museum.\n\n## Example\n\n```java\n//JAVA 25+\nvoid main(String[] args) {\n  IO.println(\"hello \" + args[0]);\n}\n```\n\n```bash\njuv run Hello.java world\n# hello world\n```\n\n## Development\n\n```bash\ncargo test --locked\ncargo fmt --check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelegraphic-dev%2Fjuv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelegraphic-dev%2Fjuv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelegraphic-dev%2Fjuv/lists"}