Vanilla TypeScript 起点,不引入 React 等 UI 框架,直接编写原生 HTML 与 TS
vite-vanilla-ts — Vite 企业官网模板
作者 doinel1a
基于 Vite 的 Vanilla TypeScript 前端启动模板,内置 TailwindCSS、SASS、PostCSS、Playwright 及 ESLint、Prettier、Husky、Commitlint 等开发工具配置。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
构建工具为 Vite,README 说明其采用零配置思路并支持 SWC 编译器
样式层预置 TailwindCSS、SASS 与 PostCSS
集成 Playwright 用于端到端测试
开发体验工具包含 ESLint、Prettier、Husky 与 Commitlint,提交需遵循 conventional commit 格式
通过 .browserslistrc 控制浏览器覆盖范围,默认配置覆盖约 92.3% 的浏览器
模板详细介绍
这是一个面向前端开发者的 Vanilla TypeScript 项目启动模板,使用 Vite 作为构建工具,不依赖 React 等框架,适合直接编写原生 HTML 与 TypeScript 的网站、单页应用或落地页。模板已预先配置 TypeScript、TailwindCSS、SASS、PostCSS 与 Playwright,并集成 ESLint、Prettier、Husky、Commitlint 等开发体验工具,目的是省去每次新建项目时从零搭建开发环境的步骤。
使用方式上,仓库提供“Use this template”或 Fork 两种获取方式,也可通过 git clone 克隆到本地。安装依赖与运行开发服务器、构建生产版本、预览生产构建分别对应 install、dev、build、preview 四组脚本命令,README 同时给出 NPM、PNPM、Yarn 三种包管理器的写法。前置条件仅为 Node.js 运行时,PNPM 与 Yarn 属于可选项。
浏览器支持由 .browserslistrc 控制,默认配置为 last 3 versions、> 0.2%、not dead,README 说明该配置覆盖约 92.3% 的浏览器,并提示支持的版本越多,JS 与 CSS 打包体积越大。仓库采用 MIT 许可,但 README 明确所有 logo 与商标归各自所有者,演示图片、字体、图标等第三方素材仍需按各自许可单独核对。模板本身不包含后端、数据库或部署配置,属于纯前端起点。
适合你的项目吗?
适用场景
- 需要快速开始一个原生 TypeScript 网站或落地页,不想从零配置构建与代码检查
- 制作不依赖前端框架的轻量单页应用或静态页面
- 作为团队内部统一 ESLint、Prettier、提交规范与测试工具的起始仓库
- 在 Vite + TypeScript 环境下试验 TailwindCSS 与 SASS 的样式方案
适合人群
- 熟悉 TypeScript、希望使用原生 DOM 而非框架的前端开发者
- 需要标准化代码检查与 Git 提交规范的团队项目
- 以静态页面或纯前端交互为主、不需要后端渲染的站点
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
前置条件为 Node.js,PNPM 与 Yarn 为可选替代包管理器
- 2
可通过 GitHub 的 Use this template、Fork 或 git clone 获取仓库
- 3
常用脚本为 install、dev、build、preview,README 提供 NPM、PNPM、Yarn 三种写法
- 4
浏览器覆盖范围在 .browserslistrc 中调整,扩大支持范围会增加 JS 与 CSS 打包体积
- 5
代码采用 MIT 许可,但 logo、商标及演示图片、字体、图标等第三方素材需按各自许可核对
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- README 明确所有 logo 与商标归各自所有者,不属于 MIT 授权范围,商用或再分发时需自行确认这些标识的使用权限。
- 除 logo 与商标外的代码内容采用 MIT 许可,可自由使用、修改与再分发,但需保留版权与许可声明。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
All logos and trademarks are the property of their respective owners.
README 原文
https://github.com/doinel1a/vite-vanilla-ts/blob/main/LICENSEhttps://github.com/doinel1a/vite-vanilla-ts/blob/main/README.mdEverything else is distributed under the **MIT License** .
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 92 / 100
- 技术栈
- Vite · HTML
- 网站类型
- 企业官网 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-11
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Vite。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 89d26abc8ec9037d543db2997e711bd53963053107ee69667df782091a0e0719
2026-10-01T01:54:46.181Z
来源文件 / 仓库[node]: https://nodejs.org/en
[yarn]: https://yarnpkg.com
[pnpm]: https://pnpm.io
[demo]: https://vite-vanilla-ts.d1a.app
[license]: https://github.com/doinel1a/vite-vanilla-ts/blob/main/LICENSE
[code-of-conduct]: https://github.com/doinel1a/vite-vanilla-ts/blob/main/CODE_OF_CONDUCT.md
[issues]: https://github.com/doinel1a/vite-vanilla-ts/issues
[pulls]: https://github.com/doinel1a/vite-vanilla-ts/pulls
[browserslist]: https://browsersl.ist/#q=last+3+versions%2C%3E+0.2%25%2C+not+dead
[graphviz]: https://www.graphviz.org/download
[commitlint]: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
[vite-react-ts-repo]: https://github.com/doinel1a/vite-react-ts-starter
[vite-react-js-repo]: https://github.com/doinel1a/vite-react-js-starter
[vite-vanilla-ts-repo]: https://github.com/doinel1a/vite-vanilla-ts
[vite-vanilla-js-repo]: https://github.com/doinel1a/vite-vanilla-js
[wp-react-ts-repo]: https://github.com/doinel1a/react-ts-starter
[wp-react-js-repo]: ''
[wp-vanilla-ts-repo]: ''
[wp-vanilla-js-repo]: https://github.com/doinel1a/webpack-vanilla-js
[react-icon]: https://skillicons.dev/icons?i=react
[ts-icon]: https://skillicons.dev/icons?i=ts
[js-icon]: https://skillicons.dev/icons?i=js
[tailwind-icon]: https://skillicons.dev/icons?i=tailwind
[chrome-icon]: https://github.com/alrra/browser-logos/blob/main/src/chrome/chrome_64x64.png
[firefox-icon]: https://github.com/alrra/browser-logos/blob/main/src/firefox/firefox_64x64.png
[edge-icon]: https://github.com/alrra/browser-logos/blob/main/src/edge/edge_64x64.png
[opera-icon]: https://github.com/alrra/browser-logos/blob/main/src/opera/opera_64x64.png
[safari-icon]: https://github.com/alrra/browser-logos/blob/main/src/safari/safari_64x64.png
# Vite Vanilla TypeScript — Template
Are you looking for a way to supercharge your development experience and build stunning web applications with ease? You are in the right place!
This development starter template is the ultimate solution to help you getting started on your project in no time, without the hassle of setting up and configuring your development environment from scratch each time you start working.
This template is ideal for front-end developers who want to build modern, fast and reliable web applications with the latest cutting edge technologies such as **TypeScript**, **TailwindCSS**, **ESLint**, **Prettier**, **Husky**, **Vite** and much more!
---
**[Demo][demo]** **|** **[Bug(label: bug)][issues]** **|** **[Feature(label: enhancement)][issues]**
---
## :bookmark: Table of contents
- :computer: [Getting started](#computer-getting-started "Go to 'Getting started' section")
- :battery: [Features](#battery-features "Go to 'Features' section")
- :arrows_clockwise: [Versions](#arrows_clockwise-versions "Go to 'Versions' section")
- :globe_with_meridians: [Browsers support](#globe_with_meridians-browsers-support "Go to 'Browsers support' section")
- :busts_in_silhouette: [Contribute](#busts_in_silhouette-contribute "Go to 'Contribute' section")
- :bookmark_tabs: [License](#bookmark_tabs-license "Go to 'License' section")
- :gem: [Acknowledgements](#gem-acknowledgements "Go to 'Acknowledgements' section")
---
## :computer: Getting started
### Prerequisites:
- JavaScript runtime **[node.js][node]**;
- **(OPTIONAL)** Alternative package manager:
- **[PNPM][pnpm]** `npm install --global pnpm` <br /> or
- **[Yarn][yarn]** `npm install --global yarn`
### Start developing:
- Get the repository:
- click **"Use this template"** or **"Fork"** button <br /> alternately
- **clone** the repository through your terminal: <br />
`git clone https://github.com/doinel1a/vite-vanilla-ts YOUR-PROJECT-NAME`;
- Open your terminal or code editor to the path your project is located, and run:
| | **NPM** | **PNPM** | **Yarn** |
| ------------------------------------------------ | ----------------- | -------------- | -------------- |
| To **install** the dependencies | `npm install` | `pnpm install` | `yarn install` |
| To **run** the **development server** | `npm run dev` | `pnpm dev` | `yarn dev` |
| To **build** your app **for production** | `npm run build` | `pnpm build` | `yarn build` |
| To **preview** your **production optimized app** | `npm run preview` | `pnpm preview` | `yarn preview` |
[Back to :arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
---
## :battery: Features
This repository comes 🔋 packed with:
- **TypeScript**;
- **TailwindCSS**;
- **SASS**;
- **PostCSS**;
- **Playwright**;
- **Vite**;
And with tools that enhance the development experience:
- **ESLint**;
- **Prettier**;
- **Husky**;
- **Commitlint**;
[Back to:arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
---
## :arrows_clockwise: Versions
This repository comes configured with 2 of the industry standards for development tools: **Webpack** and **Vite**. <br />
Both tools support **SWC (Speedy Web Compiler)**, a **Rust-based compiler**; Vite is optimized for it out of the box.
### Vite (SWC compiler)
Is a simple and fast solution thanks to it's "zero-config" approach which offers a smoother development experience.
| React - TypeScript | React - JavaScript | | Vanilla TypeScript | Vanilla JavaScript |
| :-------------------------------------------------------------------------: | :-------------------------------------------------------------------------: | :-: | :-------------------------: | :----------------------------------------------------: |
| ![React][react-icon] & ![TS][ts-icon] <br /> **[Repo][vite-react-ts-repo]** | ![React][react-icon] & ![JS][js-icon] <br /> **[Repo][vite-react-js-repo]** | | ![TS][ts-icon] <br /> **/** | ![JS][js-icon] <br /> **[Repo][vite-vanilla-js-repo]** |
### Webpack (Babel compiler)
Is more a flexible solution, capable of handling complex configurations.
| React - TypeScript | React - JavaScript | | Vanilla TypeScript | Vanilla JavaScript |
| :-----------------------------------------------------------------------: | :----------------------------------------------------: | :-: | :-----------------------------: | :--------------------------------------------------: |
| ![React][react-icon] & ![TS][ts-icon] <br /> **[Repo][wp-react-ts-repo]** | ![React][react-icon] & ![JS][js-icon] <br /> **Soon!** | | ![TS][ts-icon] <br /> **Soon!** | ![JS][js-icon] <br /> **[Repo][wp-vanilla-js-repo]** |
[Back to:arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
---
## :globe_with_meridians: Browsers support
The provided configuration ensures **92.3%** coverage for all browsers, in particular of the following:
| Chrome | Firefox | Edge | Opera | Safari |
| :---------------------------: | :------------------------------: | :--------------------------: | :------------------: | ---------------------------- |
| ![Google Chrome][chrome-icon] | ![Mozilla Firefox][firefox-icon] | ![Microsoft Edge][edge-icon] | ![Opera][opera-icon] | ![Apple Safari][safari-icon] |
**\*** In order to support a wider percentage of browsers, update the `./.browserslistrc` configuration file:
1. `last 3 versions`: browser version;
2. `> 0.2%`: browser usage statistics;
3. `not dead`: whether the browser is officially supported;
Update the configuration [here][browserslist] and check in real-time the **global browsers support**.
**\* The more versions to support, larger JS and CSS bundles size will be.**
[Back to:arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
---
## :busts_in_silhouette: Contribute
Contributions are what make the open source community such an amazing place to learn, inspire, and create.
Any contribution is greatly appreciated: big or small, it can be documentation updates, adding new features or something bigger.
Please check the [**contributing guide**][code-of-conduct] for details on how to help out and keep in mind that all commits must follow the **[conventional commit format][commitlint]**.
### How to contribute:
1. **[Get started](#computer-getting-started "Go to 'Getting started' section");**
2. **For a new feature:**
1. Create a new branch: `git checkout -b feat/NEW-FEATURE`;
2. Add your changes to the staging area: `git add PATH/TO/FILENAME.EXTENSION`;
3. Commit your changes: `git commit -m "feat: NEW FEATURE"`;
4. Push your new branch: `git push origin feat/NEW-FEATURE`;
3. **For a bug fix:**
1. Create a new branch: `git checkout -b fix/BUG-FIX`;
2. Add your changes to the staging area: `git add PATH/TO/FILENAME.EXTENSION`;
3. Commit your changes: `git commit -m "fix: BUG FIX"`;
4. Push your new branch: `git push origin fix/BUG-FIX`;
4. **Open a new [pull request][pulls];**
[Back to:arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
---
## :bookmark_tabs: License
All logos and trademarks are the property of their respective owners.
Everything else is distributed under the **MIT License** .
See the [LICENSE][license] file for more informations.
[Back to:arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
---
## :gem: Acknowledgements
Special thanks to:
- [alrra](https://github.com/alrra) for [browser-logos](https://github.com/alrra/browser-logos);
- [tandpfun](https://github.com/tandpfun) for [skill-icons](https://github.com/tandpfun/skill-icons);
[Back to:arrow_up:](#vite-vanilla-typescript--template "Back to 'Table of contents' section")
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 启动器

business-website-template
Modern UI/UX business website design made with React.
Vite · 企业官网

kiaalap
Free admin dashboard template focused on education, online course and school management. Build using Bootstrap…
Vite · 后台

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