Screenshots of live websites. Minimal interface, powerful engine.
Rename to iris
Bridger Tower9a471c231e78
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 65b3f73..1bc5823 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -27,11 +27,11 @@ jobs:- if: contains(matrix.target, 'musl')run: sudo apt-get update && sudo apt-get install -y musl-tools- run: cargo build --release --target ${{ matrix.target }}- - run: tar -C target/${{ matrix.target }}/release -czf shot-${{ matrix.target }}.tar.gz shot+ - run: tar -C target/${{ matrix.target }}/release -czf iris-${{ matrix.target }}.tar.gz iris- uses: actions/upload-artifact@v4with:- name: shot-${{ matrix.target }}- path: shot-${{ matrix.target }}.tar.gz+ name: iris-${{ matrix.target }}+ path: iris-${{ matrix.target }}.tar.gzrelease:needs: build@@ -42,5 +42,5 @@ jobs:merge-multiple: true- uses: softprops/action-gh-release@v2with:- files: shot-*.tar.gz+ files: iris-*.tar.gzgenerate_release_notes: truediff --git a/Cargo.lock b/Cargo.lockindex 0a6eca9..21b9ec9 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -655,6 +655,19 @@ version = "2.12.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"+[[package]]+name = "iris"+version = "0.2.0"+dependencies = [+ "anyhow",+ "chromiumoxide",+ "clap",+ "futures",+ "serde_json",+ "tokio",+ "url",+]+[[package]]name = "is_terminal_polyfill"version = "1.70.2"@@ -961,19 +974,6 @@ dependencies = ["digest",]-[[package]]-name = "shot"-version = "0.1.2"-dependencies = [- "anyhow",- "chromiumoxide",- "clap",- "futures",- "serde_json",- "tokio",- "url",-]-[[package]]name = "signal-hook-registry"version = "1.4.8"diff --git a/Cargo.toml b/Cargo.tomlindex c306778..41a9e46 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,11 +1,11 @@[package]-name = "shot"-version = "0.1.2"+name = "iris"+version = "0.2.0"edition = "2024"rust-version = "1.85"description = "Minimal, powerful screenshots of live websites"license = "MIT"-repository = "https://github.com/brijr/shot"+repository = "https://github.com/brijr/iris"readme = "README.md"keywords = ["screenshot", "cli", "chrome", "headless", "web"]categories = ["command-line-utilities"]diff --git a/README.md b/README.mdindex 5f2fff5..d96e40c 100644--- a/README.md+++ b/README.md@@ -1,30 +1,30 @@-# shot+# irisScreenshots of live websites. Minimal interface, powerful engine.```-shot example.com # 1440×900 @2x → example.com.png-shot --full --dark tailwindcss.com # full page, dark color scheme-shot --size iphone stripe.com # 390×844 @3x with a mobile UA-shot -o shots/ a.com b.com c.com # batch, captured concurrently-cat urls.txt | shot - -o shots/ # batch from stdin (# comments ok)-shot -o hero.jpg --wait-for 'h1' app.dev+iris example.com # 1440×900 @2x → example.com.png+iris --full --dark tailwindcss.com # full page, dark color scheme+iris --size iphone stripe.com # 390×844 @3x with a mobile UA+iris -o shots/ a.com b.com c.com # batch, captured concurrently+cat urls.txt | iris - -o shots/ # batch from stdin (# comments ok)+iris -o hero.jpg --wait-for 'h1' app.dev```-`shot --full bridger.to` →+`iris --full bridger.to` →-+## Install```-curl -fsSL https://raw.githubusercontent.com/brijr/shot/main/install.sh | sh+curl -fsSL https://raw.githubusercontent.com/brijr/iris/main/install.sh | sh```Or with a Rust toolchain:```-cargo install --git https://github.com/brijr/shot+cargo install --git https://github.com/brijr/iris```The only runtime dependency is an installed Chrome-family browser (Chrome, Chromium, Edge, or Brave).diff --git a/install.sh b/install.shindex 894dc96..8d90724 100644--- a/install.sh+++ b/install.sh@@ -1,10 +1,10 @@#!/bin/sh-# shot installer — https://github.com/brijr/shot-# usage: curl -fsSL https://raw.githubusercontent.com/brijr/shot/main/install.sh | sh+# iris installer — https://github.com/brijr/iris+# usage: curl -fsSL https://raw.githubusercontent.com/brijr/iris/main/install.sh | shset -eu-REPO="brijr/shot"-DIR="${SHOT_INSTALL_DIR:-$HOME/.local/bin}"+REPO="brijr/iris"+DIR="${IRIS_INSTALL_DIR:-$HOME/.local/bin}"case "$(uname -s)-$(uname -m)" inDarwin-arm64) TARGET="aarch64-apple-darwin" ;;@@ -17,12 +17,12 @@ case "$(uname -s)-$(uname -m)" in;;esac-URL="https://github.com/$REPO/releases/latest/download/shot-$TARGET.tar.gz"-echo "downloading shot ($TARGET)…"+URL="https://github.com/$REPO/releases/latest/download/iris-$TARGET.tar.gz"+echo "downloading iris ($TARGET)…"mkdir -p "$DIR"curl -fsSL "$URL" | tar -xz -C "$DIR"-chmod +x "$DIR/shot"-echo "installed $("$DIR/shot" --version) → $DIR/shot"+chmod +x "$DIR/iris"+echo "installed $("$DIR/iris" --version) → $DIR/iris"case ":$PATH:" in*":$DIR:"*) ;;diff --git a/src/main.rs b/src/main.rsindex 7da4a48..0abf82d 100644--- a/src/main.rs+++ b/src/main.rs@@ -16,14 +16,14 @@ use url::Url;/// smart waiting, lazy-load handling, retina output, concurrent capture.#[derive(Parser)]#[command(- name = "shot",+ name = "iris",version,arg_required_else_help = true,after_help = "\Examples:- shot example.com 1440\u{d7}900 @2x \u{2192} example.com.png- shot --full --dark tailwindcss.com full page, dark color scheme- cat urls.txt | shot - -o shots/ concurrent batch from stdin"+ iris example.com 1440\u{d7}900 @2x \u{2192} example.com.png+ iris --full --dark tailwindcss.com full page, dark color scheme+ cat urls.txt | iris - -o shots/ concurrent batch from stdin")]struct Cli {/// URLs to capture; `-` reads newline-separated URLs from stdin