Stop losing knowledge across 10 different tabs. Brainly centralizes your tweets, YouTube links, research papers, and notes into a single intelligent knowledge base — and lets you query it with AI.
We live in an era of digital fragmentation. Valuable knowledge — important tweets, YouTube tutorials, research papers, resumes, blog posts — is scattered across dozens of platforms with no single place to find it again.
Brainly solves this by acting as a personal knowledge hub: save anything, tag it, and retrieve it instantly through semantic AI search.
- 📥 Universal content ingestion — Save links, notes, tweets, and documents in one place
- 🤖 AI-powered querying — Ask questions across your saved content in natural language
- 🏷️ Tagging & organization — Categorize your knowledge base your way
- 🔐 JWT authentication — Secure user sessions with token-based auth
- ⚡ Fast, typed API — Built end-to-end in TypeScript for reliability
- 🗃️ Relational data model — PostgreSQL with Prisma ORM for type-safe, schema-first storage
Brainly-AI/
├── backend/ # Node.js + Express REST API (TypeScript)
│ ├── src/
│ │ ├── routes/ # API route handlers
│ │ ├── middleware/ # JWT auth middleware
│ │ └── index.ts # Server entry point
├── frontend/ # Next.js + TypeScript client
│ ├── app/ # App router pages
│ ├── components/
│ └── lib/ # API client layer
├── db/ # Prisma schema & migrations
│ └── schema.prisma # Data models (User, Content, Tag)
├── package.json # pnpm workspace root
└── pnpm-workspace.yaml
Monorepo powered by pnpm workspaces — shared TypeScript types between frontend and backend, single install, unified scripts.
| Layer | Technology |
|---|---|
| Language | TypeScript (end-to-end) |
| Backend | Node.js, Express.js |
| Frontend | Next.js, Tailwind CSS |
| Database | PostgreSQL |
| ORM | Prisma (type-safe, schema-first) |
| Auth | JWT (JSON Web Tokens) |
| Package Mgr | pnpm workspaces (monorepo) |
| API Testing | Postman |
- Node.js 18+
- pnpm (
npm install -g pnpm) - PostgreSQL (local or hosted — e.g. Neon, Supabase)
# Clone the repo
git clone https://github.com/Furqan-7/Brainly-AI.git
cd Brainly-AI
# Install all workspace dependencies
pnpm installCreate a .env in backend/:
DATABASE_URL=postgresql://user:password@localhost:5432/brainly
JWT_SECRET=your_secret_key
PORT=3001# Run Prisma migrations
cd backend
npx prisma migrate dev
# (Optional) Open Prisma Studio to inspect your DB
npx prisma studio# Start backend
cd backend && pnpm dev
# Start frontend (new terminal)
cd frontend && pnpm devBackend runs on http://localhost:3001
Frontend runs on http://localhost:3000
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/signup |
Register a new user |
| POST | /api/auth/login |
Login & get JWT |
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| POST | /api/content |
Save a new piece of content | ✅ |
| GET | /api/content |
Get all your saved content | ✅ |
| DELETE | /api/content/:id |
Delete a content item | ✅ |
| GET | /api/content/search?q= |
AI-powered semantic search | ✅ |
All protected routes require Authorization: Bearer <token> header.
- Browser extension for one-click saving
- Semantic vector search (pgvector embeddings)
- Sharing collections with other users
- Mobile-responsive UI
- Cloudflare Workers deployment for edge performance
- Import from Notion / Obsidian
I personally struggled with knowledge management — bookmarks piled up, interesting threads got lost, and research was impossible to re-find. Brainly is a tool I actually want to use every day.
It also pushed me to think seriously about relational data modeling with Prisma, monorepo architecture with pnpm workspaces, shared TypeScript types, and JWT auth flows — not just follow tutorials, but make real engineering decisions.
Bodarni Furqan
Full-Stack Engineer | TypeScript · Node.js · Next.js · PostgreSQL · Prisma
GitHub · LinkedIn · Twitter/X
MIT — feel free to use, fork, and build on this.