[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107940":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":14,"starSnapshotCount":14,"syncStatus":13,"lastSyncTime":35,"discoverSource":36},107940,"desktop-app-starter","hassancs91\u002Fdesktop-app-starter","hassancs91","Free Electron + React + TypeScript starter for building desktop apps with Claude Code",null,"TypeScript",69,55,2,0,1,5,18,4,51.54,"MIT License",false,"main",true,[25,26,27,28,29,30],"boilerplate","claude-code","desktop-app","electron","react","typescript","2026-10-18 10:49:29","2026-11-22 08:31:44","# Desktop App Starter\n\nA free starter for building desktop apps with Claude Code. Electron 41, React 19, TypeScript and\nTailwind 4, and it already runs.\n\n![The Desktop App Starter home screen](docs\u002Fimages\u002Fhome.png)\n\nOpen the folder in Claude Code and ask for a screen in plain words. Claude reads `CLAUDE.md` first,\nreuses the pieces that are already here, adds your feature the way the rest of the app is built, and\nwrites a test. It doesn't have to rebuild the window, the bridge, the settings or the components for\nevery new app.\n\nMIT licensed. Use it for anything, including apps you sell.\n\nWant license keys, code signing and auto-update too? That's the\n[full Desktop App Boilerplate](https:\u002F\u002Flearnwithhasan.com\u002Fboilerplates\u002Felectron-starter-template\u002F),\nalso included in my course [Build With AI 1.0](https:\u002F\u002Flearnwithhasan.com\u002Fcourses\u002Fbuild-with-ai-10\u002F).\n[See what's different](#free-vs-full).\n\n## What's inside\n\n- **The window.** Title bar, sidebar and status bar. A new screen is one line in a registry.\n- **6 themes.** System, light, dark, slate, midnight and high contrast.\n- **Settings** that persist, typed and checked with Zod.\n- **API key storage by the OS.** Your key is encrypted with Electron `safeStorage` and never reaches the UI.\n- **Claude, ready to call.** `askClaude`, `streamClaude` and `askClaudeJson` in the main process, on the\n  official `@anthropic-ai\u002Fsdk`. The default model is Claude Opus 5.5.\n- **21 ready components**, plus 8 layout and 3 motion pieces: buttons, inputs, select, table, modal,\n  confirm dialog, toasts, tabs, tooltips and more. They're all on the Components screen.\n- **Your files.** File and folder pickers, drag and drop, and a file service that only touches what the\n  user picked.\n- **A safe bridge.** Main, preload and UI are split, and every message between them is typed and checked.\n- **Installer builds for Windows, Mac and Linux**, wired in.\n- **CLAUDE.md.** The rules Claude Code reads before it writes anything, so every screen lands in the\n  same structure.\n- **Generators and checks.** `npm run new:feature` and `npm run new:ipc` write the wiring for you.\n  TypeScript strict, ESLint, Vitest and a GitHub Actions file.\n\n## Quick start\n\nYou need [Node.js](https:\u002F\u002Fnodejs.org) 20.19+ or 22.12+.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fhassancs91\u002Fdesktop-app-starter.git my-app\ncd my-app\nnpm install\nnpm run setup\nnpm run dev\n```\n\nThe app opens. Go to the **AI** screen and paste your Claude API key once\n([get one here](https:\u002F\u002Fplatform.claude.com\u002Fsettings\u002Fkeys)). Your operating system stores it encrypted.\n\nThe starter is free. The model isn't: every call is billed to your own Anthropic key. A sort like the\none in the video costs cents (the run below: 28 files, about $0.04).\n\n## Your first feature, with one prompt\n\nOpen the folder in Claude Code and give it this. It's the exact prompt from the video:\n\n> Add a screen called Desk Cleaner. The user drops a folder onto the window or picks one; default to their Downloads folder. Show every file as a card with its type icon, name, size and age, animated in. Send the file names, sizes and the first 300 characters of any text file to Claude in one request and ask it to group them into 5 to 8 plain-English categories and suggest a clean file name for each, with a one-line reason. Animate the cards flying into their category columns; let me drag a card to another column. A Clean up button moves and renames the files after a confirm dialog, with a progress bar and a notification when done. Nothing moves before Clean up. Follow the way the rest of this app is built, and write a test for the categorization service.\n\n![The Desk Cleaner screen after one prompt: files sorted into category columns, each with a suggested new name](docs\u002Fimages\u002Fdesk-cleaner.png)\n\nIn my test runs Claude Code took between 22 and 28 minutes on this prompt. When it's done, check its\nwork:\n\n```bash\nnpm run typecheck && npm run lint && npm run test\n```\n\nThe app this prompt builds sends file names, sizes and the first 300 characters of each text file to\nAnthropic, using your key.\n\n## CLAUDE.md and AGENTS.md\n\n`CLAUDE.md` tells the agent where every kind of code goes. A new screen is a folder under\n`src\u002Ffeatures\u002F` plus one line in `src\u002Frenderer\u002Fscreens-registry.ts`. File and AI calls live in the main\nprocess. Every IPC channel touches the same five places. Every feature gets a test. It also lists the\nmistakes AI agents make most often in a codebase like this one.\n\nUsing Codex? It reads `AGENTS.md`, which sends it to the same rules in `CLAUDE.md`. There's only one file\nto keep up to date.\n\n## Build an installer\n\n```bash\nnpm run build:win     # Windows installer (.exe)\nnpm run build:mac     # macOS (.dmg)\nnpm run build:linux   # Linux (AppImage + .deb)\nnpm run build:unpack  # unpacked folder for a quick test\n```\n\nInstallers land in `dist\u002F`. They aren't signed, so Windows SmartScreen and macOS Gatekeeper ask the\nuser to confirm the first time. Build each one on its own OS. I build on Windows; the Mac and Linux\nbuilds are wired in, but I haven't tested them yet.\n\nTo give it your own name:\n\n```bash\nnpm run rebrand -- --name \"My App\" --id com.me.myapp\n```\n\nThen replace `resources\u002Ficon.png` (1024×1024) with your icon.\n\n## Free vs full\n\nIf you just want a tool for yourself, this is all you need. You don't need to buy anything.\n\nTo sell an app, you need a few more things: license keys, signed installers, and a way to ship updates.\nThe full [Desktop App Boilerplate](https:\u002F\u002Flearnwithhasan.com\u002Fboilerplates\u002Felectron-starter-template\u002F)\nhas them wired in. This starter is a cut of it.\n\n|                                                       | Desktop App Starter (free)     | Desktop App Boilerplate (full)                                   |\n| ----------------------------------------------------- | ------------------------------ | ---------------------------------------------------------------- |\n| Window, 6 themes, settings, validated IPC, generators | ✓                              | ✓                                                                |\n| API key encrypted by the OS                           | ✓                              | ✓                                                                |\n| AI in the app                                         | Claude (Anthropic SDK)         | Claude Agent SDK and OpenAI, each with a demo screen             |\n| UI components                                         | 21, plus 8 layout and 3 motion | 45, counting the same layout and motion pieces                   |\n| Working screens                                       | 5                              | 15                                                               |\n| CLAUDE.md                                             | 325 lines                      | 950 lines                                                        |\n| Tests                                                 | 29                             | 78                                                               |\n| Installers for Windows, Mac and Linux                 | unsigned                       | Windows and Mac code signing plus Mac notarization, with a guide |\n| Auto-update                                           | –                              | GitHub Releases or any S3-compatible host                        |\n| License keys                                          | –                              | activation, with 7 days of offline grace                         |\n| Local database                                        | –                              | SQLite with migrations                                           |\n| Sign-in                                               | –                              | OAuth 2 with PKCE: GitHub, Google and a generic provider         |\n| Background jobs with progress and cancel              | –                              | ✓                                                                |\n| Tray, global shortcuts, command palette, deep links   | –                              | ✓                                                                |\n| Two languages                                         | –                              | English and Spanish (i18next)                                    |\n| In-app logs, redacted diagnostics export, telemetry   | –                              | ✓                                                                |\n| License                                               | MIT                            | single-app commercial license                                    |\n\n## Links\n\n- **The full Desktop App Boilerplate:** https:\u002F\u002Flearnwithhasan.com\u002Fboilerplates\u002Felectron-starter-template\u002F\n- **Build With AI 1.0**, my course. It includes the full Desktop App Boilerplate and three more\n  (Python MCP server, mobile app and Django SaaS): https:\u002F\u002Flearnwithhasan.com\u002Fcourses\u002Fbuild-with-ai-10\u002F\n- **My free book**, one building block per page: https:\u002F\u002Flearnwithhasan.com\u002Fblocks\u002F\n- **The video:** coming soon. \u003C!-- TODO(Hasan): replace \"coming soon\" with the YouTube link after upload -->\n\n## Commands\n\n| Command               | What it does                            |\n| --------------------- | --------------------------------------- |\n| `npm run dev`         | Start the app with hot reload           |\n| `npm run typecheck`   | TypeScript on main and renderer         |\n| `npm run lint`        | ESLint                                  |\n| `npm run test`        | Vitest unit tests                       |\n| `npm run new:feature` | Scaffold a screen and register it       |\n| `npm run new:ipc`     | Scaffold an IPC channel in all 5 places |\n| `npm run rebrand`     | Rename the app                          |\n| `npm run build:*`     | Build installers                        |\n\n## Docs\n\n- [CLAUDE.md](.\u002FCLAUDE.md): architecture, patterns and rules (also the best overview for humans).\n- [docs\u002Fcomponents.md](.\u002Fdocs\u002Fcomponents.md): every component and hook.\n- [docs\u002Fdesign-tokens.md](.\u002Fdocs\u002Fdesign-tokens.md): colors, spacing, radius, motion tokens.\n\n## License\n\nMIT. See [LICENSE](.\u002FLICENSE).\n","这是一个基于 Electron、React 和 TypeScript 的桌面应用快速启动模板，专为集成 Anthropic Claude AI（如 Claude Opus）构建而优化。它预置了跨平台窗口结构、6 种主题、安全的 API 密钥存储（使用 Electron safeStorage）、类型安全的主进程\u002FUI 进程通信桥、文件系统交互能力及自动化构建流程，并通过 CLAUDE.md 规范引导 Claude Code 自动生成符合项目风格的新功能代码。适用于希望快速验证 AI 增强型桌面工具原型（如智能文件整理、本地数据处理助手等）的开发者，尤其适合在 Claude Code 环境中进行低摩擦 AI 协同开发。","2026-11-24 04:33:01","CREATED_QUERY"]