跳到正文
DEV Community· prabbit·· 7 小時前AI 評分32

我打造 Zteam:免上架費、0% 抽成的開源獨立遊戲商店,突破 Steam Direct $100 門檻

I Built a $0-Fee, 0%-Cut Open Indie Game Storefront to Break the $100 Steam Direct Barrier (30 Languages & 29-Currency Auto-Conversion)

AI 導讀

作者建立並以 MIT License 開源 Zteam,提供免上架費、0% 平台抽成的獨立遊戲商店,旨在避開 Steam Direct 每款遊戲 $100 USD 的提交費。Zteam 支援 30 種 Steam 語言、29 種貨幣自動轉換、付費遊戲外部結帳連結,以及 HTML5 一鍵瀏覽器遊玩。

正文

If you have ever built an indie game, a weekend game-jam prototype, or a WebGL/Three.js project, you have probably dreamed of putting it on a real Steam-style storefront so players around the world can discover and play it.

Then you hit the wall of Steam Direct:

  1. $100 USD non-refundable submission fee per game just to list a title
  2. 30% platform revenue cut on every sale
  3. 30+ days of onboarding, tax verification, and manual review queues before your store page can go live
  4. No instant 1-click browser play for HTML5 / WebGL games

For solo developers, students, hobbyists, and indie creators in emerging regions, paying $100 just to share a free or small indie game is a dealbreaker.

So I built and open-sourced Zteam — a $0 listing fee, 0% revenue cut, instant-publishing open indie game storefront supporting all 30 Steam languages, 29-currency automatic browser conversion, direct checkout links to Gumroad / itch.io / Patreon / BOOTH for paid games, and 1-click HTML5 browser play.

Zteam English Storefront — Zero-Fee Open Indie Game Store


🚀 Live Storefront, Source Code & Video Walkthrough

You can browse the storefront, download DRM-free builds, or play HTML5/WebGL games right in your browser without signing in. Or create a free verified developer account and publish your own game (free or paid) in under 3 minutes:


1. Steam Direct vs. Zteam at a Glance

Steam Direct vs Zteam Comparison & FAQ

Feature Steam Direct Zteam
Submission Fee per Game $100 USD $0 (Free Forever)
Platform Revenue Cut 30% 0% (Creators keep 100%)
Approval & Waiting Period 30+ days + manual review Instant Publishing (AI Safety & Malware Scan)
Paid Game Checkout Links External store links banned Direct Gumroad / itch.io / Patreon / BOOTH links (0% Zteam cut)
Multi-Currency Display Manual regional pricing 29 Currencies auto-converted to the viewer's browser currency
Instant Browser Play (HTML5) Not supported (Client required) Built-in 1-Click Browser Play
Distribution Model Proprietary client + DRM DRM-Free Direct Downloads & GitHub Releases CDN
Localization Multilingual All 30 Steam Languages (Inline SVG flags + 300-cell Playwright matrix verified)

2. Five Practical Engineering Patterns You Can Reuse in Your Own Web Apps

While building Zteam, I solved five engineering problems that come up in almost every global web platform. Here is the exact code and architecture behind each one.


Pattern 1: Free-by-Default Pricing + Conditional External Checkout (Gumroad / itch.io / Patreon / BOOTH) + Automatic Browser Currency Conversion

Many indie developers want to distribute free games directly, while routing paid editions or supporter packs to Gumroad, itch.io, Patreon, or BOOTH without losing 30% to a middleman. At the same time, players browsing from Japan, Europe, Vietnam, Brazil, or the US want to see prices in their own local currency.

In Zteam's Publish Studio (/publish), I implemented a three-part pricing system:

Publish Studio with Multi-Currency Pricing (€10.00 EUR automatically converted to $10.75 USD in the live store card preview)

  1. Free by Default (amount = 0):
    • By default, every new submission is set to Free ($0). While a game is free, the external product URL input is hidden and disabled on the client and rejected on the backend.
  2. Conditional Storefront Link (Only When Paid amount > 0):
    • As soon as a developer switches to Paid and enters an amount and currency (across 29 supported currencies), the Product URL (Gumroad / itch.io / Patreon / BOOTH) field appears.
    • It automatically detects and highlights the matching platform badge (Gumroad, itch.io, Patreon, BOOTH) and validates the hostname on both client and server.
  3. Zero-Config Browser Currency Conversion in the Game Catalog:
    • Using navigator.languages and Intl.NumberFormat, every game card in the catalog automatically converts the developer's listing currency into the viewer's local browser currency.
    • For example, in the screenshot above, the developer priced their game at €10.00 EUR; a visitor in an en-US browser immediately sees [Gumroad] €10.00 $10.75, while a visitor in a ja-JP browser sees [Gumroad] €10.00 ¥1,667.
// 1. Strict allowlist detection for external paid checkout providers
export function detectPurchaseProvider(rawUrl: string): "Gumroad" | "itch.io" | "Patreon" | "BOOTH" | null {
  if (!rawUrl) return null;
  try {
    const u = new URL(rawUrl);
    if (u.protocol !== "https:" && u.protocol !== "http:") return null;
    const host = u.hostname.toLowerCase();
    if (host === "gumroad.com" || host.endsWith(".gumroad.com")) return "Gumroad";
    if (host === "itch.io" || host.endsWith(".itch.io")) return "itch.io";
    if (host === "patreon.com" || host.endsWith(".patreon.com")) return "Patreon";
    if (host === "booth.pm" || host.endsWith(".booth.pm")) return "BOOTH";
    return null;
  } catch {
    return null;
  }
}

// 2. Convert any of 29 listing currencies into the viewer's browser currency
const ZERO_DECIMAL_CURRENCIES = new Set(["JPY", "KRW", "VND", "IDR", "TWD", "HUF"]);

export function formatConvertedPriceInfo(amount: number, sourceCurrency = "USD", viewerLang = "en") {
  const srcCur = sourceCurrency.toUpperCase();
  const targetCur = getViewerCurrency(srcCur, viewerLang);
  const converted = convertPrice(amount, srcCur, targetCur);

  const formatAmt = (val: number, cur: string) => {
    const isZeroDec = ZERO_DECIMAL_CURRENCIES.has(cur);
    const rounded = isZeroDec ? Math.round(val) : Math.round(val * 100) / 100;
    return new Intl.NumberFormat(navigator.language || "en-US", {
      style: "currency",
      currency: cur,
      minimumFractionDigits: isZeroDec ? 0 : 2,
      maximumFractionDigits: isZeroDec ? 0 : 2,
    }).format(rounded);
  };

  const convertedFormatted = formatAmt(converted, targetCur);
  const origFormatted = formatAmt(amount, srcCur);
  return {
    isConverted: targetCur !== srcCur,
    origFormatted,
    convertedFormatted,
    display: targetCur !== srcCur ? `${convertedFormatted} (${origFormatted})` : convertedFormatted,
  };
}

Pattern 2: Why Emoji Country Flags Break on Windows — and How We Built a 30-Language Inline SVG Flag Switcher Verified Across a 300-Cell Playwright Matrix

If you use Unicode flag emojis (🇺🇸, 🇯🇵, 🇻🇳, 🇩🇪) in a web language picker, Windows 10 and Windows 11 users never see flags. Microsoft's Segoe UI Emoji font intentionally omits country flag glyphs, rendering ugly two-letter regional indicator codes like US, JP, and VN.

To fix this without adding 30 external HTTP image requests, Zteam renders compact 24×16 inline SVG vector flags for all 30 supported Steam languages:

30-Language Inline SVG Country Flag Switcher

Even more importantly, partial localization is a common trap in multilingual SPAs: the header gets translated, while form placeholders, modal dialogs, or browser-native <input type="file"> buttons ("Choose File / No file chosen") remain stuck in English or the OS language.

To guarantee 100% localization across all 30 languages:

  1. Every language defines all 239 UI keys + 8 genre labels + 6 review sentiment tiers = 253 localized items per language (7,590 total translated entries).
  2. All <input type="file"> elements are wrapped in a custom accessible file-picker component localized via t("chooseFile") and t("noFileChosen").
  3. A Playwright 30-Language × 10-View DOM Matrix Test (300 live cells) visits every route and modal state (/, /game/:slug, /publish guest & logged-in, /library guest & logged-in, /developer guest & logged-in, /faq, Auth Modal, and Build Modal) across all 30 languages (ja, zh, zh-tw, ko, th, id, ms, bg, cs, da, de, en, es, es-419, el, fr, it, hu, nl, no, pl, pt, pt-br, ro, ru, fi, sv, tr, vi, uk) and asserts zero untranslated fallback strings.

Pattern 3: Instant 1-Click HTML5 / WebGL Browser Play + Hybrid DRM-Free Build Hosting

The biggest friction point for indie games is convincing players to download and run an unknown executable.

Zteam supports downloadable builds for Windows, macOS, Linux, and Android alongside instant 1-click HTML5 / WebGL browser play:

Instant 1-Click Browser Play in Zteam — Aether Drift: Skyward

For multi-gigabyte desktop builds, developers can either upload smaller packages directly or attach external release URLs (such as GitHub Releases) with full version tracking, release notes, and download counters.


Pattern 4: Automated AI Safety Moderation + Binary Magic-Byte & Malware Signature Scanning

How do you offer instant publishing with zero waiting queue without getting flooded by malware, phishing links, or spam?

Every submission and file upload on Zteam passes through an automated 3-stage security pipeline before going live:

// Inspect magic bytes on uploaded images to block disguised executables (MZ/PE, ELF, Mach-O) and XSS SVGs
export function inspectImageMagicBytes(bytes: Uint8Array): boolean {
  const isPng = bytes[0] === 0x89 && bytes[1] === 0x50 && bytes[2] === 0x4e && bytes[3] === 0x47;
  const isJpeg = bytes[0] === 0xff && bytes[1] === 0xd8 && bytes[2] === 0xff;
  const isGif = bytes[0] === 0x47 && bytes[1] === 0x49 && bytes[2] === 0x46;
  const isWebp =
    bytes[0] === 0x52 && bytes[1] === 0x49 && bytes[2] === 0x46 && bytes[3] === 0x46 &&
    bytes[8] === 0x57 && bytes[9] === 0x45 && bytes[10] === 0x42 && bytes[11] === 0x50;
  return isPng || isJpeg || isGif || isWebp;
}
  1. Binary Magic-Byte & Malware Signature Inspection: Blocks disguised executables (MZ, ELF, Mach-O), double extensions (.jpg.exe, .scr, .bat), EICAR signatures, and obfuscated PowerShell/script payloads.
  2. Real-Time AI Text & Vision Moderation: Evaluates game titles, descriptions, tags, external URLs, and cover art to reject phishing, malware lures, and policy violations automatically.
  3. 6-Digit Email Verification + Sliding-Window Rate Limiting: Enforces per-IP and per-account rate limits (1 new account registration/day, 1 new game launch/day) to stop automated spam bots.

Pattern 5: AEO / GEO (Generative Engine Optimization) for ChatGPT, Claude & Perplexity

Today, developers and gamers increasingly ask AI assistants: "What is the best free alternative to Steam for publishing indie games?"

To make sure AI answer engines and search crawlers can index every game in the catalog, Zteam dynamically generates:

  • /llms.txt & /llms-full.txt: Clean Markdown knowledge bases containing the platform overview, Steam Direct comparison table, multilingual FAQs, and full game catalog descriptions.
  • /api/catalog.json: A machine-readable Schema.org DataCatalog + VideoGame JSON-LD feed.
  • 30-Language hreflang /sitemap.xml & /feed.xml (Atom) plus server-side rendered (SSR) VideoGame, SoftwareApplication, and FAQPage JSON-LD structured data on every route.

3. Publish Your Indie Game on Zteam Today (Takes 3 Minutes, Costs $0)

Do you have:

  • A WebGL / Three.js / Canvas game sitting on GitHub Pages?
  • A Unity, Godot, or Unreal indie game from a game jam?
  • A commercial indie game on itch.io, Gumroad, BOOTH, or Patreon that deserves more global discovery across 30 languages?

Come publish it on Zteam (https://zteam.6u.workers.dev/publish)!

  1. Click Sign Up Free and verify your email with the 6-digit code.
  2. Open Publish Free ($0) (https://zteam.6u.workers.dev/publish).
  3. Enter your title, tagline, genre, description, and cover image.
    • Leave price at 0 (Free) for free games, or set your price & currency and paste your Gumroad / itch.io / Patreon / BOOTH URL for paid games.
  4. Add an optional HTML5 browser play URL or release build and click Publish Live on Zteam ($0)!

If you find this project useful or publish a game on Zteam, drop a link to your game page in the comments below — I would love to play it and feature it in the carousel! ❤️🦄

來源:DEV Community · dev.to