Opens in a new tab

Create a reinterpretation of YouTube

Hi, I'm here to share the story of my adventure designing and then creating (coding courtesy of the AI Gemini) a version of YouTube that, in my view, has the potential to be better by eliminating Shorts and low-quality content. I'll explain the idea, then the creation process, the later improvements and possible future phases.

Take a look: https://tubewell.keruanima.com/

And if you don't have time, I made a YouTube video that tells you what I'm telling you here:

I Have Improved YouTube

About this video: I took care of the script, the assembly and the editing; I synthesised the voice with AI so as not to use my own, and the thumbnail is also a design I did myself. So we could say that this little project was an opportunity to put several of my skills as a designer and editor to work, although I have to admit that I didn't enjoy the video as much, because I had already put in many hours and, truth be told, I'm not someone who usually has time to spare.


The idea

I was tired of how the YouTube algorithm works, and also of the direction it wants to take towards TikTok-style videos: short, addictive and generally empty of quality content, with rare exceptions. The rapid consumption of content is frying our brains, and it doesn't help that when you want to search for something specific you get random suggestions for things you're not interested in.

That's why I started to wonder whether there can really be a solution. It's clear that competing with YouTube by creating another platform won't work:

  • you need to fill the platform with content
  • traffic and servers capable of storing so much data and showing it.

It isn't cheap and it isn't easy. There are already 2 companies—Vimeo and Dailymotion—which have each, on their own, spent time as YouTube's competition, although their models are increasingly focusing on specific niches; for example, Vimeo today is used mainly by companies and professionals who want to show videos in high quality and with plenty of customisation options.

Besides, I don't want to stop watching YouTube. Despite how hard it is to find content and the amount of junk content that buries quality content, there are still creators making videos that are worth watching. So the solution shouldn't be to compete with YouTube, but rather to create a way of consuming YouTube content by filtering out what we don't like.

So I thought: we could create a website where people can add the videos they consider good quality without needing to register or upload the video—you just add it with the YouTube link and the page adds it. This also covers us legally, because it isn't legal to download YouTube content and upload it to another platform; besides, this way we also forget about the content-hosting problem: the player is still YouTube's, and it's still YouTube that hosts and provides those videos. What we have is basically an iframe or a window to each YouTube video.

And since I'm a fan of democratic systems, there should be a system through which anyone can add YouTube videos, but also a way for the general public to decide whether that content is good quality or not. That's how I came up with a logic whereby videos with very low karma would be removed and blocked. 

Karma would be this site's scoring system for videos, independent of YouTube's. A video starts at 0 and, depending on whether people like or dislike it, its karma will go up or down point by point. Videos with very low karma points will disappear, and if someone tries to upload them again they won't be able to, because the site remembers their URLs and blocks them. This is the key that will make the site a place to find videos considered good quality. Of course, it isn't infallible, since it's content that appeals to the majority, and that doesn't mean the majority is always right—I know—but unfortunately it's the only method that so far has seemed most accurate to me for achieving content that satisfies most visitors. Pure statistics. 

In addition to the karma system, the site automatically sorts itself, placing the videos with the best karma in the top positions. So, if you search for a video—a tutorial, for example—you can be sure that the one that has been most useful to people will always be among the top positions.

I've explained how it works, but how did I make it?

Design and Development

For the design, I set about creating the screens in Figma, exported them as images and used them so that Gemini could use them as a reference and, together with my explanations of how the website should work, write the code for me. I kept testing and continued this vibe coding until the result satisfied me. At that point I went to GitHub and created a new repository, and in Codespaces I pasted the code. Once I had the project in the repository, I went to Netlify, created the project there, did the deploy and had it working.

The Figma design tries to evoke YouTube and, above all, to be an easy-to-understand interface. I used a dark theme to contrast with YouTube's predominantly light interface. I didn't want many screens either: a minimalist design was necessary not only in UI but also in UX. The only 2 screens the user will visit besides the home page are the form for uploading a video and each video's own page. The home page already works as a dynamic search with a very simple category filtering system that has its own search box to make it easier to find the category of interest.

The video upload form doesn't require the user to sign up and log in. As I say, I was looking for a simple system, open to everyone and democratic, and putting up a login barrier isn't appropriate in this case. On the other hand, the form only asks for the URL and a category. I included the category part because the user may feel a video belongs in several categories; obviously this will require some moderation, but it seemed like a necessary addition. Besides, this selector isn't complicated to use—it even includes a search box so you don't have to scroll through the whole list.

One thing I didn't mention is that, to maintain some moderation control over the site, I also made an admin panel. It is accessed from the footer and uses a keyword to send a temporary, single-use password to my Telegram; this lets me access the administration panel securely—much more secure than having an account and password login that hackers could break into by brute force.

In the admin panel I have functions that help me moderate a little: delete, block and unblock content, and reset karma.

One last thing I wanted to do was set up a friendlier URL than the one Netlify gives me for free: that one was https://tubewell-by-keruanima.netlify.app, and https://tubewell.keruanima.com/ was the one I created as a subdomain with my hosting provider under my main domain, keruanima.com. This way I think it's not only a friendlier URL, but it also looks more professional. The process of implementing it isn't complicated, but I advise making sure that, if you use Cloudflare for your domain, you make Cloudflare's IPv4 addresses for that subdomain point to Netlify, since at first I didn't realise and spent a couple of days thinking it was just a DNS propagation problem that I had configured only with my hosting provider.

You can use free services such as https://dnschecker.org/all-dns-records-of-domain.php to check what is going wrong when something like this happens to you. They don't sponsor me; use whichever service you prefer.

Result

Not much more. Now it only remains for people to use this website and see whether the experiment works. So far only I and a few friends have uploaded videos; you could say that up to now it only works as a shared library of favourite videos—and really that's basically what it is—but I'd like it to be on a larger scale.

I encourage you to visit it, try it and see how it works. I'd love to read in the comments what you think of this site, whether you liked the idea and what you would do to improve it. If this video and my experience have helped you, the site has a button to send me a donation of whatever amount you see fit; it helps me know that the content is genuinely appreciated and to keep putting in hours to prepare more content like this, or better. 

Later Improvements

One thing that happened quite often was that the data wasn't saved properly. Sometimes I uploaded a video, it appeared on the site for a while, and after a few minutes, when I went back to the site, it was gone. The same thing happened with likes, or while I was moderating content. I knew it was related to Netlify Blobs, and yes, it was.

Netlify Blobs, like many modern cloud database systems, works with an "eventual consistency" model.

Imagine that Netlify has servers spread all over the world so that your site loads very quickly no matter where it is visited from.

  1. When you upload a video or give a "like", that information is sent to the Netlify server closest to you (for example, in Frankfurt). The server saves it and replies "Done, saved!". That's why you see the change instantly.
  2. In the background, Netlify starts "telling" the rest of its servers around the world (in the US, in Asia, etc.) about that change. This synchronisation process is called propagation and, although it is very fast, it isn't instantaneous. It can take from a few seconds to a minute or two.
  3. Here is where the problem occurs: If you reload the page right after uploading the video, it's possible that your request for "give me all the videos" ends up at a different Netlify server (for example, in London) that hasn't yet received the news of the new video. That server will respond with the old list, and it will look as if your video has disappeared.

The same happens with votes. The vote is saved, but if you reload before it has propagated to all the servers, you may see the old counter.

Can it be fixed?

It can't be "fixed" in the sense of eliminating it completely, because it is the feature that allows these systems to be so fast and scalable. Forcing every server in the world to synchronise instantly would make every action (voting, uploading) take an enormous amount of time.

The code at that time used a technique called "Optimistic Update" (Optimistic UI Update). When you take an action:

  1. The code does not wait for the server. It updates your browser's interface immediately to give you an instant response. That's why, when you vote, you see the change right away.
  2. Then it sends the information to the server so that it is saved permanently.

Alternatively, you could choose to show a loading icon and wait for the data to propagate, but this would be very slow. So the best thing is to change the method by which we store this data, and here the dilemma arises.

Is there an alternative?

Yes, specifically 2 main ones if we don't count the option of using Google Sheets. In this case we have Supabase and Vercel KV.

Option 1: Supabase

Think of Supabase as a modern, simpler alternative to Firebase. It offers you a real PostgreSQL database, which solves the consistency problem at its root.

  • How does it work? It is an external service where you create a database. From our Netlify Functions, we would connect to Supabase to read and write the data.
  • Pros:
    • Immediate Consistency: When you save a piece of data, it is available to everyone instantly. It is a traditional database, so there are no propagation delays.
    • Very Generous Free Tier: You get 500 MB of database and 50,000 API calls a month. To store the video information (which is only text), it could hold hundreds of thousands of videos without any problem.
    • Excellent Control Panel: It gives you a very visual interface to view and manage your data, similar to a spreadsheet. Very useful for administration tasks.
  • Cons:
    • It is one more external service that I would have to register for and configure (although the process is very simple).

Option 2: Vercel KV

Vercel is Netlify's main competitor, and its storage service (KV) is extremely fast and consistent.

  • How does it work? It is a key-value storage system (like Blobs, but more powerful) that integrates with Vercel's "Serverless Functions".
  • Pros:
    • Performance and Consistency: It is extremely fast and the data is instantly consistent.
    • Solid Free Tier: Vercel's "Hobby" plan is free forever for non-commercial projects and includes the use of KV.
  • Cons:
    • Requires Migration: I would have to move the whole project from Netlify to Vercel. Although the process is almost identical, it is a change of platform.

Originally I had ruled out the option of using Supabase because I wanted to do everything using the minimum number of services: if I could keep everything on Netlify, that was enough for me. But now that I already had everything set up there, moving to Vercel would involve more work than changing where the data would be stored to Supabase, and besides, Supabase would be a much more robust and scalable option without the fear of being charged unexpectedly. I decided to go with that solution to the problem.

Now it is clear that the site works better than before. Responses from the backend are practically immediate, and likes and videos no longer disappear.

Can it be improved further?

Of course, the site isn't perfect, and there are improvements that could be worthwhile.

A much-needed improvement will be to add a barrier so that the same person cannot give several likes to the same video, as well as adding barriers against bots. It may be necessary to identify IP addresses and add some kind of CAPTCHA system.

In any case, as an experiment and a small project, I think it works well. I have faith that the people who try it will do so without tricks and won't create artificial likes; I don't think anyone would want to waste their time doing that on a personal project like this.

Share It If You Liked It:

Meet the Author:

Other Related Posts: