Bun’s latest update brings first-party support for Postgres and S3, making database queries and file storage easier than ever with zero config. In this video, we build Bunstagram, an Instagram clone using Bun, Supabase, and Postgres. Watch as we dynamically fetch posts, upload images to S3-compatible storage, and serve everything with Bun’s built-in web server.
🔥 What You’ll Learn:
✅ Setting up a Bun project
✅ Connecting to Postgres (with Supabase)
✅ Uploading & serving images from S3
✅ Creating dynamic API routes
Bun is changing the game—let’s build something cool! 💡
0:00 🚀 Intro – Bun v1.2 Overview
0:06 🔥 First-Party Support for Postgres & S3
0:30 🛠 Setting Up a Bun Project
1:15 🌐 Creating a Web Server with Bun
2:17 🐘 Querying Postgres from Bun
3:54 🗄 Connecting to Postgres with Bun and Supabase
5:31 🤖 Using Supabase AI to generate a table and example data
6:39 🔍 Fetching Posts from the Database
8:46 ☁️ Connecting Bun to S3 (Supabase Storage)
11:05 ▲ Generate an upload form with Vercel's v0
12:07 📡 Serving API Routes for uploading images to S3
14:27 📁 Fetching a file from S3 with Bun
16:22 🏞 Creating an Image Gallery with Bun
18:07 🏁 Wrapping Up – Bunstagram is Live!
💻 Videos to watch next:
▶ Building a SaaS with Lovable, Supabase, and Stripe: https://www.youtube.com/watch?v=9z54zkmK-to
▶ Using bolt.new and Supabase to build an Instagram clone: https://www.youtube.com/watch?v=9c4v27ZlH6Q
▶ We improved Supabase AI ... A lot: https://www.youtube.com/watch?v=_fdP-aaTHgw
👇 Learn more about Supabase 👇
🕸 Website: https://supabase.com/
🏁 Get started: https://app.supabase.com/
📄 Docs: https://supabase.com/docs
🔔 Subscribe for more tutorials and feature updates from Supabase: https://www.youtube.com/channel/UCNTVzV1InxHV-YR0fSajqPQ?sub_confirmation=1
📱 Connect with Us:
🐙 Github: https://www.github.com/supabase
💬 Discord: https://discord.supabase.com/
🐦 Twitter: https://www.twitter.com/supabase/
▶ Instagram (follow for memes): https://www.instagram.com/supabasecom/
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools