Skip to content
njtwoPublic

About

An AI-powered Android APK downloader that works across multiple app stores and repositories.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Grapk logo

Grapk: Universal APK Grabber

One AI skill for Android APKs and Apple App Store IPAs across Google Play, F-Droid, APKPure, Samsung Galaxy Store, APKCombo, APKMirror, Aptoide, and App Store.

Ask for any app. Grapk routes to the right engine, verifies the files, and packages them cleanly.

License: MIT Python 3.9+ Supported platforms: macOS, Windows, and Linux Agent skill

Quick start · How Grapk works · Split packaging · FAQ · Documentation


Grapk 3-step user flow

Need an Android APK without juggling different tools, store flags, or split-APK files? Invoke /grapk or ask your agent in plain words.

Grapk sits on top of native download engines — goopdl for Google Play, apkeep for F-Droid/APKPure/Huawei AppGallery, and ipatool-rs for Apple App Store .ipa files — plus a built-in extensible Python engine (GrapkAdapter) supporting Samsung Galaxy Store, APKCombo, APKMirror, and Aptoide. It detects the source deterministically, lets you choose packaging/platform/auth up front, checks SHA-256 and store digests, and saves everything neatly outside the skill folder.

The skill itself uses only the Python 3.9+ standard library. When goopdl, apkeep, APKEditor, ipatool, or pymobiledevice3 (for USB iPhone pairing and .ipa installation) is missing, Grapk automatically detects your PC's OS/architecture and installs version-locked builds (goopdl 2.0.4, apkeep 1.0.0, APKEditor 1.4.9, ipatool 0.1.8, pymobiledevice3 11.67.1 in an isolated venv) into ~/.grapk/tools/ (pass --no-auto-install to disable), and never silently switches to untrusted mirrors.

Quick start

Ask your agent to install it

Paste this into Google 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 doctor --install` (or `grapk.py install`) to check and install version-locked dependencies if missing.

Any agent, with the skills CLI

npx skills add yusriltakeuchi/grapk

Detects installed agents (Antigravity, Claude Code, Codex, Cursor, and more). Add -g to install globally.

Claude Code, as a plugin

/plugin install grapk --marketplace yusriltakeuchi/grapk

On Claude Code older than 2.1.275, run /plugin marketplace add yusriltakeuchi/grapk, then /plugin install grapk@grapk.

Or install manually (engines, skill paths, and Antigravity plugin)
  1. Install the native engines:
uv tool install goopdl        # Google Play
brew install apkeep           # F-Droid, APKPure, alternative stores (or: cargo install apkeep)
  1. Copy or symlink the skill:
git clone https://github.com/yusriltakeuchi/grapk.git
cd grapk

# Google Antigravity (recommended symlink so updates stay synced)
mkdir -p ~/.gemini/antigravity-cli/skills && ln -s "$PWD/skills/grapk" ~/.gemini/antigravity-cli/skills/grapk

# Or copy to your 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-level .agents/skills/grapk/, and optional global CLI (pip install -e .).

Use /grapk

Run /grapk (or $grapk in Codex), type the app name, package ID, or store link, and choose your preferred output format before the download starts:

/grapk

Or ask directly:

Download the latest WhatsApp from Play Store.
Cari Firefox di F-Droid lalu download versi terbarunya.
Download LocalSend sebagai 1 file .apks bundle.

Use from the terminal (CLI)

python3 skills/grapk/scripts/grapk.py banner
python3 skills/grapk/scripts/grapk.py install
python3 skills/grapk/scripts/grapk.py doctor
python3 skills/grapk/scripts/grapk.py search "Spotify"
python3 skills/grapk/scripts/grapk.py search "WhatsApp" --source aptoide
python3 skills/grapk/scripts/grapk.py download com.spotify.music
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
python3 skills/grapk/scripts/grapk.py auth status --source app-store
python3 skills/grapk/scripts/grapk.py download com.yurani.fuelmeter --source app-store
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

See examples for --packaging bundle, --packaging merge, --arch tv, --extras, and bulk queues.

How Grapk works

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

Grapk deterministic engine routing and verification 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 Galaxy Store 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 Requires Apple ID Keychain or grapk.py auth login (+ 2FA)

Unsupported stores (e.g. Uptodown) are rejected explicitly. See Supported Sources for the full capability matrix and Samsung Galaxy Store Guide for the 38 live-verified Samsung packages and device profile flags.

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 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 goopdl or apkeep binaries from an uploaded skill.
Where are downloads saved?

Outside the skill directory at ~/Downloads/Grapk/<source>/<package_id>/<version>/, along with a secret-free grapk-manifest.json containing file sizes, local SHA-256 hashes, and verification status.

Why does APKPure require confirmation?

EFF's apkeep documentation warns that APKPure has previously modified Google Play apps and distributed malware. Grapk requires explicit user consent and --acknowledge-apkpure-risk before downloading from APKPure.

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

No. Local SHA-256 only confirms the file did not corrupt after download. Google Play downloads additionally verify Base and Split APKs against Google's digests via goopdl --integrity-manifest (OBB/asset extras lack digest metadata).

Documentation

Contributing & Testing

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

python3 -m unittest discover -s tests -v

See CONTRIBUTING.md before opening a pull request.

License

MIT. Not affiliated with Google Play, F-Droid, APKPure, or Huawei AppGallery.

About

An AI-powered Android APK downloader that works across multiple app stores and repositories.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages