astralapp / astral

Organize Your GitHub Stars With Ease

Home Page:https://astralapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Keep data in localstorage or indexeddb

selfagency opened this issue · comments

Hello again,

I remain a big fan of Astral after all these years. But it's a genuine pain in the ass to have to wait for all my stars to reload every time I open the app. This could be remedied by storing data in localstorage/indexeddb/etc. and pinging for updates to the user's stars, rather than reloading them every time the page is loaded.

Please consider in a future update!

Stars are actually cached for 2 hours at a time, bit I agree that a more persistent solution would be nice. I've toyed with using localstorage before, and though there were some minor issues it worked pretty well, but it just never shipped. My only concern is hitting size limits (localstorage is around 10mb I think?). I know there are some users who have upwards of 6,000 stars and I'm worried that amount of data would not be able to persist by itself.

With that being said, that is a solvable problem, by possibly setting a sensible limit to the number of stars stored in localstorage, so it's not off the table by any means. I'll try and take a crack at this over the next few weeks.

Thanks!

IndexedDB has a 50mb limit, for what it's worth.

I actually use that configuration regularly in my own frontend projects

@selfagency Good to know, I may bother you if I have any questions 😄