Is this package legit?

I was looking for the pinia persisted state. However, i couldnt. The only thing left is the next: pinia-plugin-persistedstate 2k in github for such a popular package isnt very convincing. Is this package legit?
7 Replies
kapa.ai
kapa.ai2w ago
Hi @IsaacR943. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Yes, @pinia-plugin-persistedstate/nuxt is a legitimate package for Nuxt applications. It's mentioned in several official Nuxt GitHub issues and Stack Overflow posts in the knowledge sources. The package is used to persist Pinia store state across page reloads in Nuxt applications. It appears in multiple runtime module configurations in Nuxt projects, as seen in several GitHub issues: - It's listed as a runtime module in this GitHub issue alongside other official modules like @pinia/nuxt - It's also mentioned in another GitHub issue as part of a Nuxt project's runtime modules Additionally, in a Stack Overflow post about using cookies in Nuxt 3 APIs, the solution involves using Pinia with this persisted state plugin:
// plugin/initial.ts
import Cookie from 'js-cookie';
import { useThemeStore } from '~/stores/theme';
// plugin/initial.ts
import Cookie from 'js-cookie';
import { useThemeStore } from '~/stores/theme';
The relatively lower GitHub stars count doesn't necessarily indicate that it's not legitimate. Many specialized Nuxt ecosystem packages have fewer stars than their Vue.js counterparts but are still official or well-maintained. If you're looking to use Pinia with state persistence in Nuxt, this package appears to be the recommended solution based on the knowledge sources provided. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@1223715160502571129> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
KirbyTwister
KirbyTwister2w ago
if 260k weekly downloads from npm is anything to go by, than yes it is
IsaacR943
IsaacR943OP2w ago
2k in github for such a sheer volume of weekly downloads seems suspicious as hell to me
Cue
Cue2w ago
semver is downloaded over 300 million times a week and has 5K stars. By your logic, that is highly suspicious. Yet you use it every day, unknowingly. 😅
IsaacR943
IsaacR943OP2w ago
Okay. Point made. Do you know when will they make it compatible with the nuxt pinia dev tools? Because it doesnt has full compatibility yet
Mak
Mak2w ago
$$$

Did you find this page helpful?