An intelligent mind mapping application built for the Modus x Hashnode Hackathon. This project leverages AI to enhance creativity and productivity through smart mind mapping capabilities.
π Won 1st Runner Up and $2000 prize in the Modus x Hashnode Hackathon!
BLOG
IIT Madras Post
Backend Repo
- Interactive Mind Maps: Create, edit, and navigate dynamic mind maps with intuitive drag-and-drop functionality
- AI-Powered Suggestions: Get intelligent suggestions for expanding your mind maps
- Real-time Collaboration: Share and collaborate on mind maps with team members
- Export Options: Export your mind maps in various formats (PNG, PDF, JSON)
- Responsive Design: Works seamlessly across desktop, tablet, and mobile devices
- Auto-save: Never lose your work with automatic saving functionality
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Custom components with Headless UI
- State Management: React Context
- API Integration: REST API with fetch/axios
- Deployment: Vercel
Before running this project, make sure you have the following installed:
- Node.js (v18 or higher)
- npm, yarn, pnpm, or bun package manager
- Git
-
Clone the repository
git clone https://github.com/srthkdev/mindmap-frontend.git cd mindmap-frontend
-
Install dependencies
npm install # or yarn install # or pnpm install # or bun install
-
Set up environment variables
cp .env.example .env.local
Update the environment variables in
.env.local
:NEXT_PUBLIC_API_URL=your_backend_api_url NEXT_PUBLIC_APP_URL=http://localhost:3000
-
Run the development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open your browser
Navigate to http://localhost:3000 to see the application.
mindmap-frontend/
βββ app/ # Next.js 14 app directory
β βββ components/ # Reusable UI components
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility functions and configurations
β βββ types/ # TypeScript type definitions
β βββ page.tsx # Main page component
βββ public/ # Static assets
βββ styles/ # Global styles and Tailwind config
βββ .env.example # Environment variables template
βββ next.config.js # Next.js configuration
βββ package.json # Dependencies and scripts
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
- Click on the "New Mind Map" button
- Add a central topic/idea
- Use the "+" button to add child nodes
- Double-click on any node to edit its content
- Smart Suggestions: Click the AI icon on any node to get content suggestions
- Auto-completion: Start typing and get AI-powered completions
- Theme Generation: Use AI to generate themed mind maps from a single keyword
- Share your mind map using the share button
- Invite collaborators via email
- See real-time changes from other users
- PNG: High-quality image export
- PDF: Print-ready document format
- JSON: Raw data for integration with other tools
This frontend connects to the MindMap AI backend API. Make sure to:
- Set up the backend server (link to backend repo if available)
- Configure the API URL in your environment variables
- Ensure proper CORS settings for local development
-
Connect your repository to Vercel
- Visit Vercel
- Import your GitHub repository
- Configure environment variables
-
Automatic deployments
- Push to main branch triggers automatic deployment
- Preview deployments for pull requests
- Netlify: Connect repository and set build command to
npm run build
- AWS Amplify: Use the AWS Amplify console to deploy
- Docker: Use the provided Dockerfile for containerized deployment
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow the existing code style and conventions
- Write meaningful commit messages
- Add tests for new features
- Update documentation as needed
This project is licensed under the MIT License. See the LICENSE file for details.
This project was created for the Modus x Hashnode Hackathon. It demonstrates:
- Innovative use of AI in productivity tools
- Modern web development practices
- User-centered design principles
- Scalable architecture patterns
- Author: Sarthak Jain
- GitHub: @srthkdev
- Issues: Report issues
- Modus and Hashnode for organizing the hackathon
- Next.js team for the amazing framework
- Open source community for inspiration and resources
Happy Mind Mapping! π§ β¨