Qwik + QwikCity 全栈结构,使用 TypeScript 严格模式与 @/*、~/* 路径别名
qwik-boilerplate — Vite 启动器模板
作者 RajaRakoto
基于 Qwik 与 QwikCity 的 TypeScript 全栈启动模板,使用 Bun 与 Vite 构建,内置 Tailwind CSS、Sass、Biome、ESLint、Playwright 等开发工具链。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
Bun 作为包管理器与单元测试运行器,Vite 提供 SSR 与 HMR 构建
内置 Tailwind CSS、Sass 与自托管 Fontsource 字体
集成 Biome、ESLint(eslint-plugin-qwik)、Prettier、EditorConfig 代码质量工具
Playwright 端到端测试与 Bun test 单元测试
提供 Dockerfile,并可通过 bun qwik add 添加部署适配器或 SSG
模板详细介绍
这是一个面向 Qwik + QwikCity 应用的 TypeScript 全栈启动模板,仓库描述为极简风格,使用 Bun 作为包管理器与单元测试运行器,构建环节基于 Vite 的 SSR 与 HMR。模板自带较完整的工程化配置:Biome、ESLint(含 eslint-plugin-qwik)、Prettier、EditorConfig 用于代码质量与格式;Playwright 负责端到端测试,Bun test 负责单元测试;样式层使用 Tailwind CSS 与 Sass,并自托管 Fontsource 字体;图标来自 qwikest/icons。
目录结构按关注点划分:src/routes 使用 QwikCity 的文件路由,包含根布局、预取 service worker 以及 flower、todolist 两个演示应用;src/components 下有 starter 演示组件;api、auth、data、extras、pages 等目录是占位结构,各自通过 README 说明用途,等待使用者填入代码。入口文件区分开发(entry.dev.tsx)、预览(entry.preview.tsx)与 SSR(entry.ssr.tsx)。
模板还提供 Dockerfile 用于容器化部署,并可通过 bun qwik add 添加 Cloudflare、Netlify、Express 等适配器或静态站点生成。README 提到可选的 PLUM Sass mixins 工具集,并建议保持 Sass 1.77.6 以便集成。仓库采用 MIT 许可,允许免费使用、修改、商用与分发,但演示图片、字体、图标等第三方素材需单独核对许可,域名、托管、数据库等外部服务可能另行收费。
适合你的项目吗?
适用场景
- 以 Qwik + QwikCity 起步搭建 TypeScript 全栈应用
- 需要 SSR、文件路由与预取 service worker 的项目原型
- 希望直接使用 Bun 作为包管理器与测试运行器的开发流程
- 需要 Docker 容器化或后续接入 Cloudflare、Netlify、Express 适配器的项目
适合人群
- 熟悉 TypeScript 与 Qwik/QwikCity 的开发者
- 偏好 Bun 工具链、希望减少初始配置工作的团队
- 需要端到端与单元测试脚手架的全栈项目
- 计划使用 Tailwind CSS 与 Sass 进行样式开发的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
使用 bun create github.com/RajaRakoto/qwik-boilerplate <project-name> 创建项目,随后执行 bun install 与 bun run dev
- 2
Node 版本需满足 README 所述要求(≥ 20.19 或 ≥ 22.12)
- 3
MIT 许可默认使用作者姓名/GitHub,需按需更新或移除
- 4
src 下各子目录自带 README,api、auth、data、extras、pages 为占位目录,需自行填入代码
- 5
若搭配 PLUM Sass mixins 工具集,README 建议保持 Sass 1.77.6
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- PLUM 为可选外部 Sass mixins 工具集,非模板必需;若搭配使用,README 建议将 Sass 版本保持在 1.77.6 以获得顺畅集成。
- 部署适配器(Cloudflare、Netlify、Express 等)或静态站点生成需通过 bun qwik add 自行添加;相关托管与外部服务可能产生费用。
- MIT 许可默认署名作者姓名与 GitHub,使用者需按自身项目情况更新或移除该署名信息。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Optionally pair with [PLUM](https://github.com/RajaRakoto/plum), a Sass mixins toolset. For smooth integration it is recommended to keep Sass `1.77.6`.
README 原文
Use `bun qwik add` to add an adapter (Cloudflare, Netlify, Express…) or the [Static Site Generator (SSG)](https://qwik.dev/qwikcity/guides/static-site-generation/).
README 原文
https://github.com/RajaRakoto/qwik-boilerplate/blob/master/LICENSEhttps://github.com/RajaRakoto/qwik-boilerplate/blob/master/README.mdMIT license uses your name/GitHub — update or remove if needed.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 75 / 100
- 技术栈
- Vite
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-03
- 截图检查日期
- 2026-10-03
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Vite。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 6c210df97debd01b792b1def0a009ced75bba883fc9574270e0b8c2897b1e0b3
2026-10-03T02:50:28.047Z
来源文件 / 仓库<div align="center"> <img src="https://rajarakoto.github.io/github-docs/boilerplate/qwik-boilerplate.jpg"> </div> # qwik-boilerplate 🚀 [](https://forthebadge.com) [](https://forthebadge.com) [](https://forthebadge.com) [](https://forthebadge.com) [](https://forthebadge.com)   **Developer-ready, minimalistic fullstack boilerplate for building blazing-fast applications with [Qwik](https://qwik.dev) + [QwikCity](https://qwik.dev/qwikcity/overview/), powered by [Bun](https://bun.sh) & [Vite](https://vitejs.dev).** - [Qwik Docs](https://qwik.dev/) - [Discord](https://qwik.dev/chat) - [Qwik GitHub](https://github.com/QwikDev/qwik) ## ✨ Features | Area | Stack | |------|-------| | Framework | Qwik + QwikCity (resumability, zero hydration, fine-grained lazy loading) | | Runtime | Bun (package manager + test runner), Node ≥ 20.19 or ≥ 22.12 | | Build | Vite 7 SSR with HMR | | Language | TypeScript (strict mode), path aliases `@/*` → `src/`, `~/*` → `public/` | | Styling | Tailwind CSS 4, Sass (variables, mixins), self-hosted Fontsource fonts | | Quality | Biome, ESLint (eslint-plugin-qwik), Prettier, EditorConfig | | Testing | Playwright (e2e) + Bun test (unit) | | Icons | qwikest/icons (180k+ icons) | | Perf | Partytown (third-party scripts off main thread), service worker prefetching | | Ops | Docker, Grunt backups, depcheck, npm-check-updates, ungit | > 💡 Optionally pair with [PLUM](https://github.com/RajaRakoto/plum), a Sass mixins toolset. For smooth integration it is recommended to keep Sass `1.77.6`. ## 🚀 Quick Start ```bash bun create github.com/RajaRakoto/qwik-boilerplate <project-name> cd <project-name> bun install bun run dev ``` > 1. MIT license uses your name/GitHub — update or remove if needed. > 2. Each subdirectory in `src` has its own `README.md` explaining its purpose. > 3. Adjust `package.json` (name, description, author, etc.) to fit your project. ## 📁 Project Structure ``` src/ ├── @types/ Global type declarations ├── api/ API clients & server communication ├── assets/ Static assets (images, logos) ├── auth/ Authentication logic ├── common/ Shared components (e.g. QwikLogo) ├── components/ UI components │ └── starter/ Demo components (hero, counter, gauge, header, footer, …) ├── constants/ Shared constants (getting-started steps) ├── data/ Data sources / mocks ├── extras/ Optional add-ons ├── pages/ Page-level components ├── routes/ QwikCity file-based routing │ ├── layout.tsx Root layout (header/footer, cache headers, server time) │ ├── service-worker.ts Prefetching service worker │ └── demo/ Demo apps (flower, todolist) ├── styles/ Global styles (Sass + Tailwind) ├── types/ Ambient type declarations (Partytown) ├── utils/ Utility functions ├── entry.dev.tsx Dev-only entry point ├── entry.preview.tsx Vite preview entry point ├── entry.ssr.tsx SSR entry point └── root.tsx QwikCityProvider root ``` `api/`, `auth/`, `data/`, `extras/`, `pages/` are placeholders that keep the structure ready for common concerns — drop your code in, each folder documents itself via its `README.md`. ## 🌐 Routes - `/` — Landing page: hero, counter, getting-started walkthrough - `/demo/flower` — Reactive flower generator (`useTask$`, `useStore`) - `/demo/todolist` — Todo list demo (`routeLoader$` + `routeAction$` + Zod, works without JS) ## 📜 Scripts All commands run with `bun run <script>`. | Script | Description | |--------|-------------| | `dev` | Start dev server (SSR + HMR) | | `dev:debug` | Start dev server with Node.js debugger | | `start` | Start dev server and open the browser | | `preview` | Build production and serve a preview | | `build` | Production build (client + SSR) | | `build.client` | Build client bundle only | | `build.preview` | Build SSR preview bundle (`entry.preview.tsx`) | | `build.types` | TypeScript type-check (no emit) | | `clean` | Remove `server`, `build`, `dist`, `coverage`, `playwright-report` | | `test:unit` / `test:unit:watch` | Unit tests (Bun), watch mode | | `test:e2e` | End-to-end tests (Playwright) | | `biome:fix` | Lint & format with Biome | | `biome:unsafe` | Biome with unsafe fixes | | `biome:start` / `biome:stop` | Manage the Biome daemon | | `eslint` | Lint with ESLint (warnings fail the run) | | `prettier` | Format with Prettier | | `pkg-check` | Find unused dependencies (depcheck) | | `pkg-upgrade` | Interactive dependency upgrade (npm-check-updates) | | `backups` | Incremental backups with Grunt | | `versioning` | Start ungit (Git GUI) | | `npm-version:major/minor/patch` | Bump version via npm | | `nvm` | Switch to the project's Node version | | `script:sass-charset` | Prepend `@charset "UTF-8"` to all SCSS files | ## 🔌 Integrations & Deployment Use `bun qwik add` to add an adapter (Cloudflare, Netlify, Express…) or the [Static Site Generator (SSG)](https://qwik.dev/qwikcity/guides/static-site-generation/). A base `Dockerfile` is included for containerized deployment. ## 🔗 Similar Check out my other starter projects: - 🚀 [bun-boilerplate](https://github.com/RajaRakoto/bun-boilerplate) - 🚀 [node-boilerplate](https://github.com/RajaRakoto/node-boilerplate) - 🚀 [react-boilerplate](https://github.com/RajaRakoto/react-boilerplate) - 🚀 [next-boilerplate](https://github.com/RajaRakoto/next-boilerplate) - 🚀 [vscode-boilerplate](https://github.com/RajaRakoto/vscode-boilerplate) - 🚀 [cli-boilerplate](https://github.com/RajaRakoto/cli-boilerplate)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

react-starter-kit
Modern React starter kit with Bun, TypeScript, Tailwind CSS, tRPC, Stripe, and Cloudflare Workers. Production-…
Vite · SaaS

cove
The Cove Stack: 🏝️ minimal TanStack Start template with Vite+, Better Auth, Drizzle ORM, shadcn/ui
Vite · SaaS

vite-react-boilerplate
A production ready, scalable starter template for Vite + React
Vite · 启动器

react-vite-admin
This Starter utilizes React, Recoil, React Query, React Hooks, Typescript, Axios And Vite. 全新技术栈的后台管理系统
Vite · 后台

typescript-react_best_practices-vite_template
<⚡⚛️> Start your React project with Vite following code best practices (TypeScript, Linting, testing, CI/CD…)
Vite · 启动器

cloudflare-starter-kit
Template (boilerplate) repository for scaffolding Cloudflare Workers projects
Vite · 启动器
