This project is my entry for the Bolt.new "world's largest hackathon." The idea sparked while I was cramming for exams and getting frustrated. Tools like NotebookLM were okay, but they felt like slightly better versions of Gemini. I wanted something that did more than just chat—something that actually transformed my study materials.
So, I built Brainiac. You can dump any file into it—lecture notes, PDFs, data sets—and it spits out useful stuff like custom notebooks, interactive dashboards, and flashcards. Upload a PDF, get flashcards. Drop in an Excel file, get a cool graph. It's all about making your knowledge work for you, instantly.
The Tech I Leveled Up On
This project was a crash course in building a real-world app. Here's the stack I used:
- Frontend: Built a slick UI with bolt.new, kept it fast and made it look good.
- Backend: Went all-in on Supabase. It handled my PostgreSQL database, user auth, and even file storage with a hookup to Cloudflare R2.
- AI & Serverless: This is where it gets cool. I used Cloudflare Workers to run the AI stuff. The RAG (Retrieval Augmented Generation) pipeline is powered by Cloudflare Vectorize, which lets you do semantic search on your own documents. It's all tied together with the Cloudflare AI Gateway.
How It's Built
Brainiac has a pretty modern setup:
- The App: It's a React single-page app, built using Bolt.new, that talks to the backend and AI services.
- The Brains: Supabase is the core, handling all the data and user stuff.
- The Magic: Cloudflare Workers and Vectorize handle the AI heavy lifting, making the RAG features possible.
- The invite system: I even built a custom invite system from scratch to manage who gets in.
The Grind
Building this wasn't all smooth sailing:
- Juggling Services: Getting React, Supabase, and Cloudflare to all play nice together was a puzzle, especially with security and CORS.
- Locking It Down: Nailing the Row Level Security in Supabase was tough but super important. I didn't want any data leaks.
- The RAG Pipeline: Building the AI search was really difficult. It took a lot of work to get Cloudflare Vectorize set up and querying properly.
- Invite System: Rolling my own invite system was a challenge, but it was worth it to have full control over user onboarding. (use invite code SUBHASH to sign up)
It was a grind, but I learned a ton and built something I'm really proud of.
Built With
- cloudflare
- react
- supabase
- vite
Log in or sign up for Devpost to join the conversation.