Skip to content

Architecture Overview

Project Structure

torrify/
├── electron/                # Electron main process
│   ├── cad/                 # CAD backend services
│   │   ├── Build123dService.ts
│   │   ├── OpenSCADService.ts
│   │   ├── index.ts
│   │   └── types.ts
│   ├── main.ts              # Main process (IPC, CAD integration)
│   └── preload.ts           # Preload script (context bridge)
├── src/                     # React frontend
│   ├── components/          # React components
│   │   ├── ChatPanel.tsx
│   │   ├── DemoDialog.tsx
│   │   ├── EditorPanel.tsx
│   │   ├── HelpBot.tsx
│   │   ├── PreviewPanel.tsx
│   │   ├── SettingsModal.tsx
│   │   ├── StlViewer.tsx
│   │   └── WelcomeModal.tsx
│   ├── services/
│   │   ├── cad/             # CAD service adapters + tests
│   │   └── llm/             # LLM services + tests
│   ├── App.tsx              # Main application
│   ├── main.tsx             # React entry point
│   └── index.css            # Global styles + Tailwind
├── resources/               # Bundled API context files
├── scripts/                 # Context generation scripts
├── index.html               # HTML template
├── vite.config.ts           # Vite + Electron configuration
└── package.json             # Dependencies and scripts

Tech Stack

  • Electron - Desktop application framework
  • React - UI library
  • TypeScript - Type-safe JavaScript
  • Vite - Build tool and dev server
  • TailwindCSS - Utility-first CSS framework
  • Monaco Editor - VS Code's code editor component

See also:

Released under the GPL-3.0 License.