DEV Community

AI王紫楓
AI王紫楓

Posted on Originally published at ai-purplemaple.com

Why I Built Zero-Dependency Client-Side PKZIP & Safe-Zone Validators (Plus Open-Source Agent Skills) Instead of Another SaaS Uploader

Every time indie devs or creators need to prepare Steamworks store capsules, LINE Creators Market stickers, Chrome Web Store icons, or 9:16 vertical video safe zones, most web tools force the same annoying pattern:

  1. Upload your unreleased game art or client video to a random server.
  2. Wait behind a signup wall or watermark paywall.
  3. Hope their "2024 template" still matches 2026 platform rejection rules.

As a solo developer (and a published LINE sticker creator myself), I got tired of both privacy friction and silent store rejections. So I built SpecFrame—a 100% browser-local workbench—and open-sourced the machine-readable specs + zero-dependency CLI + AI Agent Skills on GitHub.

Here are the three engineering choices that made the biggest difference.


1. Skip JSZip: Why a 120-Line PKZIP STORE Encoder Beats Heavy Bundles for PNGs

When batch-exporting 40 LINE stickers (01.png–40.png + main.png + tab.png) or 6 Steam store capsules, PNG files are already DEFLATE-compressed. Running a second DEFLATE pass in JavaScript wastes mobile CPU cycles for <1% size savings.

Using PKZIP Compression Method 0 (STORE) via native Uint8Array and DataView gives you valid, instant archives with 0 KB of third-party dependencies:

  • Write each entry's Local File Header (0x04034b50) + raw PNG bytes.
  • Set Bit 11 (0x0800) in the General Purpose Bit Flag so UTF-8 filenames never turn into mojibake on Windows Explorer.
  • Force unsigned 32-bit CRC-32 (>>> 0)—forgetting unsigned right-shift in JS silently corrupts half your archives.
  • Append the Central Directory (0x02014b50) and End of Central Directory (0x06054b50) with exact byte offsets.

Full byte-layout breakdown & ICO multi-resolution binary encoder notes:
https://ai-purplemaple.com/articles/client-side-pkzip-ico-binary-encoder.html


2. Catching Real Store Rejections via Raw RGBA Scanlines

Dimensions alone aren't enough to prevent storefront rejections:

  • LINE Creators Market rejects odd pixel dimensions (width % 2 !== 0), files > 1 MB, and artwork encroaching inside the 10px transparent outer border.
  • Chrome Web Store requires a 16px transparent margin inside 128×128 icons (96×96 centered artwork).
  • Steamworks explicitly forbids baked-in text/logos on the 3840×1240 Library Hero.

Decoding actual RGBA alpha bytes across edge strips catches stray alpha > 0 anti-aliased pixels automatically before upload.


3. Shipping Machine-Readable SKILL.md Files for Coding & Video Agents

Today, half the time it isn't a human manually cropping assets—it's an AI coding or FFmpeg agent hardcoding outdated guesses for TikTok / Shorts / Reels safe margins.

So alongside the browser tools, I packaged the exact JSON specs and zero-dependency CLIs as agentskills.io-compliant Agent Skills (SKILL.md):

# Validate Steam capsules, LINE stickers (with true 10px alpha check), or Chrome Web Store packs directly in CI
npx github:tbpfs/creator-safe-zone-specs --list
npx github:tbpfs/creator-safe-zone-specs steam ./store-assets
npx github:tbpfs/creator-safe-zone-specs line ./stickers --json
Enter fullscreen mode Exit fullscreen mode
# Also open-sourced: zero-dependency Technical SEO & Zero-JS AI Crawler (GEO) auditor
git clone https://github.com/tbpfs/static-seo-geo-auditor.git
Enter fullscreen mode Exit fullscreen mode

Try the Tools & Open Specs (All Free, Zero Upload)

If you're building local-first browser utilities or packaging deterministic validation CLIs as AI Agent Skills, I'd love to hear what formats or edge cases bit you the hardest!

Top comments (0)