<markdown
"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.
| 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 |
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
Make sure you have these installed:
git clone https://github.com/your-username/2nd-brain.git
cd 2nd-braincd backend
npm installCreate a .env file in the /backend directory:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_super_secret_key
NODE_ENV=developmentStart the backend server:
npm run devπ’ Server running at
http://localhost:5000
cd ../frontend
npm install
npm startπ App running at
http://localhost:3000
π 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!
| 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 | β |
- 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)
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.
Distributed under the MIT License. See LICENSE for more information.