[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"versions":3,"module-pinia":7},{"v3":4,"v4":5,"v2":6},"3.21.8","4.4.8","2.18.1",{"name":8,"description":9,"repo":10,"npm":11,"icon":12,"github":13,"website":14,"learn_more":15,"category":16,"type":17,"maintainers":18,"compatibility":23,"generatedAt":27,"contributors":28,"stats":116,"readme":124},"pinia","The Vue Store that you will enjoy using","vuejs/pinia#v2/packages/nuxt","@pinia/nuxt","pinia.svg","https://github.com/vuejs/pinia","https://pinia.vuejs.org/","","Extensions","3rd-party",[19],{"name":20,"github":21,"twitter":21,"bluesky":22},"Eduardo San Martin Morote","posva","esm.dev",{"nuxt":24,"requires":25},"^3.15.0 || ^4.0.0",{"bridge":26},"optional","2026-06-10T02:26:32.992Z",[29,32,36,40,44,48,51,55,59,63,66,69,72,75,79,82,85,88,91,94,97,101,104,107,110,113],{"id":30,"username":21,"contributions":31},664177,1518,{"id":33,"username":34,"contributions":35},5158436,"pi0",18,{"id":37,"username":38,"contributions":39},3766839,"nicodevs",14,{"id":41,"username":42,"contributions":43},28706372,"danielroe",13,{"id":45,"username":46,"contributions":47},44336070,"idorenyinudoh",7,{"id":49,"username":50,"contributions":47},65301168,"skirtles-code",{"id":52,"username":53,"contributions":54},57580045,"wangenze267",6,{"id":56,"username":57,"contributions":58},29396513,"Akhigbe-E",5,{"id":60,"username":61,"contributions":62},4183726,"antony-k1208",4,{"id":64,"username":65,"contributions":62},7635209,"danielkellyio",{"id":67,"username":68,"contributions":62},30027636,"i5dr0id",{"id":70,"username":71,"contributions":62},46400789,"JeraldVin",{"id":73,"username":74,"contributions":62},26253657,"niceplugin",{"id":76,"username":77,"contributions":78},24556921,"jeremygoccc",3,{"id":80,"username":81,"contributions":78},10359255,"lazzzis",{"id":83,"username":84,"contributions":78},41575890,"taist24",{"id":86,"username":87,"contributions":78},52022476,"jh-leong",{"id":89,"username":90,"contributions":78},97254921,"tannazma",{"id":92,"username":93,"contributions":78},31008635,"nazarepiedady",{"id":95,"username":96,"contributions":78},1223583,"bodograumann",{"id":98,"username":99,"contributions":100},39984251,"Mini-ghost",2,{"id":102,"username":103,"contributions":100},40666434,"WalkAlone0325",{"id":105,"username":106,"contributions":100},74694190,"noootwo",{"id":108,"username":109,"contributions":100},31730646,"BlackCrowxyz",{"id":111,"username":112,"contributions":100},22591269,"tkint",{"id":114,"username":115,"contributions":100},360,"tslocke",{"version":117,"downloads":118,"stars":119,"watchers":119,"forks":120,"defaultBranch":121,"publishedAt":122,"createdAt":123},"0.11.3",3038120,14599,1182,"v4",1762334718224,1629381795526,{"data":125,"body":126,"toc":323},{"title":11,"description":15},{"type":127,"children":128},"root",[129,142,152,159,172,184,190,195,203,223,233,239,252,274,292,300,306,318],{"type":130,"tag":131,"props":132,"children":134},"element","h1",{"id":133},"pinianuxt",[135],{"type":130,"tag":136,"props":137,"children":139},"code",{"className":138},[],[140],{"type":141,"value":11},"text",{"type":130,"tag":143,"props":144,"children":145},"blockquote",{},[146],{"type":130,"tag":147,"props":148,"children":149},"p",{},[150],{"type":141,"value":151},"Nuxt module for Pinia",{"type":130,"tag":153,"props":154,"children":156},"h2",{"id":155},"automatic-installation",[157],{"type":141,"value":158},"Automatic Installation",{"type":130,"tag":147,"props":160,"children":161},{},[162,164,170],{"type":141,"value":163},"Use ",{"type":130,"tag":136,"props":165,"children":167},{"className":166},[],[168],{"type":141,"value":169},"nuxi",{"type":141,"value":171}," to automatically add this module to your Nuxt project:",{"type":130,"tag":173,"props":174,"children":179},"pre",{"className":175,"code":176,"language":177,"meta":15,"style":178},"language-shell","npx nuxi@latest module add pinia\n","shell","undefined",[180],{"type":130,"tag":136,"props":181,"children":182},{"__ignoreMap":15},[183],{"type":141,"value":176},{"type":130,"tag":153,"props":185,"children":187},{"id":186},"manual-installation",[188],{"type":141,"value":189},"Manual Installation",{"type":130,"tag":147,"props":191,"children":192},{},[193],{"type":141,"value":194},"Add dependencies to your Nuxt project:",{"type":130,"tag":173,"props":196,"children":198},{"className":175,"code":197,"language":177,"meta":15,"style":178},"npm i pinia @pinia/nuxt\n",[199],{"type":130,"tag":136,"props":200,"children":201},{"__ignoreMap":15},[202],{"type":141,"value":197},{"type":130,"tag":147,"props":204,"children":205},{},[206,208,213,215,221],{"type":141,"value":207},"Enable the ",{"type":130,"tag":136,"props":209,"children":211},{"className":210},[],[212],{"type":141,"value":11},{"type":141,"value":214}," module in ",{"type":130,"tag":136,"props":216,"children":218},{"className":217},[],[219],{"type":141,"value":220},"nuxt.config.ts",{"type":141,"value":222},":",{"type":130,"tag":173,"props":224,"children":228},{"className":225,"code":226,"language":227,"meta":15,"style":178},"language-js","export default defineNuxtConfig({\n    modules: ['@pinia/nuxt'],\n})\n","js",[229],{"type":130,"tag":136,"props":230,"children":231},{"__ignoreMap":15},[232],{"type":141,"value":226},{"type":130,"tag":153,"props":234,"children":236},{"id":235},"configuring-the-module",[237],{"type":141,"value":238},"Configuring the Module",{"type":130,"tag":147,"props":240,"children":241},{},[242,244,250],{"type":141,"value":243},"By default, this module adds ",{"type":130,"tag":136,"props":245,"children":247},{"className":246},[],[248],{"type":141,"value":249},"stores",{"type":141,"value":251}," folder to auto imports, in which you can organize code related to Pinia stores in one place.",{"type":130,"tag":143,"props":253,"children":254},{},[255],{"type":130,"tag":147,"props":256,"children":257},{},[258,264,266,272],{"type":130,"tag":259,"props":260,"children":261},"span",{},[262],{"type":141,"value":263},"!TIP",{"type":141,"value":265},"\nIn the new directory structure introduced since Nuxt 4, this directory is ",{"type":130,"tag":136,"props":267,"children":269},{"className":268},[],[270],{"type":141,"value":271},"app/stores",{"type":141,"value":273},".",{"type":130,"tag":147,"props":275,"children":276},{},[277,279,284,286,291],{"type":141,"value":278},"You can customize this behaviour using the ",{"type":130,"tag":136,"props":280,"children":282},{"className":281},[],[283],{"type":141,"value":8},{"type":141,"value":285}," property in ",{"type":130,"tag":136,"props":287,"children":289},{"className":288},[],[290],{"type":141,"value":220},{"type":141,"value":222},{"type":130,"tag":173,"props":293,"children":295},{"className":225,"code":294,"language":227,"meta":15,"style":178},"export default defineNuxtConfig({\n    modules: ['@pinia/nuxt'],\n    // configure the module using `pinia` property\n    pinia: {\n      /**\n       * Automatically add stores dirs to the auto imports. This is the same as\n       * directly adding the dirs to the `imports.dirs` option. If you want to\n       * also import nested stores, you can use the glob pattern `./stores/**`\n       * (on Nuxt 3) or `app/stores/**` (on Nuxt 4+)\n       *\n       * @default `['stores']`\n       */\n        storesDirs: []\n    }\n})\n",[296],{"type":130,"tag":136,"props":297,"children":298},{"__ignoreMap":15},[299],{"type":141,"value":294},{"type":130,"tag":153,"props":301,"children":303},{"id":302},"license",[304],{"type":141,"value":305},"License",{"type":130,"tag":147,"props":307,"children":308},{},[309],{"type":130,"tag":310,"props":311,"children":315},"a",{"href":312,"rel":313},"http://opensource.org/licenses/MIT",[314],"nofollow",[316],{"type":141,"value":317},"MIT",{"type":130,"tag":319,"props":320,"children":321},"style",{},[322],{"type":141,"value":15},{"title":15,"searchDepth":100,"depth":100,"links":324},[325,326,327,328],{"id":155,"depth":100,"text":158},{"id":186,"depth":100,"text":189},{"id":235,"depth":100,"text":238},{"id":302,"depth":100,"text":305}]