AriadShift is an open-source, local-first document transformation platform in early development. Its goal is to turn documents into clean Markdown and structured data through a shared engine used by local and hosted interfaces.
The repository converts Markdown, HTML, DOCX and EPUB, extracts digital PDF text, writes PDF with embedded Vietnamese fonts, and exports IR JSON. A system LibreOffice adds legacy Office and ODF conversion.
The website converts Markdown, HTML, DOCX, EPUB and AriadShift IR JSON entirely in the browser, reads digital PDF text and writes PDF; files never leave the device.
Prebuilt standalone binaries are published on GitHub Releases for Linux (x86_64 and aarch64 static musl), macOS (Apple Silicon and Intel), and Windows (x86_64).
Note
AriadShift invokes Pandoc (>= 3.12, < 4) as an external, out-of-process executable for DOCX and EPUB conversions.
Install Pandoc from the official release (distribution packages are frequently older than 3.12) or set ASHIFT_PANDOC to the executable path. The Homebrew formula, once published, installs Pandoc as a dependency; on Intel macOS (x86_64-apple-darwin) Homebrew builds Pandoc from source, so the official Pandoc installer package is significantly faster there.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bavanchun/AriadShift/releases/latest/download/ariad-cli-installer.sh | shirm https://github.com/bavanchun/AriadShift/releases/latest/download/ariad-cli-installer.ps1 | iexStandalone archives (.tar.xz or .zip) can be downloaded directly from GitHub Releases. Each archive includes ashift, LICENSE, NOTICE, and THIRD_PARTY_LICENSES, and ships with a .sha256 checksum.
v0.3.0 is published to crates.io (ariad-core, ariad-pdf, ariad-engine-io, ariad-typst, ariad-host, ariad-cli) and the Homebrew tap, and the release smoke run passed on the Homebrew, shell installer, PowerShell installer and cargo-binstall channels; current Homebrew needs the tap trust step shown in the commands below; no WinGet submission exists yet.
# Homebrew (macOS & Linux; current Homebrew requires trusting third-party taps)
brew tap bavanchun/tap
brew trust --tap bavanchun/tap
brew install bavanchun/tap/ashift
# crates.io: prebuilt binary through cargo-binstall, or a source build
cargo binstall ariad-cli
cargo install ariad-cli# Windows Package Manager
winget install VChun.AriadShiftConvert between supported formats (md/markdown, html/htm, docx, and epub) with ashift convert; PDF and IR JSON are also supported:
just pandoc
ashift convert notes.md --to docx
ashift convert notes.md --to html
ashift convert report.docx --to md
ashift convert book.epub --to md
ashift convert draft.md notes.md --to docx -o output/ # existing directory
ashift convert report.pdf --to md
ashift convert notes.md --to pdf
ashift convert notes.md --to json
# Requires system LibreOffice >=24.2 (or set ASHIFT_SOFFICE)
ashift convert legacy.doc --to md
ashift convert slides.pptx --to pdfThe default output is <input stem>.<target extension> beside the input. Use -o to choose another
path and --overwrite to replace an existing destination. Select a routing goal with
--profile <editable|faithful|fast|private> (defaults to editable). Same-format conversions (such as md -> md)
are refused with exit code 3; destinations matching the input path are refused with exit code 2. Stdout
contains the output path; warnings are written to stderr. Press Ctrl-C (or send SIGTERM/SIGHUP) to cancel a running
conversion and clean up its temporary workspace. Set ASHIFT_PANDOC to select
an existing Pandoc executable instead of installing the repository-pinned one.
With several inputs, conversion continues after individual failures and returns the first
failure's exit code. --json returns a results array. Linux engines use a Landlock/seccomp
sandbox by default; ashift doctor reports kernel support and ASHIFT_SANDBOX controls the mode.
Inspect document structure, preview planned conversion routes, and check local environment readiness:
ashift inspect report.docx
ashift plan report.docx --to md
ashift engines
ashift doctorAdd --json to any command for structured machine-readable output. See docs/cli.md for the complete reference.
Heavy engines ship as signed engine packs that ashift engines install <name> downloads and verifies on demand (--from <dir> installs offline); the PDFium pack is installable with ashift engines install pdfium (macOS and Linux glibc; Windows not yet supported), while the Docling pack is not yet published (#204). See docs/packs.md and docs/docling.md.
The web app in apps/web runs the same core compiled to
WebAssembly. Files stay in the browser's private storage, the converter keeps
working offline with the engines already downloaded, and every route shows
its measured quality when benchmark data exists. Run it locally:
just js
just web-dev # http://localhost:3200See docs/web.md for building, testing, and deploying it as a
static site or a Node.js server.
Run an MCP server over standard I/O for AI assistants (such as Claude Code, Claude Desktop, or Cursor):
ashift mcp --allow-dir ~/DocumentsThe server exposes 6 tools (list_engines, inspect, plan, convert, list_doc_tools, and run_doc_tool) with strict path confinement, capability-based directory access, dynamic roots synchronization, and resources/read support. See docs/mcp.md for configuration and tool details.
The Tauri app in apps/desktop converts local files and batches, watches folders,
manages signed engine packs and opens ariadshift:// links. Run just desktop-dev
for development or just desktop-build for installers. See
the desktop guide for setup, dependencies and updates.
Install Rust 1.99.0 with the rustfmt, clippy, and
wasm32-unknown-unknown components, just 1.58.0, Node.js 26.13.0, pnpm
12.9.1, Python 3.14 or newer, and uv 0.12.23. The Rust and Node versions are
recorded in rust-toolchain.toml and
.node-version; uv's required version is in
pyproject.toml.
Install the tools used by the quality gate and snapshot development:
cargo install --locked just --version 1.58.0
cargo install --locked cargo-nextest --version 0.9.146
cargo install --locked cargo-deny --version 0.20.2
cargo install --locked cargo-insta --version 1.49.0
cargo install --locked typos-cli --version 1.50.3The quality gate uses just, cargo-nextest, cargo-deny, and typos-cli;
cargo-insta is for snapshot work.
Build and inspect the current CLI:
cargo build --workspace
cargo run -p ariad-cli -- --versionRun the repository quality gate with:
just ciRegenerate the deterministic fixture corpus and refresh its hashes with:
just fixturesMeasure multiset text recall between PDF -> PPTX and PDF -> DOCX conversions with:
python3 scripts/measure-pptx-fidelity.pyjust pandoc downloads Pandoc 3.12 and verifies its archive checksum. Run it
before working on tasks that use Pandoc.
just test-server runs the ariad-server database and S3 tests against
throwaway PostgreSQL (with pgmq) and SeaweedFS containers; it needs Docker.
Install JavaScript workspace dependencies with just js; then build the brand
with pnpm --dir brand build. The root package.json,
pnpm-workspace.yaml, and pnpm-lock.yaml own the JavaScript workspace
(apps/*, packages/*, and brand). just ci also builds the wasm module
and the web app; just web-browsers and just web-e2e run its browser tests.
