How leoorellanad/anki-card-creator works
Project type and purpose
• This is an Electron-based desktop application with a React + TypeScript + Vite front end and a Node/Electron main process for backend logic.
• From the file tree and README we see:
• src/ui → React UI, Vite build, Tailwind CSS, i18n
• src/electron → Electron main process, SQLite DB access, IPC handlers, services (Anki, TTS, user, card, language)
• app.db → local SQLite database
• electron-builder.json → packaging config
File structure
• Top-level:
• package.json, tsconfig*.json, tailwind.config.ts, vite.config.ts
• index.html → shell for React/Vite renderer
• src/ui (renderer process):
• App.tsx, pages, components, context, hooks, services (configService)
• i18n integration
• src/electron (main process + preload):
• main.ts → bootstraps BrowserWindow and preload script
• preload.cts → exposes safe IPC APIs to renderer
• ipc/*Handler.ts → map incoming IPC calls to service methods
• services/*.ts → business logic and external integrations
• db/*.ts → database initialization & connection
• models/*.ts → TypeScript ORM-style models
• utils/ → audio, logging, config helpers
Extract additional insights from the README
• The README is the standard Vite + React template documentation, confirming:
• React with Fast Refresh via @vitejs/plugin-react
• TypeScript and ESLint setup