How I built MELD by Tinko: A 100% local image editor (and let AI write the ZIP parsing logic)
Hey DEV community! 👋
I've been working on MELD (https://melds.pages.dev), a lightweight, browser-based image editor. My main goal was to make it 100% local (no backend, no forced signups) and keep the stack as pure as possible (Vanilla JS + Fabric.js).
The Project File Challenge
I wanted users to be able to save their work as a custom .meld file. Instead of a giant JSON file, I decided to make it a standard ZIP archive containing manifest.json, layer data, and a preview.png (similar to how .sketch or .docx works).
The AI Magic
Here is the funny part: I didn't want to import a heavy library like JSZip just to read and write a simple zip file. I asked my AI pair programmer (DeepSeek) to help me implement the import/export logic using native JS.
I didn't even ask for extreme optimization. I just said: "Make it work with the native browser APIs."
To my surprise, the AI actually wrote a minimal ZIP parser from scratch. It used DataView to manually build Local File Headers and Central Directories, calculated CRC32 checksums, and used the native DecompressionStream('deflate-raw') API for extraction. It completely bypassed the need for third-party libraries.
Why this matters:
- Zero dependencies: The bundle size stays tiny.
- The AI workflow: It proved to me that as developers, we can act as "architects" while AI handles the heavy lifting of binary parsing and complex math.
What's Next?
I plan to use Cloudflare Workers to proxy AI requests (like background removal) so the API keys stay secure. The base editor is completely free and runs locally.
Try it out here (Best on Mac/iPad): https://melds.pages.dev
I'd love to hear your thoughts! Have you guys ever asked AI for a simple function and it ended up writing half an operating system? 😂