Skip to content

akshay-it23/second-brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

<markdown

Typing SVG

License Node React MongoDB Status


🧠 What is 2nd Brain?

"Your mind is for having ideas, not holding them." – David Allen

2nd Brain is a personal knowledge management platform that lets you capture, organize, and share content from across the internet β€” all in one place. Save Twitter threads, YouTube videos, Instagram posts, and more. Categorize them your way. Share your entire knowledge base with a single link.

Think of it as your digital memory β€” always organized, always accessible.


✨ Features

Feature Description
πŸ” Secure Auth JWT-based sign up & login
πŸ“Œ Embed Posts Save Twitter, YouTube, Instagram & more
πŸ—‚οΈ Categorization Organize content into custom categories
🧠 View Brain Visualize your entire knowledge base
πŸ”— Share Brain One link to share everything with anyone
πŸ“± Responsive UI Works seamlessly on all devices

πŸ› οΈ Tech Stack

Frontend

React TypeScript TailwindCSS

Backend

Node.js Express.js JWT

Database & DevOps

MongoDB Docker Git


πŸ—οΈ Architecture

2nd-brain/ β”œβ”€β”€ πŸ“ frontend/ # React + TypeScript app β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ # Reusable UI components β”‚ β”‚ β”œβ”€β”€ pages/ # Route-level pages β”‚ β”‚ β”œβ”€β”€ hooks/ # Custom React hooks β”‚ β”‚ β”œβ”€β”€ context/ # Auth & global state β”‚ β”‚ └── utils/ # Helper functions β”‚ └── package.json β”‚ β”œβ”€β”€ πŸ“ backend/ # Node.js + Express API β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ routes/ # API route handlers β”‚ β”‚ β”œβ”€β”€ controllers/ # Business logic β”‚ β”‚ β”œβ”€β”€ models/ # MongoDB schemas β”‚ β”‚ β”œβ”€β”€ middleware/ # Auth & error middleware β”‚ β”‚ └── config/ # DB & env config β”‚ └── package.json β”‚ └── README.md


⚑ Quick Start

Prerequisites

Make sure you have these installed:

  • Node.js
  • MongoDB
  • Git

1️⃣ Clone the Repository

git clone https://github.com/your-username/2nd-brain.git
cd 2nd-brain

2️⃣ Backend Setup

cd backend
npm install

Create a .env file in the /backend directory:

PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_super_secret_key
NODE_ENV=development

Start the backend server:

npm run dev

🟒 Server running at http://localhost:5000

3️⃣ Frontend Setup

cd ../frontend
npm install
npm start

🌐 App running at http://localhost:3000


πŸ“– Usage Guide

πŸ“ Sign up for a new account (or log in) βž• Click "Add Content" and paste any social media URL πŸ—‚οΈ Assign a category (e.g. Learning, Inspiration, Dev) 🧠 Navigate to "My Brain" to see all saved content πŸ”— Hit "Share Brain" to generate your public link πŸš€ Share the link β€” anyone can now browse your Brain!


πŸ”Œ API Reference

Method Endpoint Description Auth
POST /api/auth/signup Register new user ❌
POST /api/auth/login Login & get JWT token ❌
GET /api/content Get all user content βœ…
POST /api/content Add new content βœ…
DELETE /api/content/:id Delete content item βœ…
GET /api/brain/share Get shareable link βœ…
GET /api/brain/:shareId View shared brain ❌

πŸ—ΊοΈ Roadmap

  • User authentication (JWT)
  • Save & embed social media posts
  • Content categorization
  • View Brain dashboard
  • Shareable Brain link
  • πŸ€– AI-based auto-categorization
  • πŸ” Full-text search across saved content
  • πŸŒ™ Dark mode & customizable themes
  • πŸ“± Mobile app (React Native)
  • πŸ”” Browser extension to save content on the go
  • πŸ“Š Analytics β€” most saved topics, engagement stats
  • 🀝 Collaborative brains (shared workspaces)

🀝 Contributing

Contributions are what make open source amazing! Here's how to get started:

# 1. Fork the project
# 2. Create your feature branch
git checkout -b feature/amazing-feature

# 3. Commit your changes
git commit -m "feat: add amazing feature"

# 4. Push to the branch
git push origin feature/amazing-feature

# 5. Open a Pull Request πŸŽ‰

Please read our Contributing Guidelines and follow the Code of Conduct.


πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.


⭐ If you found this useful, please star the repo!

Star History Chart

Built with ❀️ by Akshay

Releases

No releases published

Packages

 
 
 

Contributors