Cocoanetics

Swift ports of upstream projects (currently: SwiftGH = a port of the GitHub CLI)

10
0
100% credibility
Found May 07, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Swift
AI Summary

SwiftPorts offers pure Swift versions of essential command-line tools for handling archives, compression, git operations, and GitHub/GitLab interactions, embeddable in apps without external processes.

How It Works

1
🔍 Discover the toolbox

You're making an app that needs to handle zipped files, code versions, or chat with online code hubs, but without bulky outside helpers.

2
📦 Grab the handy kit

Find SwiftPorts, a collection of simple tools built right for apps like yours.

3
🧩 Slip it into your app

Add the kit to your project so all the tools are ready inside.

4
Compress and unpack files

Now zip up folders or unpack them effortlessly, just like magic inside your app.

5
📂 Manage code copies

Clone, update, or switch versions of code projects without any hassle.

6
💬 Talk to code sites

Create issues, review changes, or grab releases directly from places like GitHub.

🎉 App runs everywhere

Your app feels snappy and works on any device, no extra setup or slowdowns.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is SwiftPorts?

SwiftPorts delivers pure Swift reimplementations of CLI essentials like GitHub CLI (gh), GitLab CLI (glab), git, jq, and compression/archive tools (gzip, bzip2, xz, zstd, lz4, zip, tar). It solves shelling out to system binaries in Swift apps—embed repo ops like cloning, issue/PR management, API calls via gh api, and artifact extraction directly, with identical output/errors. Built for cross-platform use (macOS, iOS, Linux, Windows), it shines in this Swift GitHub repo for sandboxed or serverless environments.

Why is it gaining traction?

No more Process spawns: run gh pr create, gh issue list --jq '.title', or git clone in-process using libgit2 and Swift concurrency. It matches upstream CLI surfaces (gh auth login via OAuth device flow, gh release download auto-unpacks tar.gz), plus SDKs for custom apps—REST/GraphQL GitHub API, secret stores (Keychain fallback), ANSI/TTY. Devs grab swift run gh api repos/cli/cli for instant GitHub Swift API access without deps.

Who should use this?

Swift scripters automating GitHub workflows (pr checkout, cache delete) in Playgrounds or executables. iOS/macOS app builders needing embedded gh for user-facing repo features like issue creation or release downloads. Server-side Swift teams (Vapor, Swift on AWS) handling git/gh in functions without system git.

Verdict

Grab it for pure-Swift GitHub CLI today—swift build spits out working gh/git/jq binaries—but at 10 stars and 1.0% credibility, it's alpha: solid README/quickstart, tests pass, yet gaps in full gh surface. Fork and contribute if you need glab or more upstream parity.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.