Something went wrong. Try again.
My website, danielmorrisey.com. Written in HTML, CSS and javascript, by hand. danielmorrisey.com
javascript html css wisp-place
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>[MBD CDN]: A fast Content Delivery Network - danielmorrisey.com</title> <meta name="description" content="A simple, fast CDN powered by Cloudflare Workers, R2 & D1. Free for Life."> <meta name="author" content="Daniel Morrisey"> <meta name="robots" content="index, follow">
<!-- Open Graph --> <meta property="og:title" content="[MBD CDN]: A fast Content Delivery Network - danielmorrisey.com"> <meta property="og:description" content="A simple, fast CDN powered by Cloudflare Workers, R2 & D1 Free for Life."> <meta property="og:image" content="https://public-cdn.madebydanny.uk/danielmorrisey.com/media/images/seo/cdn.png"> <meta property="og:type" content="website"> <meta property="og:url" content="https://danielmorrisey.com/cdn.html"> <link rel="canonical" href="https://danielmorrisey.com/cdn.html"> <link rel="icon" href="https://public-cdn.madebydanny.uk/danielmorrisey.com/media/images/seo/favicons/cdn.svg">
<!-- Performance --> <link rel="preconnect" href="https://kit.fontawesome.com"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Sometype+Mono:wght@400;600&family=Lota:wght@400;500;600&family=DM+Sans:wght@400;500&display=swap" rel="stylesheet">
<!-- Font Awesome --> <script src="https://kit.fontawesome.com/0ca27f8db1.js" crossorigin="anonymous"></script>
<!-- Cloudflare Turnstile --> <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<!-- Stylesheet --> <link rel="stylesheet" href="/css/core.css"> <link rel="stylesheet" href="/css/cdn.css"></head><body>
<!-- Header injected by /js/core.js -->
<main class="main-content">
<!-- Hero --> <section class="hero"> <p class="hero-eyebrow">danielmorrisey.com/cdn</p> <h1 class="hero-title">MBD CDN</h1> <p class="hero-bio"> A simple, fast, free CDN powered by Cloudflare R2, D1, and Workers. Upload alsomost anything in seconds, serve it forever. Free for life. <br> Expercing Issues? Check our <a href="https://status.danielmorrisey.com/status/cdn" target="_blank" rel="noopener noreferrer">Status Page</a>. </p> </section>
<!-- Stats --> <section class="content-section"> <h2 class="section-label">what's been uploaded</h2> <div class="stats-grid"> <div class="stat-card"> <div class="stat-icon"><i class="fa-regular fa-image"></i></div> <div class="stat-value loading" id="stat-images">—</div> <div class="stat-label">Images</div> </div> <div class="stat-card"> <div class="stat-icon"><i class="fa-solid fa-video"></i></div> <div class="stat-value loading" id="stat-videos">—</div> <div class="stat-label">Videos</div> </div> <div class="stat-card"> <div class="stat-icon"><i class="fa-solid fa-photo-film"></i></div> <div class="stat-value loading" id="stat-gifs">—</div> <div class="stat-label">GIFs</div> </div> <div class="stat-card"> <div class="stat-icon"><i class="fa-solid fa-file-code"></i></div> <div class="stat-value loading" id="stat-documents">—</div> <div class="stat-label">Documents</div> </div> </div> <div class="storage-card"> <div class="stat-icon"><i class="fa-solid fa-database"></i></div> <div> <div class="stat-value loading" id="stat-storage">—</div> <div class="stat-label">Storage Used</div> </div> </div> </section>
<!-- Tabs --> <section class="content-section"> <div class="tab-bar"> <button id="upload" class="tab-btn active" onclick="switchTab('upload', this)"> <i class="fa-solid fa-cloud-arrow-up"></i> Upload </button> <button id="about" class="tab-btn" onclick="switchTab('about', this)"> <i class="fa-solid fa-circle-info"></i> About </button> <button id="how" class="tab-btn" onclick="switchTab('how', this)"> <i class="fa-solid fa-gears"></i> How it Works </button> <button id="build" class="tab-btn" onclick="switchTab('build', this)"> <i class="fa-solid fa-code"></i> Build </button> <button id="limits" class="tab-btn" onclick="switchTab('limits', this)"> <i class="fa-solid fa-gauge-high"></i> Limits </button> </div>
<!-- Upload --> <div class="tab-pane active" id="tab-upload"> <label class="drop-zone" id="drop-zone" for="file-input"> <i class="fa-solid fa-cloud-arrow-up" id="drop-icon"></i> <span id="file-name">Click to select or drag a file here</span> <input type="file" id="file-input" accept="image/*,video/*,text/html,text/css,text/javascript,text/plain,text/csv,text/xml,text/markdown,text/yaml,application/json,application/xml,application/pdf,application/javascript,application/x-yaml"> </label>
<div class="file-info" id="file-info"> <strong id="detail-name"></strong> <span style="color:var(--text-dim)"> · </span><span id="detail-size"></span> <span style="color:var(--text-dim)"> · </span><span id="detail-type"></span> </div>
<div class="progress-wrap" id="progress-wrap"> <div class="progress-track"> <div class="progress-fill" id="progress-fill"></div> </div> <div class="progress-label" id="progress-label">0%</div> </div>
<div class="turnstile-wrap" id="turnstile-wrap"> <div class="cf-turnstile" id="cf-turnstile" data-sitekey="0x4AAAAAADXaPgkFuLm_AFEj" data-theme="dark"></div> </div>
<button class="upload-btn" id="upload-btn"> <i class="fa-solid fa-cloud-arrow-up"></i> Upload to MBD CDN </button>
<div class="status-msg" id="status"></div>
<div class="result-box" id="result-box"> <div class="result-label">✓ Your file is live</div> <div class="result-url" id="result-url"></div> <div class="result-actions"> <button class="copy-btn" id="copy-btn" onclick="copyUrl()"> <i class="fa-solid fa-copy"></i> Copy URL </button> <a class="open-btn" id="open-link" href="#" target="_blank" rel="noopener"> <i class="fa-solid fa-arrow-up-right-from-square"></i> Open </a> </div> </div> </div>
<!-- About --> <div class="tab-pane" id="tab-about"> <div class="prose"> <p>The MBD CDN is a CDN built on Cloudflare's object storage, R2, a SQLight database, D1, and Cloudflare Workers. With zero cold starts and 100% uptime the MBD stays online to serve millions of people worldwide. <br> Upload almost any file <i>(not just images and videos)</i> in seconds <i>(even HTML files)</i> and get a public url anyone can use. </p> </div> </div>
<!-- How it Works --> <div class="tab-pane" id="tab-how"> <div class="steps"> <div class="step"> <div class="step-num">1</div> <div class="step-body"> <h3>You select a file</h3> <p>Your file is read locally in the browser and sent directly to the CDN API over HTTPS — straight to the Cloudflare edge, no intermediate servers.</p> </div> </div> <div class="step"> <div class="step-num">2</div> <div class="step-body"> <h3>A Worker receives it</h3> <p>A Cloudflare Worker handles the upload at the edge. It assigns a UUID filename, detects the file type, and streams the body directly into R2 with no cold starts.</p> </div> </div> <div class="step"> <div class="step-num">3</div> <div class="step-body"> <h3>R2 stores it permanently</h3> <p>The file is written to Cloudflare R2 — S3-compatible storage with zero egress fees and 11 nines of durability. Metadata is logged to D1 to track stats.</p> </div> </div> <div class="step"> <div class="step-num">4</div> <div class="step-body"> <h3>You get a public URL</h3> <p>A permanent <code>cdn.danielmorrisey.com</code> link is returned instantly. Anyone with it can access the file, served from whichever Cloudflare PoP is closest to them.</p> </div> </div> </div>
<div class="how-grid"> <div class="how-card"> <i class="fa-brands fa-cloudflare"></i> <h3>310+ Edge Locations</h3> <p>Files cached and served globally — sub-50ms for most users.</p> </div> <div class="how-card"> <i class="fa-solid fa-database"></i> <h3>R2 Object Storage</h3> <p>Zero egress fees, no expiry. Enterprise-grade durability.</p> </div> <div class="how-card"> <i class="fa-solid fa-bolt"></i> <h3>Zero Cold Starts</h3> <p>Workers run at the edge — every request is handled immediately.</p> </div> </div> </div>
<!-- Build --> <div class="tab-pane" id="tab-build"> <div class="prose"> <h3>Build it into your app</h3> <p>The MBD CDN API is simple. Send a POST request with your file and get back a JSON response with your permanent URL, size, and file type.</p> </div>
<div class="code-block"> <div class="code-label">POST Request</div> <pre><code>POST https://cdn.danielmorrisey.com/ HTTP/1.1Host: cdn.danielmorrisey.comContent-Type: [file-mime-type]Content-Length: [file-size]
[file-binary-data]</code></pre> </div> <div class="code-block"> <div class="code-label">Example</div> <pre><code>danny@daniels-macbook-neo ~ % curl -X POST https://cdn.danielmorrisey.com/ \-H "Host: cdn.danielmorrisey.com" \-H "Content-Type: image/png" \--data-binary "@/Users/danny/Documents/Screenshot 2026-07-30 at 10.05.06.png" </code></pre> </div> <div class="code-block"> <div class="code-label">Response (200 OK)</div> <pre><code>{ "success": true, "url": "https://cdn.danielmorrisey.com/user-content/2026-06-01/uuid.ext", "path": "user-content/2026-06-01/uuid.ext", "contentType": "image/jpeg", "fileType": "image", "size": 2048576}</code></pre> </div> <div class="code-block"> <div class="code-label">Example</div> <pre><code>{ "success":true, "url":"https://cdn.danielmorrisey.com/user-content/2026-07-30/1cb23b40-7621-4b7e-b9a4-61e8d55d35a1.png", "path":"user-content/2026-07-30/1cb23b40-7621-4b7e-b9a4-61e8d55d35a1.png", "contentType":"image/png","fileType":"image","size":7619658}
</code></pre> </div> <div class="code-block"> <div class="code-label">Rate Limiting (Response Headers)</div> <pre><code>X-RateLimit-Limit-Files: 30X-RateLimit-Remaining-Files: 25X-RateLimit-Limit-Bytes: 104857600X-RateLimit-Remaining-Bytes: 98765432X-RateLimit-Reset: 1719878400</code></pre> </div>
<div class="prose"> <p>If <code>cdn.danielmorrisey.com</code> is unreach able due to network restrictions, you may interact with the api via the Cloudflare provied worker url:<br> <code>mbd-cdn.madebydannyuk.workers.dev</code> or <code>cdn.madebydanny.uk</code></p> <p><b>Limits:</b> 70 files/day, 300 MB/day, 100 MB/file per IP. Resets at midnight UTC.</p> </div> </div>
<!-- Limits --> <div class="tab-pane" id="tab-limits"> <div class="limits-grid"> <div class="limit-card"> <i class="fa-solid fa-file-arrow-up"></i> <div class="limit-value" id="limit-max-file">—</div> <div class="limit-label">Max File Size</div> <div class="limit-note">Per individual upload</div> </div> <div class="limit-card"> <i class="fa-solid fa-hard-drive"></i> <div class="limit-value" id="limit-max-bytes">—</div> <div class="limit-label">Daily Storage</div> <div class="limit-note">Total uploads per day</div> </div> <div class="limit-card"> <i class="fa-solid fa-arrow-up-from-bracket"></i> <div class="limit-value" id="limit-max-files">—</div> <div class="limit-label">Uploads Per Day</div> <div class="limit-note">Resets at midnight UTC</div> </div> </div>
<div class="limits-note"> All limits reset daily at <strong>midnight UTC</strong> and are enforced per IP to protect performance for all users. <p>Need higher limits? <a href="/cdn/api.html"><strong>Try the developer API.</strong></a></p> </div>
<div class="usage-section"> <p class="section-label">your usage today</p> <div id="usage-loading" class="usage-loading">Loading your usage…</div> <div id="usage-bars" style="display:none"> <div class="usage-item"> <div class="usage-row"> <span>Files Uploaded</span> <span id="usage-files-label">0 / 25</span> </div> <div class="usage-track"> <div class="usage-fill" id="usage-files-fill" style="width:0%"></div> </div> </div> <div class="usage-item"> <div class="usage-row"> <span>Storage Used</span> <span id="usage-bytes-label">0 B / 200 MB</span> </div> <div class="usage-track"> <div class="usage-fill" id="usage-bytes-fill" style="width:0%"></div> </div> </div> </div> </div>
<hr class="divider">
<p class="section-label">accepted file types</p> <p class="file-types"> <strong>Images</strong> — JPEG, PNG, WebP, AVIF, SVG · <strong>Animated</strong> — GIF · <strong>Video</strong> — MP4, WebM, MOV · <strong>Documents</strong> — PDF, JSON, HTML, CSS, JS, CSV, Markdown </p> </div>
</section> </main>
<!-- Scripts --> <script src="/js/core.js"></script> <script src="/js/cdn.js"></script></body></html>