How marmargames/calcforge works
CalcForge is a desktop calculator whose workflow runs from expression entry or history selection through evaluation, then displays a formatted result and learning insights. Users can also change angle and exponent-association modes; trigonometric expressions update the unit-circle indicator. The graph separates the Electron shell, interaction panels, calculation and explanation logic, and supporting state. The README lists broad mathematical capabilities, but unsampled files and the HTML wiring were not inspected, so some internal links and feature details are omitted rather than inferred.
Main entry points: app.js App orchestrator · input-panel.js Expression input · result-panel.js Result and circle · insight-panel.js Insight panel
Components 13
Desktop shell
- Electron window
main.js - Calculator document
index.html
Calculator interface
- App orchestrator
app.js - Expression input
ui/input-panel.js - Result and circle
ui/result-panel.js - Insight panel
ui/insight-panel.js
Calculation and learning
- Expression evaluator
core/evaluator.js - Result formatter
core/formatter.js - Step explanations
core/steps.js
State and assistance
- Display and angle modes
modules/modes.js - Calculation history
modules/history.js - Input suggestions
modules/suggestions.js
Other components
- Calculator user
Connections 20
- Electron window → Calculator document: loads
main.js - Calculator user → Expression input: enters expressions
ui/input-panel.js - App orchestrator → Expression input: initializes
app.js - App orchestrator → Result and circle: initializes
app.js - Expression input → App orchestrator: submits expressions
app.js - App orchestrator → Expression evaluator: evaluates
app.js - Expression evaluator → Result formatter: formats via
core/evaluator.js - App orchestrator → Result and circle: shows outcomes
app.js - App orchestrator → Calculation history: records results
app.js - App orchestrator → Expression input: renders history
app.js - Expression input → Calculation history: reads entries
ui/input-panel.js - Expression input → Input suggestions: gets suggestions
ui/input-panel.js - Result and circle → Display and angle modes: sets angle mode
ui/result-panel.js - App orchestrator → Display and angle modes: reads modes
app.js - App orchestrator → Insight panel: renders insights
app.js - Insight panel → Step explanations: gets explanations
ui/insight-panel.js - Insight panel → Display and angle modes: reads display mode
ui/insight-panel.js - Step explanations → Result formatter: formats steps
core/steps.js - Result and circle → Expression evaluator: checks alternatives
ui/result-panel.js - Calculator user → Result and circle: changes settings
ui/result-panel.js