How martinsdesiqueiraigor-art/casillas_app_2 works
Casillas 2.0 is a browser-based machining calculator PWA. Users enter through authentication, the app checks trial or commercial entitlement, then routes them to local technical calculators, CNC code generation, reference tables, and guidance; calculations do not require a server. The app also provides CNC consulting and offline resource caching. The graph preserves the documented feature set, while some module-to-calculator links rely on the SOURCE INDEX; unsampled commercial and offline details are represented only where documented.
Main entry points: app.js App router · trial.js Trial and licensing · auth-page.js Authentication screen · auth.js Supabase Auth client
Components 34
Access and entitlement
- Authentication screen
js/auth-page.js - Supabase Auth client
js/auth.js - Supabase SDK
js/supabase.bundle.js - Trial and licensing
js/trial.js - Supabase commercial RPCs
Application runtime
- App router
js/app.js - State and persistence
js/state.js - Local database
js/db.js - Navigation menu
js/menu.js - SVG icons
js/icons.js - Input keyboard
js/keyboard.js - UI utilities
js/utils.js
Machining calculators
- Trigonometry UI
js/modules/trig.js - Trigonometry calculations
js/calc/trig.js - Taper UI
js/modules/coni.js - Taper calculations
js/calc/coni.js - Polygon UI
js/modules/poly.js - Polygon calculations
js/calc/poly.js - Circular drilling UI
js/modules/furos.js - Drilling calculations
js/calc/furos.js - Thread UI
js/modules/rosca.js - Thread calculations
js/calc/rosca.js - ISO tolerance UI
js/modules/tol.js - Tolerance calculations
js/calc/tol.js - Tolerance tables
js/data/tolerancias.js - Cutting power UI
js/modules/potencia.js - Cutting power calculations
js/calc/potencia.js - Keyway UI
js/modules/chaveta.js - Keyway calculations
js/calc/chaveta.js - DIN 6885 key tables
js/data/chavetas.js
CNC tools and guidance
- CNC code generator UI
js/modules/prog.js - G-code generation
js/calc/gcode.js - CNC programming guide
js/modules/guia.js
Other components
- Machining professional
Connections 34
- Machining professional → Authentication screen: signs in
README.md - Authentication screen → Supabase Auth client: uses Auth
js/auth-page.js - Supabase Auth client → Supabase SDK: calls Auth
js/auth.js - Machining professional → App router: opens app
README.md - App router → Trial and licensing: checks access
js/app.js - Trial and licensing → Supabase SDK: checks entitlement
js/trial.js - Trial and licensing → Supabase commercial RPCs: calls RPCs
README.md - App router → Local database: initializes
js/app.js - App router → State and persistence: loads and saves
js/app.js - State and persistence → Local database: reads and writes
js/state.js - App router → Navigation menu: initializes routing
js/app.js - App router → Input keyboard: initializes inputs
js/app.js - Navigation menu → SVG icons: renders icons
js/menu.js - App router → Trigonometry UI: loads module
js/app.js - App router → Taper UI: loads module
js/app.js - App router → Polygon UI: loads module
js/app.js - App router → Circular drilling UI: loads module
js/app.js - App router → Thread UI: loads module
js/app.js - App router → ISO tolerance UI: loads module
js/app.js - App router → Cutting power UI: loads module
js/app.js - App router → Keyway UI: loads module
js/app.js - App router → CNC code generator UI: loads module
js/app.js - App router → CNC programming guide: loads module
js/app.js - Trigonometry UI → Trigonometry calculations: calculates with
js/modules/trig.js - Taper UI → Taper calculations: calculates with
js/modules/coni.js - Polygon UI → Polygon calculations: calculates with
js/modules/poly.js - Circular drilling UI → Drilling calculations: calculates with
js/modules/furos.js - Thread UI → Thread calculations: calculates with
js/modules/rosca.js - ISO tolerance UI → Tolerance calculations: calculates with
js/modules/tol.js - Tolerance calculations → Tolerance tables: reads table
js/calc/tol.js - Cutting power UI → Cutting power calculations: calculates with
js/modules/potencia.js - Keyway UI → Keyway calculations: calculates with
js/modules/chaveta.js - Keyway calculations → DIN 6885 key tables: reads table
js/calc/chaveta.js - CNC code generator UI → G-code generation: generates code
js/modules/prog.js