{"repo":"vuejs/pinia","free":true,"listed":false,"github":"https://github.com/vuejs/pinia","clone":"git clone https://github.com/vuejs/pinia.git","description":"🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support","language":"TypeScript","stars":14697,"topics":["vue","composition-api","ssr","store","vuex"],"license":"MIT","category":"ui-components","readme_excerpt":"Pinia Intuitive, type safe and flexible Store for Vue - 💡 Intuitive - 🔑 Type Safe - ⚙️ Devtools support - 🔌 Extensible - 🏗 Modular by design - 📦 Extremely light - ⛰️ Nuxt Module The latest version of pinia works with Vue 3. See the branch v2 for a version that works with Vue 2. Pinia is the most similar English pronunciation of the word pineapple in Spanish: piña . A pineapple is in reality a group of individual flowers that join together to create a multiple fruit. Similar to stores, each one is born individually, but they are all connected at the end. It's also a delicious tropical fruit indigenous to South America. 👉 Demo with Vue 3 on StackBlitz 👉 Demo with Nuxt 3 on StackBlitz Help me keep working on this project 💚 - Become a Sponsor on GitHub - One-time donation via PayPal Gold Sponsors Silver Sponsors Bronze Sponsors --- FAQ A few notes about the project and possible questions: Q : Is Pinia the successor of Vuex? A : Yes Q : What about dynamic modules? A : Dynamic modules are not type safe, so instead we allow creating different stores that can be imported anywhere Installation Usage Install the plugin Create a pinia (the root store) and pass it to app: For more detailed instructions, including Nuxt configuration, check the Documentation. Create a Store You can create as many stores as you want, and they should each exist in different files: defineStore returns a function that has to be called to get access to the store: Documentation To learn more about Pinia,","default_branch":null,"files":null,"tree":[],"storefront":"/r/vuejs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vuejs/pinia/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}