Skip to content

About

Production-ready Electron boilerplate: React, TypeScript, tRPC, SQLite, auto update, code signing and license keys with Stripe

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

Electron AppStack logo

Electron AppStack

A complete Electron + TypeScript starter (React, tRPC, SQLite, auto update, signed releases…), and its documentation.

Documentation: electron-appstack.com

Screenshots

The app you get after npm run dev: a todo list stored in SQLite and a settings page with light and dark themes. The license activation window appears once you turn licensing on.

Electron AppStack main window: todo list stored in a local SQLite database with Drizzle ORM Electron AppStack settings window in dark mode with theme, language and versions

Electron AppStack license key activation window

Stack

Desktop

Frontend

Backend and data

Shipping and selling

Tooling

Create an app

Copy the template with degit:

npx degit nick-keller/electron-appstack/template my-app
cd my-app
npm install
npm run dev

What's in this repository

This is a pnpm monorepo with two packages:

Folder Description
template/ The Electron app template. This is what users clone with degit.
docs/ The documentation website, built with Next.js and Nextra, deployed at electron-appstack.com.

The template is self-contained: it must not depend on anything outside template/, since degit only copies that folder. Its README.md, AGENTS.md and .github/workflows are written for people who cloned it.

The template is installed with pnpm in this monorepo, but users install it with npm, so it ships its own package-lock.json. After changing template/package.json, run pnpm lock:template to update it (CI fails otherwise).

Development

Requires Node.js 22.12+ and pnpm.

pnpm install
Command Description
pnpm dev:template Run the Electron template in development mode
pnpm dev:docs Run the documentation website on localhost:3000
pnpm build Build both packages
pnpm typecheck Type check both packages
pnpm test Run the template unit tests
pnpm check Lint and check formatting with Biome
pnpm check:fix Fix lint and formatting issues
pnpm lock:template Regenerate template/package-lock.json
pnpm update:boilerplates Refresh GitHub stats and Electron versions in docs/data/boilerplates.json

The landing page is docs/app/(home)/page.tsx. Documentation pages live in docs/content/ as MDX files, served under /doc. The sidebar order is set in docs/content/_meta.ts. Each page sets its search title and meta description in its frontmatter (title, description, keep them unique and around 60 and 150 characters); the sidebar label comes from _meta.ts. sitemap.xml, robots.txt and llms.txt are generated from docs/app/sitemap.ts, docs/app/robots.ts and docs/app/llms.txt/route.ts. Shared JSON-LD entities (author, organization) are in docs/app/structured-data.tsx.

The comparison page (/compare) and the ranking page (/best-electron-boilerplate) are generated from docs/data/boilerplates.json: features and stack are curated by hand, stars, last commits and Electron versions are refreshed with pnpm update:boilerplates. Scores and rankings are computed in docs/lib/boilerplates.ts.

License

Electron AppStack is open source under the MIT License. Contributions are welcome: open an issue or a pull request.

The license is also published at electron-appstack.com/doc/license, from docs/content/license.mdx: keep it in sync with LICENSE.md and template/LICENSE.md.

About

Production-ready Electron boilerplate: React, TypeScript, tRPC, SQLite, auto update, code signing and license keys with Stripe

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages