How codefen/codefend-user works
Project type and purpose
• This is a multi-platform frontend application:
• A web UI built in React + Vite (TypeScript)
• A desktop wrapper via Tauri (Rust)
• It does not contain its own backend code but calls external REST APIs and uses Tauri to access OS-level capabilities.
File structure
• Top-level folders:
• public/ – static assets (images, fonts, TinyMCE scripts)
• src/ – web‐app source
– app/ – React application (constants, data layer, router, views)
– editor-lib/ – wrappers and types for TinyMCE
– main.tsx, vite.config.ts, tsconfig.json – bootstrapping and build
• src-tauri/ – Rust code for the desktop version (Cargo.toml, main.rs, parser.rs, build.rs, tauri.conf.json)
• CI/CD configuration in .github/workflows for web, macOS, Linux, Windows and release automation
• Environmental and linting configs (.env example, ESLint, Prettier, Stylelint, Husky, commitlint)
Extract architecture insights from README
• Uses Node.js 22, PNPM (or NPM)
• .env file for runtime configuration
• npm start spins up the Vite dev server
• Tauri provides desktop bundling