DEV Community

Cover image for CrackIt: Big Equations, Broken into Small Pieces (Built for My Brother)
Ch Yasaswini
Ch Yasaswini

Posted on Originally published at crackit-ch8e.onrender.com AI-assisted

CrackIt: Big Equations, Broken into Small Pieces (Built for My Brother)

Hacktoberfest Weekend Challenge: Build for a Friend Submission ๐Ÿค

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend

๐Ÿ’ก What I Built

My younger brother is a diploma student in petrochemical engineering. Every evening, he sits with thick textbooks filled with dry, heavy equations like the Ergun Equation, Bernoulli's Principle, and Raoult's Law.

Like many engineering students, he gets bored and overwhelmed by abstract derivations. When you're trying to understand how a packed catalyst bed in an oil hydrotreater works, looking at this:

ฮ”PL=150ฮผ(1โˆ’ฯต)2vsฯต3dp2+1.75ฯ(1โˆ’ฯต)vs2ฯต3dp \frac{\Delta P}{L} = \frac{150\mu(1-\epsilon)^2 v_s}{\epsilon^3 d_p^2} + \frac{1.75\rho(1-\epsilon)v_s^2}{\epsilon^3 d_p}

...feels completely disconnected from real plant operations.

So for the Hacktoberfest "Build for a Friend" Weekend Challenge, I built CrackIt: an engineering equation interpreter designed like a friendly senior explaining over a cup of chai.

CrackIt breaks heavy formulas into small, practical pieces:

  1. ๐ŸŽฏ What It's For: One clear sentence connecting the formula to real plant equipment (distillation towers, hydrotreaters, heat exchangers).
  2. ๐Ÿ”ค Crack the Symbols: Every symbol in plain words with its engineering units, plus an Interactive Focus picker.
  3. โœ๏ธ Worked Example: Calculations broken into 3 to 5 clean steps with round numbers.
  4. ๐Ÿงช Try It Live (Interactive Calculator): A live numeric playground where students tweak parameters (flow rates, particle size, void fraction) and watch outputs recalculate in real time.
  5. ๐Ÿ’ก What Happens If...?: Real plant intuition, e.g. "Smaller catalyst particles create a substantially higher pressure drop due to the dp2d_p^2 term in the denominator."
  6. ๐ŸŽฏ Practice Challenge & AI Feedback: Practice problems with an answer checker powered by Google's open-weight Gemma 3 4B.

๐ŸŒ Live Demo & Code

GitHub logo Yasaswini-ch / CrackIt

Big equations, broken into small pieces.

โš—๏ธ CrackIt

Big equations, broken into small pieces.

CrackIt Dashboard

Built for my brother, a diploma student in petrochemical engineering who finds heavy maths boring CrackIt takes an engineering equation and breaks it into small, friendly parts, with a petrochemical plant example every time, and lets you play with the numbers live.


๐ŸŒ Live Demo & Deployment


What it does

Type an equation name (or pick a quick card, or upload a photo of your notes) and CrackIt shows:

  1. The formula, rendered properly (Ergun's viscous and inertial terms are colour-labelled)
  2. What it's for, with a real plant example
  3. Crack the Symbols, a table of every symbol, its meaning and its unit, plus an Interactive Focus picker for any one symbol
  4. Worked example, small round numbers, one step per line
  5. Try it live, a calculator pre-filled with the worked-example values. Change aโ€ฆ

๐Ÿ“ธ Screenshots & Walkthrough

1. The Equation Dashboard

Midnight Navy and Off-White interface with Inter and STIX Two Math typography.

CrackIt Dashboard

Students can:

  • Type in any equation name (e.g. "Ergun equation", "Q = mCpฮ”T", or "Bernoulli").
  • Upload textbook photos to have the vision model identify the formula.
  • Click any of the 10 quick-start cards spanning fluid dynamics, heat transfer, kinetics, and thermodynamics.

2. The Learning Workspace

Semantic color highlights: viscous contribution in Soft Blue (#EAF3FF) vs. inertial contribution in Soft Violet (#F1ECFF).

CrackIt Workspace Top

3. Step-by-Step Breakdown, Symbols & Worked Example

Every variable cataloged with physical units, followed by sequential numeric walkthroughs.

CrackIt Details


๐Ÿ› ๏ธ How I Built It

CrackIt is built around two principles: deterministic physical accuracy and open-weight AI guidance. The numbers always come from plain Python, and the AI only explains and checks.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      Browser UI: Gradio 6                       โ”‚
โ”‚      (Inter Typography + STIX Two Math + KaTeX Rendering)       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                โ–ผ                                 โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚      Deterministic Core       โ”‚ โ”‚     Open-Weight AI Tutor      โ”‚
โ”‚    (Pure Python / Offline)    โ”‚ โ”‚    (Gemma 3 4B via Ollama)    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ€ข 10 Petrochemical Formulas   โ”‚ โ”‚ โ€ข AI Practice Answer Checker  โ”‚
โ”‚ โ€ข Step-by-Step Walkthroughs   โ”‚ โ”‚ โ€ข Multimodal Vision Reader    โ”‚
โ”‚ โ€ข Real-time Live Calculator   โ”‚ โ”‚ โ€ข Cloud Fallback (Backboard)  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Enter fullscreen mode Exit fullscreen mode

1. The Open-Weight AI Core: Gemma 3 4B & Ollama

On local laptops, CrackIt runs fully offline via Ollama using Google's gemma3:4b:

  • Why open-weight AI? Students often study with limited bandwidth or in offline libraries. Gemma runs privately on consumer laptop hardware with zero API fees.
  • Multimodal equation recognition: Gemma's vision encoder reads textbook snapshots and identifies formulas directly.
  • Pedagogical tutor mode: Gemma checks student practice answers, explaining math or unit mistakes in at most two friendly sentences.

2. Live Cloud Deployment on Render

The application is deployed on Render as a Python web service using a render.yaml blueprint with automated port binding and dynamic environment handling.

3. Cloud Fallback & Prompt Evaluation via Backboard

So the live Render demo stays responsive for judges even without a local Ollama daemon, I integrated Backboard as a cloud inference gateway, evaluating prompts across open-weight models (google/gemma-2-9b-it).

4. Industrial Design System

Instead of generic AI gradients, CrackIt uses an engineering palette:

  • 90% Baseline: Midnight Navy (#14263D), Deep Navy (#172B45), and Off-White (#F8FAFC).
  • Semantic Accents: Viscous laminar contribution in Engineering Blue (#2F80ED / #EAF3FF) and turbulent inertial contribution in Violet (#7C5CDB / #F1ECFF).
  • Typography: Inter for clean UI paired with STIX Two Math for proper mathematical typesetting.

๐ŸŒ Why Does Open Innovation Matter?

Engineering education shouldn't be locked behind expensive proprietary cloud subscriptions that track student data.

Open-weight models like Gemma show that a compact 4-billion-parameter model on a modest laptop can work as a personal chemical engineering tutor. When AI is open and runs locally:

  • Students with limited connectivity can still use AI study tools.
  • Plant engineers can run proprietary calculations without data leaving their laptops.
  • Learners are not dependent on closed API providers.

๐Ÿค– My Agent Session

CrackIt was built with the help of an autonomous AI pair-programmer. From resolving Windows Hyper-V port exclusion conflicts, to refactoring Gradio 6 lifecycle hooks, to implementing the deterministic calculation engine and custom CSS design tokens, the agent and I worked through it together. You can explore the full commit history in the GitHub Repository.


๐Ÿ† Prize Categories Entered

  1. Overall Winner: Theme: Build for a Friend (built for my brother studying petrochemical engineering)
  2. Featured Partner: Render: Deployed live on Render Web Services
  3. Featured Partner: Gemma: Powered by Google's open-weight Gemma models (gemma3:4b locally, Gemma cloud via Backboard)
  4. Partner Category: Backboard: Open-weight inference routing and prompt benchmarking
  5. Partner Category: Entire: Agent-assisted pairing session and documented build trajectory


๐Ÿง‘โ€๐ŸŽ“ The Verdict From My Brother

After testing it, my brother gave his ultimate engineering stamp of approval:

"I'm satisfied, but the pen and paper stays!"

That is exactly the right answer. CrackIt doesn't replace the notebook. It makes the math inside it actually make sense.

Built with โค๏ธ for my brother and engineering diploma students everywhere.

Top comments (0)