Features โข Showcase โข Tech Stack โข Getting Started โข Performance โข Developer
AskMath is a high-performance, responsive mathematics workspace and problem-solving application engineered for students, educators, and researchers. It bridges modern web engineering with rich educational toolingโoffering multi-modal mathematical input (Text, Image/OCR scan, Handwriting, MathLive LaTeX keyboard, and Web Speech API voice input), step-by-step AI-assisted problem breakdowns, an interactive 2D canvas graphing calculator, and an adaptive practice & quiz generation suite.
Built with a clean Vanilla JavaScript (ES6+) architecture, Tailwind CSS v4, and Vite 6, AskMath delivers instantaneous load times, fluid 60 FPS graph rendering, and an intuitive dark/light mode user experience across all device form factors.
- Multi-Input Channels: Enter equations via standard text, interactive MathLive virtual keyboard, image upload (OCR photo scan), canvas handwriting, or voice speech recognition.
- LaTeX Math Rendering: High-fidelity mathematical notation rendering powered by MathJax.
- Topic Coverage: Comprehensive support for:
- Algebra (Linear, Quadratic, Polynomials, Systems of Equations)
- Calculus (Derivatives, Integrals, Limits, Series)
- Trigonometry (Identities, Angles, Graphs)
- Geometry, Statistics & Word Problems
- Step-by-Step Breakdown: Detailed logical breakdown of each problem-solving phase to deepen conceptual understanding.
- Dynamic Expression Engine: Plot single or multiple functions simultaneously (polynomials, trigonometric, logarithmic, exponential, and power functions).
- Smooth Canvas Controls: Pan, zoom, coordinate auto-fit, and customizable Cartesian grid resolution.
- Export & Share:
- ๐ท Export as PNG: High-resolution canvas snapshot generation.
- ๐พ Export as JSON: Save graph configurations and equations.
- ๐จ๏ธ Print View: Formatted workspace layout for physical printouts.
- Customizable Problem Sets: Tailor practice tests with configurable question volumes, difficulty tiers, and topic filters.
- Scenario Workflows: Dedicated templates for Classroom Learning, Independent Homework Practice, and Personalized Tutoring.
- Instant Drafts & PDF Export: Generate printable quiz sheets and worksheets on demand.
- Quick Utility Drawer: In-app arithmetic and scientific operations integrated directly with the primary solver workspace.
- Voice Recognition (Web Speech API): Dictate complex mathematical queries with real-time feedback and microphone status indicators.
- Dual Theme Support: System-aware and persistent Light & Dark themes.
- Responsive Layout: Collapsible sidebar navigation for desktop and a drawer for mobile views.
- Accessible Iconography: Clean, lightweight Lucide Icons integration with scoped rendering.
| ๐งฎ AI Problem Solver | ๐ Practice & Quiz Generator |
|---|---|
![]() |
![]() |
| Step-by-Step Solution & OCR Input | Customizable Practice & Test Engine |
| ๐ OCR & Scan Recognition | ๐ Step-by-Step Solutions |
|---|---|
![]() |
![]() |
| Image-to-Equation Processing | Deep Conceptual Explanations |
| Category | Technology | Description |
|---|---|---|
| Core Architecture | Vanilla JavaScript (ES6+) | Zero-framework runtime for optimal speed and minimal memory footprint |
| Markup & Semantics | HTML5 | Semantic, accessible structure with ARIA-compliant attributes |
| Styling & Design | Tailwind CSS v4 | Next-generation utility-first styling with modern CSS variables |
| Build & Bundling | Vite 6 | Lightning-fast HMR and optimized tree-shaken production bundles |
| Math Input Engine | MathLive | Interactive virtual mathematical keyboard and LaTeX editor |
| LaTeX Typesetting | MathJax 3 | High-precision mathematical formula and equation rendering engine |
| Graphics & Visualization | HTML5 Canvas API | Hardware-accelerated 2D Cartesian plane rendering |
| Voice Interface | Web Speech API | Browser-native voice recognition for verbal mathematical input |
| Icons & Media | Lucide Icons & WebP | Modern icon system and compressed next-gen image assets |
AskMath/
โโโ images/ # Next-gen WebP feature banners, avatars & icons
โโโ src/
โ โโโ js/
โ โ โโโ main.js # Core application logic, solvers, graph canvas & UI
โ โโโ input.css # Tailwind CSS v4 design tokens and custom utilities
โโโ index.html # Main semantic application entry point
โโโ package.json # Project scripts and dependencies
โโโ vite.config.js # Vite build configuration and plugins
โโโ .gitignore # Git exclusions
โโโ README.md # Project documentation
Follow these steps to set up the project locally on your machine.
Ensure you have the following installed:
-
Clone the Repository
git clone https://github.com/muhammad-usman-web-dev/askmath.git cd askmath -
Install Dependencies
npm install
-
Start the Development Server
npm run dev
Open your browser and navigate to
http://localhost:5173.
| Command | Description |
|---|---|
npm run dev |
Launches the local Vite development server with Hot Module Replacement (HMR) |
npm run tw |
Starts Vite and automatically opens the application in your default browser |
npm run build |
Compiles and optimizes assets into the dist/ directory for production |
npm run preview |
Locally serves and previews the generated production build |
- Zero Heavy Framework Overhead: Built with clean Vanilla JavaScript, avoiding excessive virtual DOM diffing and keeping the initial payload lightweight.
- Optimized Canvas Rendering: The 2D graphing engine uses
requestAnimationFrameand memoized expression AST compilation to eliminate redundant repaints during pan and zoom gestures. - Next-Gen Asset Pipeline: All image assets are formatted as compressed WebP with predefined layout dimensions to achieve near-zero Cumulative Layout Shift (CLS).
- Non-Blocking LaTeX Processing: MathJax typesetting requests are queued and throttled to ensure UI responsiveness during real-time mathematical typing.
- Scoped Icon Rendering: Dynamic Lucide icon instantiation targets specific DOM subtrees to prevent full-page DOM traversals.
This application was created by Muhammad Usman as an engineering project developed during an internship at Csoft, demonstrating core competencies in frontend architecture, mathematical computing, responsive design systems, and performance optimization.
- Developer: Muhammad Usman
- Role: Frontend Development Intern
- Organization: Csoft (Powered by Csoft)
Distributed under the MIT License. See LICENSE for more information.



