How avadali1/cstar-app works
CSTAR is a cross-platform preliminary liquid-rocket-engine design app. The main user workflow, documented as engine sizing, begins in the workspace UI and uses propellant selection/evaluation; database-backed engineering and material-study subsystems support the broader product capabilities. Source excerpts show some engine interactions directly, while nozzle generation, thermal analysis, and platform synchronization are documented but not fully sampled, so those links are marked unverified where appropriate.
Main entry points: index.tsx Design workspace · _layout.tsx App shell · usePropellantDatabase.ts Propellant workflow · propellants.ts Pair evaluation
Components 23
Design workspace
- Design workspace
src/app/index.tsx - Engine sizing
src/app/index.tsx - Nozzle geometry
src/app - Thermal analysis
src/app
Propellant engineering
- Propellant workflow
src/engine/usePropellantDatabase.ts - Pair evaluation
src/engine/propellants.ts - Compatibility checks
src/engine/compatibility.ts - Performance lookup
src/engine/performanceRepository.ts - Performance interpolation
src/engine/interpolation.ts - Design rule checks
src/engine/designRuleRunner.ts - Rule evaluator
src/engine/designRuleEvaluator.ts - Design rule repository
src/engine/designRuleRepository.ts - Engineering database
src/engine/database.ts - SQLite database asset
assets/database/cstar.db
Materials studies
- Material blend studies
src/engine/MaterialBlendBuilder.tsx - Blend calculations and storage
src/engine/materialBlendRepository.ts
App and platform services
- Web database snapshot
public/cstar-web-data.json - Web database sync
src/engine/webDatabaseSync.ts - Release notes state
src/providers/ReleaseNotesProvider.tsx - Release notes storage
src/engine/releaseNotesRepository.ts - What's new modal
src/components/WhatsNewModal.tsx - App shell
src/app/_layout.tsx
Other components
- Designer
Connections 23
- Designer → Design workspace: uses
README.md - Design workspace → Propellant workflow: loads and evaluates
src/engine/usePropellantDatabase.ts - Propellant workflow → Engineering database: loads propellants
src/engine/usePropellantDatabase.ts - Propellant workflow → Compatibility checks: checks compatibility
src/engine/usePropellantDatabase.ts - Propellant workflow → Pair evaluation: evaluates pair
src/engine/usePropellantDatabase.ts - Pair evaluation → Compatibility checks: uses compatibility
src/engine/propellants.ts - Pair evaluation → Performance lookup: gets performance
src/engine/propellants.ts - Performance lookup → Performance interpolation: interpolates data
src/engine/interpolation.ts - Design workspace → Engine sizing: supports sizing
README.md - Design workspace → Design rule checks: runs checks
- Design rule checks → Design rule repository: loads rules
src/engine/designRuleRunner.ts - Design rule checks → Rule evaluator: evaluates rules
src/engine/designRuleRunner.ts - Designer → Material blend studies: creates blend studies
README.md - Material blend studies → Blend calculations and storage: delegates blend work
src/engine/MaterialBlendBuilder.tsx - Design workspace → Nozzle geometry: generates geometry
- Design workspace → Thermal analysis: performs analysis
- App shell → Engineering database: initializes
src/app/_layout.tsx - App shell → SQLite database asset: opens database
src/app/_layout.tsx - Engineering database → Web database sync: syncs snapshot
src/engine/database.ts - Web database sync → Web database snapshot: reads snapshot
- App shell → Release notes state: provides release state
src/app/_layout.tsx - Release notes state → Release notes storage: loads and marks seen
src/providers/ReleaseNotesProvider.tsx - App shell → What's new modal: renders modal
src/app/_layout.tsx