Skip to content
Web AppBeta

DownloadFrom

Edge-hosted universal media downloader web app with multi-engine API failover, strict MIME validation, PWA caching, and clean routing.

Overview: The Motivation

Most web-based media downloaders are notoriously frustrating: they are weighed down by spammy redirect ads, broken scrapers, and fragile backends that crash the moment social platforms update their internal APIs. Furthermore, when upstream APIs fail, naive tools often trigger corrupt .mp4.txt downloads that confuse users.

I built DownloadFrom as a static, privacy-first, zero-framework web client that resolves these issues. Hosted on Cloudflare’s edge network, it combines an automatic multi-engine failover cluster with strict client-side MIME type validation and offline PWA capabilities.

Architecture & Edge Deployment

The frontend runs with zero heavy runtime frameworks (no React or Vue), compiling down to pure Vanilla HTML, modern CSS, and modular JavaScript. This ensures sub-second page loads, minimal memory usage, and full edge compatibility:

Multi-Engine Failover Cluster

Social platform media endpoints change constantly. To maintain high service uptime without manual intervention, js/extractor.js manages a prioritized cluster failover engine:

[User Request]
       │
       ▼
[Primary Railway Backend] ──── (Success: Return Stream)
       │ (Timeout / Rate Limit / Error)
       ▼
[Cobalt Universal API]    ──── (Success: Return Stream)
       │ (Failover)
       ▼
[Platform-Specific APIs]  ──── (Tikwm / VxTwitter / Reddit / Invidious)
       │ (All Failed)
       ▼
[Actionable Error Modal]

When a user submits a media link, the extractor attempts resolution against the primary backend. If that endpoint returns HTTP 429 (rate limit), 5xx (server error), or a network timeout, the client automatically cascades to secondary public and dedicated platform extractors. The failover process happens in milliseconds behind an animated progress indicator.

Strict Content-Type Validation

A common flaw in web downloaders is the dreaded .mp4.txt bug: when an upstream service returns an error payload (formatted as JSON or HTML), naive scripts treat the response text as binary data and initiate a download with a video extension.

DownloadFrom eliminates this in js/app.js:

  1. Header Inspection: Before converting the response to a Blob or creating an anchor download link, the client reads the Content-Type response header.
  2. Payload Verification: If the content type indicates application/json or text/html, the script parses the error payload instead of generating a file.
  3. User Feedback: The application displays an informative modal explaining the issue (such as private media, age restriction, or rate limits) rather than saving an unplayable, corrupt file to the user’s disk.

Glassmorphic UI & Usability

The interface emphasizes speed and focus, utilizing a Dark Teal glassmorphic design system:

Multilingual SEO & Structured Data

To capture organic global search queries across regional platforms, js/seo.js dynamically coordinates localization:

Access & Live Application

DownloadFrom is deployed and hosted live at downloadfrom.app. It operates as a private, standalone media extraction client running on edge infrastructure.

#web-app#media-downloader#pwa#vanilla-js#cloudflare-pages

You might also like

Product

ClipVault

Open-source, fully offline clipboard manager and encrypted password vault for Android. No INTERNET permission, and you can verify that yourself.

Product

ScanXpert

Native Android PDF engine and document scanner built with Kotlin 2.0, Jetpack Compose, CameraX, and 16 KB page-size compliance.