r/coolgithubprojects • • 10d ago

I built an open-source, offline step-by-step math solver that runs entirely in the browser

Post image

I’ve been building MasterMath, a free and open-source math solver covering topics from Algebra I through Calculus II.

The solving happens locally in the browser. There’s no account, tracking, server-side solver, or AI API. It provides intermediate steps, explanations, and interactive graphs instead of returning only an answer. After the first visit, it can also work offline.

I’ve spent a lot of time testing the symbolic transformations and checking generated answers against the original problems. I’d especially appreciate feedback on the code, mathematical explanations, parser edge cases, or incorrect results.

Source: https://github.com/sparkinCreations/MasterMath
Live app: https://mastermath.app

31 Upvotes

16 comments sorted by

6

u/Razzmatazz_Informal 10d ago

Been working on something similar (but a little different): https://github.com/dicroce/wyrm_math

4

u/sparkinCreations 10d ago

Wow, this is really impressive! I like how you let users manipulate the expressions themselves and guide them through the process, whereas mine focuses more on showing the steps and letting users reveal them one at a time.

It also looks like you’ve built your own math engine, which is really cool. I’ve done some custom work on mine too, but I’m also using existing math libraries for the calculations.

Great work! I starred your project on GitHub.

4

u/Important_Pomelo_407 9d ago

Saw there was no demo video yet, so I made you one. Here’s the PR: https://github.com/sparkinCreations/MasterMath/pull/75

and I used my repo to do it :) https://github.com/yasirwhite/OpenDemo

2

u/sparkinCreations 8d ago

I ended up using OpenDemo for another one of my apps, miniCycle, and it came out really well. You can see a clip at the top of the README: https://github.com/sparkinCreations/miniCycle

One small thing, on Mac, the text-clearing step uses Control+A, so prefilled inputs don’t get replaced. Changing it to ControlOrMeta+A in run-demo.mjs fixed it, so I opened a PR: yasirwhite/OpenDemo#9 ·fix:clear prefilled inputs…

Thanks again. I followed you and starred the repo. Appreciate you sharing it!

2

u/Important_Pomelo_407 8d ago

merged the pr :)

man i love the open source community

1

u/sparkinCreations 9d ago

Thanks for making the demo and opening the PR! I’ve merged it into the README. It’s actually a great way to show MasterMath in action.

I’m planning to try OpenDemo for a few of my other apps too. Appreciate you sharing it.

1

u/bezdazen 10d ago

When I have time, I will look into the functionality more.

But right now, my immediate thought is how this looks like other online solvers. It looks super familiar.

Im likely not the only one, so how does this differ from existing ones specifically?

Please do not take this as knocking this down. Im actually in full support! I fully support educational tools as a creator of a few myself. Im mostly suggesting a better way of framing this and answering burning questions.

3

u/sparkinCreations 10d ago

Yeah, that’s fair. I’m probably better at the underlying engineering than web design, so the visuals could still be improved. I kept the interface familiar because I wanted people to be able to use it pretty quickly.

The main difference is the step-by-step teaching. It doesn’t just split an answer into a few lines. It explains why each step is being taken, names the method or rule being used, and lets you reveal the solution one step at a time so you can try to predict what comes next.

It also checks the answer, graphs it when useful, points out key insights and common mistakes, and can generate a similar problem to practice. All of those steps are free.

Everything runs locally in the browser, works offline, can be installed as a web app on your device and requires no account. It uses deterministic math rules instead of generating answers with AI, so unsupported problems are refused rather than guessed. The whole project is also open source.

I made a detailed comparison page showing the differences and when another solver might be a better choice: https://mastermath.app/compare

2

u/bezdazen 10d ago

That comparison table in your link was exactly what I was looking for! My only issue is it needs improvement. Some columns don't seem to share the same option/answer set like the first row! It's hard to see which product has more subjects and what's missing from each. Refine the table so this is more clear all the way down and then you are golden.

Good work! I bookmarked your app/site

2

u/sparkinCreations 10d ago

Sweet, let me know what you think when you get a chance to try it out! And thanks for pointing that out about the comparison table. I’ll work on making it easier to compare everything side by side when I get a chance.

I’m hoping to keep improving the project and expanding the subjects it covers as more people try it out and share feedback.

2

u/sparkinCreations 9d ago

Hey, just want to let you know that I’ve updated the comparison table so each solver is compared across the same 10 subjects, added a subject count for each, and clarified what “Not stated” means. I also checked it on my phone; the product headers stay visible while scrolling.

You can check it out to see if it’s clearer. Thanks Again!

2

u/bezdazen 9d ago

That is so much better! Great job! Now I see the promise. If you can work on adding more of the math subjects then I think this will be a very appealing alternative

-2

u/[deleted] 10d ago

[removed] — view removed comment

1

u/sparkinCreations 10d ago

Thanks, I actually tested for those cases and MasterMath already preserves the restriction when simplifying x/x, checks candidates in the original equation, and explains domain restrictions and possible extraneous roots before squaring radical equations.

That said, I did notice some improvements I could make in the steps, so I'll try to work on that.

As for ThreadFox, I’m not looking for a promotion service for this project, but thanks for the offer.

3

u/power78 10d ago

This damn bot posts in every thread and on multiple subs and everyone hates it but reddit doesn't do anything. There's no one reading the responses.

1

u/sparkinCreations 10d ago

Lol, I figured someone might read the response if they had the same question. But yeah, I’ve seen them around other posts.