AI-powered desktop application built with Next.js + Electron.
- Next.js 15 — App Router, API Routes, React Server Components
- Electron — Desktop distribution (macOS / Windows / Linux)
- TypeScript — Type safety across the stack
- Tailwind CSS v4 — Utility-first styling
- Motion — Animations
- OpenRouter — AI model gateway
- Node.js >= 18
- npm >= 9
npm installCopy the example env file and add your OpenRouter API key:
cp .env.example .env.localEdit .env.local and set OPENROUTER_API_KEY.
Web mode (Next.js only):
npm run devDesktop mode (Next.js + Electron):
npm run electron:devWeb:
npm run buildDesktop:
npm run electron:build├── electron/ # Electron main + preload
│ ├── main.js
│ └── preload.js
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── api/ # Server-side API routes
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── components/ # Shared React components
│ ├── lib/ # Utilities (OpenRouter client, etc.)
│ └── types/ # TypeScript declarations
├── public/ # Static assets
└── package.json