Vue CheatSheet by ThemeSelection is an open-source, interactive web reference that covers Vue, Vue Router, and Pinia with searchable, copyable code snippets. It is published by ThemeSelection, licensed under MIT, and available at vue-cheatsheet.themeselection.com as a static documentation site built with VitePress.
What is Vue CheatSheet?
Vue CheatSheet is an interactive cheatsheet for Vue and its two official companion libraries, Vue Router and Pinia. Users can browse dedicated topic pages — /vue/basic.html, /vue-router/basic.html, and /pinia/basic.html — or use the site's interactive search to find a specific API or pattern; each result is a short, copyable code snippet. The site is built with VitePress, and its credits page also acknowledges the Python Cheatsheet project.
Key Features
- Broad topic coverage — Dedicates a separate section to Vue, Vue Router, and Pinia, each with its own basic reference page.
- Interactive search — Lets users type a query and filter snippets without leaving the page.
- Concise code snippets — Shows short, focused examples rather than full-length tutorials.
- Copy-to-clipboard — Each snippet can be copied with a single click for immediate use in a project.
- Open source with MIT license — The source is public, and the license permits reuse; the project asks that ThemeSelection credit be kept when sharing or blogging about it.
- Contribution-friendly — Maintainers welcome pull requests, require following the published contributing guidelines, and ask for well-reasoned explanations with each change.
- Built on VitePress — The cheatsheet runs as a lightweight static site, so it loads fast and requires no backend.
Who should use Vue CheatSheet?
- Developers learning Vue 3 — Look up basic syntax, component patterns, router setup, or Pinia store definitions while following a tutorial.
- Working front-end developers — Quickly copy a router guard, a store action, or a composable pattern instead of tabbing through the official docs.
- Open-source contributors — Improve the cheatsheet by submitting pull requests that fix errors or clarify code snippets.
- Teams standardizing on Vue — Share one curated snippet reference across a codebase to keep common patterns consistent.
What can you do with Vue CheatSheet?
- Search Vue APIs: Type a method or directive name and get a matching code snippet with the exact syntax.
- Copy Vue Router patterns: Grab route definitions, navigation guards, or dynamic route code for a fresh project.
- Copy Pinia store examples: Pull a ready-to-use store definition with state, getters, and actions into your app.
- Contribute fixes: Submit a pull request when a snippet is wrong, outdated, or missing an explanation.
How does Vue CheatSheet work?
The site organizes its content into three reference areas, one per library. A visitor can either navigate directly to a topic page or activate the interactive search to filter snippets by keyword, then click the copy button on any snippet to put it on the clipboard. Because the site is a static VitePress build, the entire experience happens client-side with no server round-trips.
FAQ
Is Vue CheatSheet free?
Yes. Vue CheatSheet is open source under the MIT license, and the live site can be used without payment. The project's license may change in future releases, as noted by ThemeSelection.
Which libraries does Vue CheatSheet cover?
It covers three: Vue itself, Vue Router, and Pinia. Each has its own basic page linked from the repository, so search results stay organized by library rather than mixed together.
Can I contribute to Vue CheatSheet?
Yes. Contributions are welcome through pull requests, and the repository links to a contributing guidelines page. Contributors are asked to provide valid, well-reasoned explanations for their changes.
Does Vue CheatSheet cover Vue 3?
Yes. The repository's topic metadata includes vue3 and vuejs3, indicating the cheatsheet targets Vue 3.








