Skip to content
stokaroPublic

About

Cross-platform archive manager in Rust, inspired by BetterZip and OpenZip. Native desktop UI, editable archives, previews, automation, and reproducible builds. MIT licensed; in planning.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

107 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArcForge

A cross-platform archive manager written in Rust. Its goal is to be the reference archive manager to use: its own interface, native on every OS, with the best ideas taken from BetterZip 6, OpenZip and other current tools. MIT-covered reuse retains attribution.

ArcForge supports ZIP/ZIP64 browsing, bounded previews and extraction. It opens a single file compressed as gzip, zlib, bzip2, XZ, LZMA, Zstandard, Brotli, lzip or Unix compress, and writes most of those from one file; see single-file streams. Classic ZIP supports staged rename and deletion with Undo, Redo, Save and Save As in the desktop. The desktop and headless CLI share filename interpretation, streaming extraction, and the verified ZIP save transaction. See the ZIP contracts and implementation epic.

Run and build

Install Rust and the native linker/SDK for your platform. The repository pins Rust 1.100.1; rustup selects it automatically. Linux desktop builds also need the development libraries listed in CI.

cargo run --locked -p arcforge
cargo run --locked -p arcforge -- example.zip
cargo run --locked -p arcforge-cli -- commands --json
cargo run --locked -p arcforge-cli -- doctor --json
cargo run --locked -p arcforge-cli -- list example.zip --json
cargo run --locked -p arcforge-cli -- list example.zip --csv
cargo run --locked -p arcforge-cli -- test example.zip --json
cargo run --locked -p arcforge-cli -- hash example.zip --entry 0 --json
cargo run --locked -p arcforge-cli -- preview example.zip --entry 0 --json
cargo run --locked -p arcforge-cli -- extract example.zip --output new-output --json
cargo run --locked -p arcforge-cli -- create --output new.zip -- notes.txt
cargo run --locked -p arcforge-cli -- delete example.zip --entry 0 --output edited.zip --json
cargo run --locked -p arcforge-cli -- rename example.zip --entry 0 --name new.txt --output renamed.zip --json
cargo run --locked -p arcforge-cli -- export-listing example.zip --format csv --output listing.csv --json
cargo xtask check
cargo xtask package

cargo xtask check runs formatting, dependency-boundary checks, Clippy, tests, and builds. Packaging creates an unsigned release-profile development bundle and its SHA-256 checksum in dist/. See development.md for target selection, prerequisites, and verification limits.

What works now

  • ZIP/ZIP64 metadata, stable entry IDs within a snapshot, and original filename/extra-field/comment bytes.
  • A BetterZip 6-oriented workspace with filesystem Favorites, a virtualized Outline/Flat contents table, selection, search, and Info/Preview. Open one archive through a native picker, startup argument, or file drop. Reference decisions and remaining gaps and actual screenshots record the current fidelity.
  • Bounded text/hex previews of complete Stored/Deflate entries up to 256 KiB, with CRC32 verification. Archive reads, filename reinterpretation, search preparation, and previews run on one cancellable worker outside the UI thread.
  • Double-click a file to open a verified temporary copy in the system's default application. ZIP file-opening behavior
  • Selected/all Stored/Deflate extraction into a new folder or directly into an existing one, with explicit choices for existing files and folders (ask or stop, skip, replace, keep both, keep newer, merge), a list of existing items in the desktop, a dry run in the CLI, flat layout and skipped empty folders. Portable name/collision checks, bounded streaming, CRC verification, cancellation, and an explicit report of completed, replaced, skipped and partial output. Replacement never truncates the old file and links are never followed.
  • Rename or delete entries in classic ZIP, undo or redo staged changes, then Save over the opened archive or use Save As for another name. Both verify the new ZIP before it replaces anything.
  • Filename evidence and manual archive/per-entry interpretation controls, including explicit recovery and strict CP850. GUI and CLI share an explicit codec registry. Reinterpretation preserves source bytes and entry identity.
  • Shared archive/selection properties and explicit CSV or escaped-text listing export, with exact entry IDs, source validation and no overwrite of existing output.
  • A bounded, UI-independent native preview hierarchy model, retaining duplicate records and accurate hidden-item totals. Quick Look and Explorer adapters remain separate work.
  • One command catalog shared by GUI and CLI, with explicit implemented/planned states.
  • CLI command discovery, capability diagnostics, listing, previews, extraction, deletion, rename, copying inside the archive, adding files from disk and scoped listing export. The CLI also checks entry integrity, computes and verifies entry SHA-256 digests, and streams a CSV listing. CLI contracts
  • Rust build orchestration, enforced dependency boundaries, portable packaging, and a six-target native CI matrix.

formats lists every tracked format family with the status of each operation, the provider that implements it and the issues that own the rest; docs/formats.md is generated from the same records. doctor --json reports compiled capabilities per format variant. info ARCHIVE --json reports the provider and operations for that archive. ZIP64 supports browsing and extraction. Classic ZIP also supports staged delete, rename, Save and Save As (replace_archive and save_copy). The CLI creates verified ZIP and ZIP64 archives from disk inputs. Desktop creation and adding or replacing entries are tracked in the M1 roadmap. Provider architecture · Filename encoding roadmap

Scripts can use the headless CLI with native arguments and structured results. See the automation examples and architecture decision.

Workspace

Path Responsibility
crates/core Portable models, capabilities, command catalog, and shared behavior
crates/ui-egui egui presentation over the shared core
apps/arcforge Thin eframe desktop entry point
apps/arcforge-cli Standalone CLI without GUI dependencies
xtask Checks, builds, tests, and development packaging

The core and CLI cannot depend on UI/windowing libraries. cargo xtask layers checks the resolved dependency graph, including transitive, development, build, and target-specific dependencies. New workspace crates must be registered in that checker. cargo xtask notices checks that dependency and font notices match their recorded inputs; the same gate runs before packaging. See architecture.md and CONTRIBUTING.md.

Product goal

Browse an archive like a folder, preview its contents, extract selected items, edit files in another application, and save changes back into the archive. The workspace has filesystem Favorites, a central archive outline, a detailed file table, a preview and information inspector, a compact toolbar and familiar desktop workflows. The design/UX skill sets the quality bar and requires recorded design decisions and native screenshot evidence. Open design gaps are tracked in the design reference.

Planned capabilities

  • Additional view modes, expanded previews, and multiple windows.
  • Add, move and replace entries, and save changes in place.
  • External-editor round trips and explicit handling of nested archive changes.
  • ZIP64 writing; 7z and TAR (with compressed TAR composition), plus verified providers for RAR and additional formats.
  • Encryption, split-volume handling, presets, filters, conflict resolution, and independent batch jobs.
  • Further desktop and CLI operations through the shared Rust core.
  • Platform integrations and automated build, package, and release workflows.

The epic defines the format-by-format capability matrix, implementation phases, and acceptance criteria. Planned capabilities are not claims of existing implementation.

Platforms and distribution

Platform Architectures Development bundle Planned production distribution
macOS Apple Silicon and Intel ZIP with .app and CLI App bundle and DMG
Windows x86_64 and ARM64 ZIP with executables Installer and portable archive
Linux x86_64 and ARM64 Tarball with executables AppImage, distribution packages, and tarball

The CI workflow builds, tests, and packages each target on a native runner. This matrix describes configured coverage; successful jobs are the evidence for a specific commit. A target triple alone does not provide cross-compilation SDKs or linkers. FreeBSD core/CLI support is secondary; browser/WASM support is a later portability option.

Development bundles are unsigned and are not production installers. A version tag runs the same checks and prepares a draft GitHub release; it does not automatically publish a release. Signing, notarization, installer integration, and upgrade tests remain product work.

Implementation approach

Follow the engine-first approach demonstrated by ArtCraft / PhotoCraft and the study/build/compare workflow described by Craft Anything: document reference behavior, implement a UI-independent Rust command engine, build a thin Rust desktop UI, and verify both behavior and appearance against repeatable scenarios.

The workspace reuses PhotoCraft's Cargo-environment helper and adapts its dependency-layer checker under the MIT option of its dual license. Workspace organization, shared commands, and packaging conventions also draw on the ArtCraft ecosystem. The reuse inventory records exact upstream commits, files, modifications, and license notices. ArtCraft branding and application assets are not used.

egui/eframe is the initial GUI toolkit. Native integration, broader format support, and reference fidelity still require the capability checks in the epic. Headless rendering tests do not establish native menus, accessibility, file associations, or complete drag-and-drop behavior. RAR creation is planned through an optional external provider.

License

ArcForge's original source is licensed under the MIT License. Adapted ArtCraft source retains its MIT notices. Rust dependencies and embedded assets retain their own licenses; see THIRD_PARTY_NOTICES.md and licenses/. No OpenZip application source is included.

About

Cross-platform archive manager in Rust, inspired by BetterZip and OpenZip. Native desktop UI, editable archives, previews, automation, and reproducible builds. MIT licensed; in planning.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages