CanvasAI is an intelligent canvas application inspired by Apple's MathNotes. It allows users to input equations or notes directly on a canvas and processes them using the Gemini API to provide real-time results. Additionally, CanvasAI generates a caption for the hand drawing on the canvas
- Interactive Canvas: Draw or sketch or write equations and notes intuitively.
- Gemini API Integration: Provides accurate responses for mathematical and scientific queries.
- Modern UI: Clean, responsive design powered by TailwindCSS and ShadCN.
- Frontend: Next.js, TailwindCSS, ShadCN
- Backend: Node JS
- API Integration: Gemini API
- Database: Supabase
-
Clone the repository:
git clone https://github.com/MohammedAazam/canvas-ai.git cd canvas-ai -
Install dependencies:
npm install
-
Set up environment variables in a
.envfile:NEXT_PUBLIC_API_KEY=your_gemini_api_key BACKEND_URL=http://localhost:8080
-
Start the development server:
npm run dev
-
Run the backend:
- Navigate to the backend directory.
- Run the application using your IDE or
npm run dev.
- Open your browser and navigate to
http://localhost:3000. - Use the canvas to write or draw equations.
Frontend:
/: Main canvas page
Backend:
POST /api/solve: Processes input equations via Gemini API.
We welcome contributions! To get started:
- Fork this repository.
- Create a new branch:
git checkout -b feature-name. - Commit your changes:
git commit -m 'Add feature'. - Push the branch:
git push origin feature-name. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or feedback, please contact us at mohammedaazam757@gmail.com.