SShortSingh.
Back to feed

How one developer built a free image comparison tool by eliminating egress costs

0
·1 views

A developer built imgi, a free tool that lets users compare two images side-by-side via a permanent shareable link, primarily used for before-and-after photo edits and AI upscales. The biggest challenge was not the technical slider feature but the bandwidth costs, since every viewer loading a comparison pulls down two full-resolution images, which can quickly add up to significant egress fees on platforms like AWS S3. The developer avoided these costs entirely by hosting images on Cloudflare R2, which charges zero dollars per gigabyte of outbound data, making the free-forever model financially sustainable. The full stack runs on Cloudflare's infrastructure, including Workers for edge-side rendering, D1 SQLite for metadata, and Workers Analytics Engine for privacy-friendly view tracking. The developer notes that many similar free image tools have shut down or added restrictions due to these hidden bandwidth costs, a fate they aimed to avoid by designing around zero-egress storage from the start.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer Wraps 14-Part Claude Code Series With a Unified System Architecture

A developer has concluded a 14-part technical series on DEV Community documenting the construction of a self-sustaining Claude Code environment. The series covered components including a four-layer memory architecture, automated skill generation, cost tracking, secret scanning, and health monitoring. In the final installment, the author maps all 14 pieces into a single closed loop where memory feeds skills, skills enable autonomous execution, and monitoring and self-healing feed results back into memory. The author argues that installing these components in isolation is ineffective, as each layer depends on the previous one to function as intended. The concluding piece emphasizes that the connecting logic between parts — not the individual builds — was the core insight of the entire series.

0
ProgrammingDEV Community ·

SchemaCrawler Scribe Generates Git-Friendly Database Docs Using Google OKF

SchemaCrawler Scribe is an open-source tool that generates structured database documentation directly from live schema metadata using Google Open Knowledge Format (OKF). The tool addresses a common problem where database documentation either drifts out of sync with production or is generated in formats that are difficult to read and version. Output is produced as plain-text Markdown, making it diffable, reviewable in Git, and compatible with AI agents for tasks like grounding and extraction. Scribe also supports localized output in multiple languages, embedded Mermaid diagrams, and schema lint reporting. It can be run via command line or Docker and integrates with standard developer tooling such as Visual Studio Code.

0
ProgrammingDEV Community ·

Open/Closed Principle: Write Code That Extends Without Breaking

The Open/Closed Principle (OCP) is a software design rule stating that code components should be open for extension but closed for modification. The goal is to add new behaviors by creating new code rather than editing existing logic, reducing reliance on conditional chains like if-else or switch statements. Achieving this requires strong use of polymorphism and abstraction, allowing new implementations to be plugged in without rewriting what already works. A practical example contrasts a tightly coupled payment processor — modified every time a new method is added — with an interface-based design where each payment type is an isolated class. Reworking old code is costly in time and effort, and repeated changes to finished logic increase the risk of breaking existing features.

0
ProgrammingDEV Community ·

Seth Webster joins Expo as Chief Developer Evangelist while leading React Foundation

Seth Webster has joined Expo as Chief Developer Evangelist, a role he will hold alongside his position as Executive Director of the newly formed React Foundation. In a post on the Expo blog, Webster explained that he was drawn to Expo because of its focus on reducing development complexity and shortening the path from idea to shipped product. He highlighted the convergence of AI-assisted development and mobile-first software as a key reason why Expo's tooling is especially relevant right now. Webster praised Expo's leadership team, including Charlie Cheever, James Ide, and Evan Bacon, citing their technical conviction and long-term ecosystem thinking. In his new role, he plans to help teams adopt Expo at scale, strengthen ties with the broader React ecosystem, and grow the global Expo and React Native community.