>

04/2026 ~ Present

CloudBio · Bio Link Management Tool

Full-Stack Development
Database Design
Serverless
Cloudflare
Active
Featured

A self-hosted link-in-bio tool with drag-and-drop editing for links, images, and videos, plus a phone-sized preview.

CloudBio · Bio Link Management Tool

Project Overview

CloudBio is a self-hosted link-in-bio tool. Add your main page URL to your Instagram bio so visitors can find your work, social profiles, and contact details in one place. As your portfolio grows, you can organize more work on a separate subpage and link to it from the main page.

My Role

I built the drag-and-drop block editor and phone preview, designed the data model for pages and blocks, implemented public page rendering, and deployed the app to Cloudflare.

Features

Arrange the main page and subpages

Add a banner block to the main page, put an image of your latest project in it, and drag it to the top. For the rest of your work, create a subpage, then add a text button on the main page that links to it.

Preview changes on a phone-sized screen

Change the background image in Appearance and check the main page in the phone preview. If the photo makes your name or bio hard to read, turn on background blur or change the text color and see the result right away.

Crop and compress images before upload

Choose a vertical photo for a banner to open the 16:9 crop frame. Drag and zoom the photo until the part you want to keep is inside the frame. Confirm the crop and the browser converts the result to WebP before uploading it.

Key Decisions

Share editing and sorting across block types

Buttons, banners, and videos all need to be added, hidden, and reordered in the same editor. I stored the page, visibility, and sort position in shared fields. Settings specific to one block type, such as a button URL or a set of banner images, live in JSON. A new block type can reuse the same management flow without adding columns to the database.

When a block moves between two others, I use the midpoint of their sort values. D1 updates only the moved block, saving the writes it would take to renumber the whole list after each drag.

Trade-off

The database stores the configuration as text, so the code has to define which fields each block needs. The phone preview and public page render separately. Adding a block type means building its edit form and checking that both views render it correctly from the same settings.

Update the public page cache based on what changed

Visitors can open the same public URL many times between edits. I have the Worker store the rendered HTML in KV and serve it directly on a cache hit. On a miss, the Worker queries D1 and builds the page again. This avoids querying the database and rendering the same page on every visit.

Replacing a banner on a project subpage clears only that page’s cache. Changing a shared font clears the main page along with any cached subpages recorded in the index for that account. Once a page’s cache entry is gone, the next visit rebuilds it from fresh data.

Trade-off

Every change to public content needs to clear the right set of pages. If a page is missed, visitors can keep seeing stale content. Cache deletions also take time to propagate across KV regions, so some visitors may briefly see the previous version after the dashboard preview has updated.

Tech Stack

Hono

Lightweight and efficient web framework running on Cloudflare Workers

React 19

Frontend UI framework with SWR for data synchronization

Cloudflare Workers

Serverless edge computing platform

Cloudflare D1

Serverless SQLite database

Cloudflare R2

Object storage for image uploads and access

Cloudflare KV

Key-value cache for accelerating page rendering

Drizzle ORM

Type-safe database operations and migration management

shadcn/ui

High-quality component library based on Radix UI

Tailwind CSS

Utility-first CSS framework

dnd-kit

Drag-and-drop sorting implementation