{"id":49773149,"url":"https://github.com/tdanks2000/create-electrobun-stack","last_synced_at":"2026-05-11T14:03:04.410Z","repository":{"id":357007293,"uuid":"1230214686","full_name":"TDanks2000/create-electrobun-stack","owner":"TDanks2000","description":"Scaffold production-minded Electrobun desktop apps with Bun, React, TypeScript, Vite, typed RPC, and optional integrations.","archived":false,"fork":false,"pushed_at":"2026-05-10T22:03:15.000Z","size":194,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-10T23:26:27.645Z","etag":null,"topics":["biome","boilerplate","bun","cli","desktop-app","drizzle","electrobun","react","rpc","scaffolding","shadcn-ui","sqlite","tailwindcss","tanstack-query","tanstack-router","template","typescript","vite"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TDanks2000.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T19:37:41.000Z","updated_at":"2026-05-10T22:03:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TDanks2000/create-electrobun-stack","commit_stats":null,"previous_names":["tdanks2000/create-electrobun-stack"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TDanks2000/create-electrobun-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TDanks2000%2Fcreate-electrobun-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TDanks2000%2Fcreate-electrobun-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TDanks2000%2Fcreate-electrobun-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TDanks2000%2Fcreate-electrobun-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TDanks2000","download_url":"https://codeload.github.com/TDanks2000/create-electrobun-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TDanks2000%2Fcreate-electrobun-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32897941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["biome","boilerplate","bun","cli","desktop-app","drizzle","electrobun","react","rpc","scaffolding","shadcn-ui","sqlite","tailwindcss","tanstack-query","tanstack-router","template","typescript","vite"],"created_at":"2026-05-11T14:03:02.959Z","updated_at":"2026-05-11T14:03:04.400Z","avatar_url":"https://github.com/TDanks2000.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-electrobun-stack\n\n[![npm version](https://img.shields.io/npm/v/create-electrobun-stack.svg)](https://www.npmjs.com/package/create-electrobun-stack)\n[![npm downloads](https://img.shields.io/npm/dm/create-electrobun-stack.svg)](https://www.npmjs.com/package/create-electrobun-stack)\n[![Node version](https://img.shields.io/node/v/create-electrobun-stack.svg)](https://www.npmjs.com/package/create-electrobun-stack)\n[![Bun \u003e=1.3.0](https://img.shields.io/badge/Bun-%3E%3D1.3.0-000?logo=bun\u0026logoColor=white)](https://bun.sh)\n\nScaffold a production-minded Electrobun desktop app with Bun, React, TypeScript, Vite, Biome, typed Electrobun RPC, and a small set of optional integrations that can be enabled at create time or added later.\n\nThe generator is intentionally explicit: every selected stack option is written to `ces.json`, the generated project README explains what was scaffolded, and the `add` command can use that manifest to enable missing features without asking you to remember the original command.\n\n## Quick Start\n\n```bash\nnpm create electrobun-stack@latest my-app\ncd my-app\nbun run dev\n```\n\nYou can also run it with `npx create-electrobun-stack@latest my-app`, `bunx --bun create-electrobun-stack@latest my-app`, or install it globally with `npm install -g create-electrobun-stack`.\n\nRequirements:\n\n- Node.js `\u003e=20.19.0` to run the published CLI.\n- Bun `\u003e=1.3.0`.\n- A desktop OS supported by Electrobun for running or building generated apps.\n\nUse the local command while developing this repository:\n\n```bash\nbun run src/index.ts my-app\n```\n\n## Default Stack\n\nThe default project is a Bun-powered Electrobun app with:\n\n- React renderer built with Vite.\n- TanStack Router file routes.\n- Tailwind CSS v4.\n- Typed Electrobun RPC between the Bun process and the WebView.\n- Native Edit menu shortcuts.\n- Local-only navigation rules for bundled views.\n- Bun test scaffold.\n- Biome formatting and linting.\n- A starter RPC example.\n- A `ces.json` manifest with a reproducible command and feature flags.\n\nEquivalent flags:\n\n```bash\nbunx create-electrobun-stack my-app \\\n  --template minimal \\\n  --frontend react \\\n  --router tanstack-router \\\n  --query none \\\n  --runtime bun \\\n  --build-env dev \\\n  --build-targets current \\\n  --api electrobun-rpc \\\n  --navigation local-only \\\n  --native-utils none \\\n  --window-style native \\\n  --styling tailwindcss \\\n  --ui none \\\n  --app-menu edit \\\n  --auth none \\\n  --database none \\\n  --orm none \\\n  --db-setup none \\\n  --settings none \\\n  --package-manager bun \\\n  --testing bun \\\n  --addons none \\\n  --examples rpc \\\n  --install \\\n  --no-git\n```\n\n## Common Recipes\n\nCreate without installing dependencies:\n\n```bash\nbunx create-electrobun-stack my-app --no-install\n```\n\nPreview the resolved stack without writing files:\n\n```bash\nbunx create-electrobun-stack my-app --dry-run\n```\n\nCreate with SQLite, Drizzle, and database-backed settings:\n\n```bash\nbunx create-electrobun-stack my-app \\\n  --database sqlite \\\n  --orm drizzle \\\n  --settings database\n```\n\nCreate a simpler renderer with React Router and TanStack Query:\n\n```bash\nbunx create-electrobun-stack my-app \\\n  --router react-router \\\n  --query tanstack-query\n```\n\nStart small and add a feature later:\n\n```bash\ncd my-app\nbunx create-electrobun-stack add --orm drizzle\n```\n\n`add` reads `ces.json`, infers prerequisites such as SQLite for Drizzle, updates the scaffolded files, and refreshes the manifest.\n\n## Generated Commands\n\nMost generated projects expose:\n\n```bash\nbun run dev\nbun run build\nbun run typecheck\nbun run lint\nbun run format\nbun test\n```\n\nSome options add commands. For example, `--addons turborepo` adds `bun run check`, and `--orm drizzle` adds Drizzle scripts.\n\n## Docs\n\n- [Docs index](./docs/README.md): where to start.\n- [CLI reference](./docs/cli.md): every command and operational flag.\n- [Stack options](./docs/options.md): what each option adds and where to find it after scaffolding.\n- [Generated project guide](./docs/generated-project.md): file structure, app lifecycle, and maintenance workflow.\n- [Add command](./docs/add-command.md): how to grow an existing generated app.\n- [Manifest reference](./docs/manifest.md): `ces.json` fields and schema.\n- [Templates](./docs/templates.md): how template overlays are organized.\n- [V1 release plan](./docs/v1-plan.md): release gates for moving from pre-release to `1.0.0`.\n- [LLM guide](./docs/llm.txt): compact agent-oriented reference.\n\n## Development\n\n```bash\nbun install\nbun run build\nbun test\nbun run typecheck\nbun run lint\nbun run validate:render\nnpm pack --dry-run\n```\n\nThe CLI entrypoint is `src/index.ts`. Stack choices live in `src/options.ts`, manifest generation lives in `src/manifest.ts`, and template rendering lives in `src/scaffold.ts`.\n\nThe published npm package ships the built CLI from `dist/index.mjs` plus `templates/` and `docs/`. Run `bun run build` before local package checks; `npm pack --dry-run` also runs the build through `prepack`. The bin keeps a Node shebang for npm compatibility; `bunx --bun create-electrobun-stack@latest` forces Bun to run the same built CLI.\n\nRelease checks:\n\n```bash\nbun run validate\nbun run pack:smoke\n```\n\n`bun run validate:render` scaffolds the representative V1 matrix and runs Biome against the rendered output without installing generated dependencies. `bun run validate` performs the slower release gate: it installs each generated project and runs typecheck, lint, tests when present, and build. `bun run pack:smoke` proves the packed tarball can be installed and used through its published bin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdanks2000%2Fcreate-electrobun-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdanks2000%2Fcreate-electrobun-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdanks2000%2Fcreate-electrobun-stack/lists"}