Electron AppStack

Electron + React 19 · free and open source

Electron React boilerplate with the backend already built

React 19 in the renderer. tRPC, SQLite and a release pipeline behind it.

Most Electron React templates stop at a window that renders App.tsx. This one ships the React stack you would pick today, and the desktop backend the others leave to you.

$ npx degit nick-keller/electron-appstack/template my-app
  • React
  • TanStack Router
  • TanStack Query
  • TypeScript
  • Vite
  • tRPC
  • shadcn/ui
  • Tailwind CSS
  • SQLite
  • Electron

React setup

The React stack you would pick today

React 19, a type-safe router, a data layer and a design system, already wired to the Electron main process.

React meets the main process

Call your main process from React like a local hook

No ipcRenderer, no channel names, no hand-written preload API. A tRPC procedure in the main process is a typed TanStack Query hook in your components.

Read the IPC guide
// src/main/trpc/routers/todos.ts (main process)
export const todosRouter = router({
  create: licensedProcedure
    .input(z.object({ title: z.string().trim().min(1).max(200) }))
    .mutation(({ ctx, input }) =>
      ctx.db.insert(todos).values(input).returning().get()
    )
})

// src/renderer/src/routes/index.tsx (renderer)
const create = useMutation(trpc.todos.create.mutationOptions())
create.mutate({ title: 'Ship v1' }) // typed, validated, autocompleted

And much more

Much more than an Electron React boilerplate

React is only the start. Electron AppStack includes 20 of the 22 features we compare boilerplates on, where the most popular other Electron React boilerplates average 10: a typed backend, a database, auto update, signed releases, source code protection and license keys, all wired together and documented.

Compare

Electron AppStack vs other React boilerplates

The most popular maintained Electron React boilerplates, side by side. Electron AppStack is #1 of 19 in our ranking.

FeatureElectron AppStackelectron-shadcnElectron React BoilerplateElectron React App
Developer experience
AI agent instructionsAGENTS.md or rules so coding agents follow the conventions.✓×××
Frontend
UI componentsA component library or design system.✓✓×✓
Backend
Typed IPCCalls from the renderer to the main process are typed end to end.✓✓–✓
Local databaseAn embedded database with migrations.✓×××
Shipping
Auto updateThe app downloads and installs new versions.✓✓✓×
Release workflowCI builds and publishes installers for every platform.✓✓✓–
Code signingSigning and notarization wired into the build.✓×✓×
Selling
Source code protectionBytecode compilation, Electron fuses or ASAR integrity.✓–××
License keysActivation, validation and offline use of license keys.✓×××

✓Included–Partial or manual setup×Not includedHover a cell for details.

One command

Create your React Electron app

Copy the template, install, run. Hot reload starts with the example app: a todo list stored in SQLite and a settings page with light and dark themes.

Read the getting started guide
npx degit nick-keller/electron-appstack/template my-app
cd my-app
npm install
npm run dev

FAQ

Frequently asked questions

Is this the Electron React Boilerplate project?

No. Electron React Boilerplate (electron-react-boilerplate.js.org) is a separate, popular project. Electron AppStack is another free Electron boilerplate built on React, which adds UI components, typed IPC with tRPC, a SQLite database, source code protection and license keys. The comparison page lists every difference.

Which React version does it use?

React 19, built by Vite through electron-vite, in strict TypeScript. Routing uses TanStack Router and data fetching uses TanStack Query.

Can I use React Router, Redux or Zustand instead?

Yes. Data that comes from the main process lives in the TanStack Query cache, so most apps need no global store, but you can add any state library to the renderer. TanStack Router only touches the routes folder and the router setup, so it can be swapped for React Router.

Does it work with Vue, Svelte or Angular?

No, the renderer is React only. The main process, the database, the release workflow and the licensing do not depend on React, but the UI, the routes and the IPC client are written for it.

Is it really free?

Yes. Electron AppStack is open source under the MIT License, with no paid tier. Use it for commercial apps and sell them. LicenseManager is free up to 100 active licenses, and Stripe only charges a fee on the payments you receive.

Is it a framework I depend on?

No. You copy the template once with degit and the code is yours. There is no package to update and nothing to eject.

Same template

Looking for another stack?

One boilerplate covers all of them: pick the page that matches your search.

Start your React desktop app today

Free, production-ready, and yours from the first command.

$ npx degit nick-keller/electron-appstack/template my-app