This is the frontend for the SecondBrain app. It is built with React, TypeScript, Vite, Tailwind CSS, and Axios.
Backend repository: https://github.com/Rumman963/Second-brain
SecondBrain lets users save and organize useful links such as:
- videos
- images
- articles
- audio files
Users can sign in, manage their saved items, and share their brain publicly with a generated link.
- user sign up and sign in
- dashboard with saved content cards
- filtering by content type
- add new content with title and link
- delete saved content
- public share link for a brain
- stop sharing option
- responsive layout for desktop and mobile
- React
- TypeScript
- Vite
- Tailwind CSS
- React Router
- Axios
Install dependencies:
npm installRun the app locally:
npm run devBuild for production:
npm run buildPreview the production build:
npm run previewThe frontend uses a backend URL defined in:
src/config.tsCurrent value:
export const BACKEND_URL = "https://second-brain-backend-i9oi.onrender.com";If your backend runs locally or on another host, update this value before running the app.
- User signs up or signs in.
- User adds content to their personal brain.
- Content is shown in cards on the dashboard.
- User can share a public brain link to another person.
- Shared viewers can view the content without signing in.
src/
├── components/
├── Hooks/
├── icons/
├── Pages/
├── App.tsx
├── main.tsx
├── config.ts
└── index.css
- The app expects the backend API to be available.
- If the backend is offline or the URL is wrong, requests will fail.
- The project is designed for frontend-only usage with the backend service already connected.
This frontend is ready to deploy on platforms like Vercel or Netlify. The project also includes a Vercel config file for deployment support.