DEV Community

Cover image for I Built an Open-Source App Store on Top of GitHub Releases Using Rust and Tauri 2.0
Marlon Ferreira
Marlon Ferreira

Posted on

I Built an Open-Source App Store on Top of GitHub Releases Using Rust and Tauri 2.0

Installing great open-source desktop software usually means jumping from blog post to GitHub repository, scrolling past source tarballs in the Releases tab, guessing which .AppImage, .deb, .dmg, or .exe matches your CPU architecture, and repeating the whole routine manually when an update drops.

I wanted a single interface for that workflow, so I built Open Source Store: a cross-platform desktop app (100% Rust backend with Tauri 2.0 and a vanilla JavaScript + Vite frontend) that treats GitHub Releases as an app store catalog, complete with a live web demo you can open directly in the browser.

Open Source Store demo


Why build this instead of using an existing package manager?

Tools like winget, brew, apt, and flatpak are great once you already know what you want to install. They are less helpful when you want to browse visual apps by category, compare project activity and license metadata side by side, or grab the latest release of a smaller GitHub project that hasn't made it into a distro repo yet.

Open Source Store focuses on visual discovery plus direct release installs:

  1. Curated catalog (204 apps): Starts immediately with vetted projects across categories (Development, Utilities, Internet, Multimedia, and more), such as yt-dlp, uv, LocalSend, Logseq, and Ollama.
  2. Live GitHub Search: Searches any public repository on GitHub in real time and applies the store's safety checks before showing an install button.
  3. Local lifecycle tracking: Tracks downloaded apps in installed.json so you can see installed vs. available apps, check for newer GitHub Releases, launch, update, or uninstall them from one tab.

App detail modal with metadata and SHA-256 verification


Architecture and Technical Decisions

I kept the stack intentionally lean. The Rust backend (src-tauri/) compiles with opt-level = "s", LTO, and stripped symbols (the Windows NSIS setup binary in v0.1.3 comes out to 2.4 MB), while web/ uses Vite and plain JavaScript modules without a heavy UI framework.

1. Selecting the right release binary across OS and CPU architectures

GitHub Releases do not enforce a naming standard. One project publishes App-linux-amd64.AppImage, another publishes app_0.4.0_x86_64.deb, and both include .sha256 sidecar files and source archives in the same asset list.

In src-tauri/src/platform.rs, asset_score inspects every asset name, filters out source archives and checksum/signature files (.sha256, .sha1, .sha512), rejects mismatched operating systems and architectures (x64 vs. arm64), and scores native installers by preference (for example .msi/.exe on Windows, .AppImage/.deb/.rpm on Linux, .dmg on macOS).

2. Enforcing a 5-gate curation and safety policy

Pointing a downloader at arbitrary GitHub search results carries obvious risks. Every repository and release goes through rules defined in data/curation-policy.json and enforced in src-tauri/src/catalog.rs:

  • Activity and adoption thresholds: Curated entries require at least 3,000 stars, 180 days of repository history, 365 days of owner account age, 3+ releases, and 5,000+ release downloads. Live search uses lighter thresholds (1,000+ stars, 90+ days, 500+ downloads).
  • License allowlist: Accepts recognized open-source licenses (MIT, Apache-2.0, GPL-*, LGPL-*, BSD-*, MPL-2.0, ISC, etc.).
  • Repo, keyword, and non-app filters: Excludes awesome-lists, documentation-only repos, blocked keywords, and repos without matching platform binaries.
  • Dangerous asset checks: Rejects unsafe asset extensions before offering a download.
  • Strict host allowlisting: Download URLs and HTTP redirects must stay on HTTPS github.com or githubusercontent.com domains.

3. Safe redirects, streaming progress, and SHA-256 checks

GitHub Release downloads bounce through CDN redirects on githubusercontent.com. Rather than letting reqwest follow arbitrary external redirects, src-tauri/src/downloader.rs uses a custom redirect policy that checks every hop, streams bytes to disk while emitting Tauri download-progress events (with cancellation via tokio::sync::watch), and verifies the SHA-256 digest when GitHub reports one on the release asset:

let client = reqwest::Client::builder()
    .user_agent("open-source-store/0.1")
    .redirect(reqwest::redirect::Policy::custom(|attempt| {
        if attempt.previous().len() > 8 {
            attempt.error("Excesso de redirecionamentos")
        } else if is_safe_redirect_url(attempt.url()) {
            attempt.follow()
        } else {
            attempt.error("Redirecionamento bloqueado para domínio externo ao GitHub")
        }
    }))
    .build()?;
Enter fullscreen mode Exit fullscreen mode

4. Handling GitHub API rate limits and the web preview

Unauthenticated requests to the GitHub API cap at 60 requests per hour per IP. Polling 200+ repositories on startup would hit that wall immediately.

To keep startup snappy without requiring a token:

  • The app bundles an embedded snapshot (data/catalog-seed.json) so the initial catalog loads instantly in both desktop and GitHub Pages web mode.
  • The desktop backend caches fetched API responses locally in catalog_cache.json with a 30-minute TTL.
  • Users who do heavy live searching can optionally save a personal GitHub token (save_github_token) in the sidebar settings.

The GitHub Pages deployment reuses the exact same web/ interface with a browser API fallback: you can browse the seeded catalog, inspect security scores and metadata, and run live GitHub searches without installing anything. Only downloading, installing, and updating local apps require the desktop Tauri binary (and the UI tells you when an action is desktop-only).


Try it and help shape what comes next

You can explore the catalog in your browser right now at marlonferreira1800-hue.github.io/open-source-store or download the v0.1.3 installer from GitHub Releases.

The project is MIT-licensed and very early (v0.1.3). I would especially love feedback on:

  • Linux and macOS testing: I develop primarily on Windows, so real-world test reports for the .AppImage, .deb, .rpm, and .dmg packages (and platform.rs asset matching edge cases) are super helpful.
  • Catalog curation: Are there essential open-source desktop apps missing from data/curated.json?
  • Security model: Ideas for tighter signature verification or sandboxed installs.

If this looks useful to you, check out CONTRIBUTING.md, open an issue, or drop a comment below with what you'd expect from a GitHub-powered open-source app store.

Top comments (2)

Collapse
 
userxnom profile image
Abdullah Naseer •

The part I would steal first is asset_score in platform.rs — GitHub Releases really are a naming free-for-all, and filtering out the .sha256 sidecars and source tarballs before scoring is the kind of boring logic that decides whether a store feels trustworthy or broken. The 5-gate curation policy is the right call too; a downloader pointed at arbitrary search results without one would be a malware pipeline waiting to happen. One question on the 60-requests-per-hour limit: when the 30-minute cache expires mid-browse, does the app degrade to the embedded snapshot silently, or does the user see a stale-data notice?

Collapse
 
marlonferreira1800hue profile image
Marlon •

Great question, and glad asset_score resonated with you! Filtering out .sha256 checksums and source tarballs early was essential to avoid false positives and failed installs.

Regarding the 30-minute cache and the 60 req/h limit in src-tauri/src/catalog.rs:

  1. Passive browsing without a token: When the 30-minute TTL expires, the app avoids burning the unauthenticated rate limit in the background. It reloads the embedded catalog-seed.json snapshot, updates catalog_cache.json, and shows a simple "Catálogo carregado do cache local" status rather than a stale warning.
  2. Explicit refresh or with a GitHub Token: If a network error or rate limit (HTTP 403/429) breaks the fetch completely, the backend returns offline: true. The UI then displays a 12-second warning banner advising the user that the GitHub API is unavailable and suggesting they add a personal token in Settings. Live searches (search_apps) also surface errors directly in the UI instead of falling back silently.
  3. Current edge case: If a partial refresh fails halfway through, individual failed items fall back to the seed snapshot silently.

Adding an explicit "cached snapshot" badge or timestamp indicator in the header is definitely on the roadmap to make stale vs. live state clearer to the user!