Skip to content
yusriltakeuchiPublic

About

A cross-platform AI agent skill for searching, downloading, verifying, and installing Android APKs and iOS IPAs from multiple app stores, powered by a standalone CLI.

Resources

Contributing

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

Grapk logo

Grapk

One AI skill & CLI to search, download, verify, and deploy Android APKs and Apple iOS IPAs across 9 stores.

Latest Release License: MIT Python 3.9+ Platforms: macOS, Linux, Windows Agent Skill

Quick Start · Tutorials · How It Works · Supported Stores · Split Packaging · FAQ


Grapk supported stores and end-to-end APK and IPA orchestration

Stop juggling fragile scrapers, incompatible split APKs, or separate mobile tooling. Invoke /grapk in your AI coding agent—or run the deterministic CLI—to grab Android (.apk, .apks, .xapk) and Apple iOS (.ipa) apps cleanly with built-in verification and optional USB device deployment.

Why Grapk?

Capability What you get
9 Stores, 1 Workflow Google Play, F-Droid, APKPure (opt-in), Huawei AppGallery, Samsung Galaxy Store, APKCombo, APKMirror, Aptoide, and Apple App Store.
Android + Apple iOS Downloads split APKs, OBB extras, Android TV builds, and App Store .ipa packages—plus one-step USB pairing & installation to a connected iPhone.
Zero-Config Tooling Pure Python 3.9+ stdlib core. Automatically fetches version-locked engines (goopdl, apkeep, APKEditor, ipatool, pymobiledevice3) into ~/.grapk/tools/.
Deterministic Routing Strict resolution (--source → store URL → Google Play default). Never lets an AI guess downloaders or silently fall back to untrusted mirrors.
Real Integrity Checks Verifies local SHA-256, Google Play digests, Aptoide MD5 checksums, aapt2/apksigner signatures, and IPA Info.plist + FairPlay SC_Info.
Clean, Secret-Free Output Saves every artifact neatly under ~/Downloads/Grapk/<source>/<package_id>/<version>/ with a grapk-manifest.json audit trail.

Quick Start

1. Install the skill

Choose whichever method fits your environment:

Option A — Skills CLI (Recommended)

npx skills add yusriltakeuchi/grapk

Automatically detects installed agents (Google Antigravity, Claude Code, Codex, Cursor, and more). Pass -g to install globally.

Option B — Tell your AI agent

Paste this prompt into Antigravity, Claude Code, Codex, or Cursor:

Install the Grapk skill from https://github.com/yusriltakeuchi/grapk.git into my personal skills directory
(Antigravity global: ~/.gemini/antigravity-cli/skills/grapk, Antigravity shared: ~/.gemini/skills/grapk,
Claude Code: ~/.claude/skills/grapk, Codex: ~/.codex/skills/grapk, Cursor: ~/.cursor/skills/grapk).
Clone to a temp folder, copy skills/grapk there, and run `grapk.py install` (and `grapk.py doctor`) to install and verify locked dependencies.

Option C — Claude Code plugin

/plugin install grapk --marketplace yusriltakeuchi/grapk
Option D — Manual clone, symlink, or engine setup
git clone https://github.com/yusriltakeuchi/grapk.git
cd grapk

# Recommended for Google Antigravity (keeps updates synced)
mkdir -p ~/.gemini/antigravity-cli/skills && ln -s "$PWD/skills/grapk" ~/.gemini/antigravity-cli/skills/grapk

# Or copy to your preferred agent's skills directory
mkdir -p ~/.gemini/skills && cp -R skills/grapk ~/.gemini/skills/grapk   # Antigravity shared
mkdir -p ~/.claude/skills && cp -R skills/grapk ~/.claude/skills/grapk   # Claude Code
mkdir -p ~/.codex/skills && cp -R skills/grapk ~/.codex/skills/grapk     # Codex
mkdir -p ~/.cursor/skills && cp -R skills/grapk ~/.cursor/skills/grapk   # Cursor

Also supported: Antigravity plugin install (agy plugin install .), workspace .agents/skills/grapk/, or editable CLI install (pip install -e .).

2. Provision engines & check health

Grapk requires Python 3.9+ and installs version-locked tools into isolated ~/.grapk/tools/ on first run (pass --no-auto-install to disable). To pre-install everything upfront and inspect readiness:

python3 skills/grapk/scripts/grapk.py install
python3 skills/grapk/scripts/grapk.py doctor

Tutorials

Use in Chat (/grapk)

Trigger /grapk (or $grapk in Codex), type an app name, bundle/package ID, or store URL, and confirm packaging or device install before the download starts:

/grapk

Or ask directly in English or Indonesian:

Download the latest WhatsApp from Play Store as a .apks bundle.
Cari Firefox di F-Droid lalu download versi terbarunya.
Download Fuelmeter from Apple App Store and install it to my iPhone.
Download WhatsApp version history from Aptoide.

Android Terminal Cookbook

# Search Google Play or another store
python3 skills/grapk/scripts/grapk.py search "Spotify"
python3 skills/grapk/scripts/grapk.py search "WhatsApp" --source aptoide

# Download from Google Play (default: original split APKs)
python3 skills/grapk/scripts/grapk.py download com.spotify.music

# Package splits into a single unmodified .apks bundle
python3 skills/grapk/scripts/grapk.py download com.spotify.music --packaging bundle

# Download from F-Droid or Aptoide
python3 skills/grapk/scripts/grapk.py download org.mozilla.fennec_fdroid --source f-droid
python3 skills/grapk/scripts/grapk.py download org.fdroid.fdroid --source aptoide

See Usage Examples for --packaging merge, --arch tv, --extras (OBB), Samsung device profiles, and bulk queues.

Apple App Store & iPhone USB Install

Grabbing signed .ipa files and installing them onto a connected iPhone takes three steps:

  1. Authenticate with your Apple ID (supports standard password prompt + 2FA, or macOS Keychain):

    python3 skills/grapk/scripts/grapk.py auth status --source app-store
    python3 skills/grapk/scripts/grapk.py auth login --source app-store
  2. Search or download the .ipa:

    python3 skills/grapk/scripts/grapk.py search "Fuelmeter" --source app-store
    python3 skills/grapk/scripts/grapk.py download com.yurani.fuelmeter --source app-store
  3. Pair and install to your connected iPhone via USB:

    python3 skills/grapk/scripts/grapk.py ios devices
    python3 skills/grapk/scripts/grapk.py ios pair
    python3 skills/grapk/scripts/grapk.py ios install ~/Downloads/Grapk/app-store/com.yurani.fuelmeter/latest/com.yurani.fuelmeter-latest.ipa

Tip: When running interactively in /grapk, you are prompted automatically for login mode (prompt vs Keychain) and whether to pair/install to a USB-connected iPhone right after .ipa download finishes.


How It Works

Grapk never lets an AI guess which downloader to run. Every request follows a strict resolution order: explicit --source → recognized store URL → Google Play (goopdl) by default. Failures never fall back silently to APKPure or untrusted mirrors.

Grapk deterministic engine routing, integrity verification, and packaging flow

Supported Store Sources

Store Source --source ID Engine Search Version History Verification & Guards Notes
Google Play (default) google-play goopdl (2.0.4) Yes Current rollout (latest) + exact code Base + split SHA-256 via --integrity-manifest Supports split APKs, OBB/extras, Android TV
F-Droid f-droid apkeep (-d f-droid) Yes Yes F-Droid index signature verification Official open-source catalog
APKPure apk-pure apkeep (-d apk-pure) No Yes Local SHA-256 only; requires --acknowledge-apkpure-risk Blocked unless user confirms EFF malware warning
Huawei AppGallery huawei-app-gallery apkeep (-d huawei-app-gallery) No Source-dependent Local SHA-256 only Available when advertised by installed apkeep (1.0.0)
Samsung Galaxy Store samsung-galaxy-store grapk (GrapkAdapter) No Latest stub for profile contentSize check + local SHA-256 / apksigner Samsung & stub-approved apps — see Samsung Guide
APKCombo apk-combo grapk (GrapkAdapter) Yes Current release Content-Length check + local SHA-256 / apksigner Serves APK/XAPK directly via apkcombo.com
APKMirror apk-mirror grapk (GrapkAdapter) Yes Yes (if unblocked) Content-Length check + local SHA-256 / apksigner Fails honestly if gated by Cloudflare anti-bot challenge (403)
Aptoide aptoide grapk (GrapkAdapter) Yes Yes (API v7) filesize + MD5 check + local SHA-256 / apksigner Warns if Aptoide malware.rank is not TRUSTED
Apple App Store app-store ipatool (0.1.8) Yes Yes (requires Apple ID) Local SHA-256 + Info.plist + FairPlay SC_Info/*.sinf Supports Keychain or auth login (+ 2FA) & iOS USB install

Unsupported stores (e.g., Uptodown) are rejected explicitly. See Supported Sources for the complete capability matrix.


Split Packaging

For Google Play apps distributed as split APKs, choose your output format with --packaging:

Mode Output Play Signature Intact? Extra Tools
splits (default) Original .apk files + adb install-multiple command ✅ Yes None
bundle Single <pkg>-<ver>.apks ZIP of unmodified APKs ✅ Yes None
merge (opt-in) Single .apk (--acknowledge-merge-resign) ❌ No (re-signed) APKEditor + Java

FAQ

Which AI agents are supported?
  • Full execution: Google Antigravity (agy), Claude Code, Codex, and Cursor.
  • Partial (sandboxed): Claude.ai (upload a ZIP of skills/grapk/; native binaries depend on sandbox limits).
  • Brainstorm only: ChatGPT cannot execute local binaries from an uploaded skill.
Where are downloads saved, and what tools get installed?
  • App downloads: Saved outside the skill directory at ~/Downloads/Grapk/<source>/<package_id>/<version>/, accompanied by a secret-free grapk-manifest.json.
  • Managed tools: Version-locked goopdl (2.0.4), apkeep (1.0.0), APKEditor (1.4.9), ipatool (0.1.8), and pymobiledevice3 (11.67.1 venv) live in ~/.grapk/tools/ (GRAPK_TOOLS_DIR). Disable auto-install with --no-auto-install or GRAPK_AUTO_INSTALL=0.
How does Apple App Store authentication work safely?

ipatool authenticates directly with Apple and supports two modes: standard email/password prompt (+ 2FA code if required) or reusing/saving credentials via macOS Keychain. Passwords and tokens are never logged into grapk-manifest.json or agent stdout.

Why does APKPure require explicit confirmation?

EFF's apkeep documentation warns that APKPure has previously modified Google Play apps and distributed malware. Grapk blocks APKPure unless you explicitly pass --acknowledge-apkpure-risk (or confirm in /grapk).

Does a local SHA-256 prove an APK is authentic?

No. A local SHA-256 only confirms the file was not corrupted after download. Google Play additionally verifies Base and Split APKs against Google's digests via goopdl --integrity-manifest, F-Droid verifies repository index signatures, and Aptoide verifies upstream file size + MD5.


Documentation

Guide Covers
Usage Examples Workflows for Play Store, F-Droid, APKPure, Aptoide, Apple App Store (.ipa), iOS install, and bulk queues
Samsung Galaxy Store Guide 38 live-verified Samsung packages, stub limits, and --device-model / --sdk / --csc flags
Architecture Modules, engines, adapter contract, and safety boundaries
Engine Reference Locked tool versions, CLI flags, and exit codes
Source Routing & Supported Sources Precedence rules and full store capability matrix
Security & Integrity & Troubleshooting Verification rules, consent gates, and common fixes

Contributing & Testing

Run the deterministic standard-library test suite (mocked subprocesses and HTTP, no live downloads):

python3 -m unittest discover -s tests -v

See CONTRIBUTING.md before opening a pull request.

License

MIT. All store names and logos belong to their respective owners; Grapk is an independent open-source project not affiliated with any listed marketplace.

About

A cross-platform AI agent skill for searching, downloading, verifying, and installing Android APKs and iOS IPAs from multiple app stores, powered by a standalone CLI.

Resources

Contributing

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages